mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
vendor: remove unused cluster-api-provider-gcp bits
This commit is contained in:
1
go.mod
1
go.mod
@@ -57,7 +57,6 @@ require (
|
||||
github.com/openshift/client-go v0.0.0-20211025111749-96ca2abfc56c
|
||||
github.com/openshift/cloud-credential-operator v0.0.0-20200316201045-d10080b52c9e
|
||||
github.com/openshift/cluster-api-provider-alibaba v0.0.0-20211123142315-d16daa4e6349
|
||||
github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20201203141909-4dc702fd57a5
|
||||
github.com/openshift/cluster-api-provider-ibmcloud v0.0.0-20211008100740-4d7907adbd6b
|
||||
github.com/openshift/cluster-api-provider-libvirt v0.2.1-0.20191219173431-2336783d4603
|
||||
github.com/openshift/cluster-api-provider-ovirt v0.1.1-0.20211111151530-06177b773958
|
||||
|
||||
4
go.sum
4
go.sum
@@ -888,10 +888,8 @@ github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/
|
||||
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||
github.com/google/martian v2.1.1-0.20190517191504-25dcb96d9e51+incompatible h1:xmapqc1AyLoB+ddYT6r04bD9lIjlOqGaREovi0SzFaE=
|
||||
github.com/google/martian v2.1.1-0.20190517191504-25dcb96d9e51+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/pprof v0.0.0-20181127221834-b4f47329b966/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/google/renameio v1.0.0 h1:xhp2CnJmgQmpJU4RY8chagahUq5mbPPAbiSQstKpVMA=
|
||||
github.com/google/renameio v1.0.0/go.mod h1:t/HQoYBZSsWSNK35C6CO/TpPLDVWvxOHboWUAweKUpk=
|
||||
@@ -1565,8 +1563,6 @@ github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20200713133651-5c8a640669
|
||||
github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20200901173901-9056dbc8c9b9/go.mod h1:rcwAydGZX+z4l91wtOdbq+fqDwuo6iu0YuFik3UUc+8=
|
||||
github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20201002065957-9854f7420570/go.mod h1:7NRECVE26rvP1/fs1CbhfY5gsgnnFQNhb9txTFzWmUw=
|
||||
github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20201201000827-1117a4fc438c/go.mod h1:21N0wWjiTQypZ7WosEYhcGJHr9JoDR1RBFztE0NvdYM=
|
||||
github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20201203141909-4dc702fd57a5 h1:75U75i/GfStAartlsP/F9v3Gv3MwzuLwqdLTjP1vPeE=
|
||||
github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20201203141909-4dc702fd57a5/go.mod h1:/XjFaKnqBc8K/jcRXHO7tau39CmzNinqmpxYaQGRvnE=
|
||||
github.com/openshift/cluster-api-provider-ibmcloud v0.0.0-20211008100740-4d7907adbd6b h1:atciNID+jTAqvQT0t/hAE+KVFLCxv2asXGih2py2dpg=
|
||||
github.com/openshift/cluster-api-provider-ibmcloud v0.0.0-20211008100740-4d7907adbd6b/go.mod h1:xkkPB22FMQyrv3G0HLobylRsosJP4Voi8Yojg5WEYrs=
|
||||
github.com/openshift/cluster-api-provider-libvirt v0.2.1-0.20191219173431-2336783d4603 h1:MC6BSZYxFPoqqKj9PdlGjHGVKcMsvn6Kv1NiVzQErZ8=
|
||||
|
||||
201
vendor/github.com/openshift/cluster-api-provider-gcp/LICENSE
generated
vendored
201
vendor/github.com/openshift/cluster-api-provider-gcp/LICENSE
generated
vendored
@@ -1,201 +0,0 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,10 +0,0 @@
|
||||
package apis
|
||||
|
||||
import (
|
||||
"github.com/openshift/cluster-api-provider-gcp/pkg/apis/gcpprovider/v1beta1"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
|
||||
AddToSchemes = append(AddToSchemes, v1beta1.SchemeBuilder.AddToScheme)
|
||||
}
|
||||
17
vendor/github.com/openshift/cluster-api-provider-gcp/pkg/apis/apis.go
generated
vendored
17
vendor/github.com/openshift/cluster-api-provider-gcp/pkg/apis/apis.go
generated
vendored
@@ -1,17 +0,0 @@
|
||||
// Generate deepcopy for apis
|
||||
//go:generate go run ../../vendor/sigs.k8s.io/controller-tools/cmd/controller-gen paths=./... object:headerFile=../../hack/boilerplate/boilerplate.go.txt,year=2019
|
||||
|
||||
// Package apis contains Kubernetes API groups.
|
||||
package apis
|
||||
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// AddToSchemes may be used to add all resources defined in the project to a Scheme
|
||||
var AddToSchemes runtime.SchemeBuilder
|
||||
|
||||
// AddToScheme adds all Resources to the Scheme
|
||||
func AddToScheme(s *runtime.Scheme) error {
|
||||
return AddToSchemes.AddToScheme(s)
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
// Package v1beta1 contains API Schema definitions for the gcpprovider v1beta1 API group
|
||||
// +k8s:openapi-gen=true
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:conversion-gen=github.com/openshift/cluster-api-provider-gcp/pkg/apis/gcpprovider
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +groupName=gcpprovider.machine.openshift.io
|
||||
package v1beta1
|
||||
@@ -1,106 +0,0 @@
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// GCPMachineProviderSpec is the type that will be embedded in a Machine.Spec.ProviderSpec field
|
||||
// for an GCP virtual machine. It is used by the GCP machine actuator to create a single Machine.
|
||||
// +k8s:openapi-gen=true
|
||||
type GCPMachineProviderSpec struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
// UserDataSecret contains a local reference to a secret that contains the
|
||||
// UserData to apply to the instance
|
||||
UserDataSecret *corev1.LocalObjectReference `json:"userDataSecret,omitempty"`
|
||||
|
||||
// CredentialsSecret is a reference to the secret with GCP credentials.
|
||||
CredentialsSecret *corev1.LocalObjectReference `json:"credentialsSecret,omitempty"`
|
||||
|
||||
CanIPForward bool `json:"canIPForward"`
|
||||
DeletionProtection bool `json:"deletionProtection"`
|
||||
Disks []*GCPDisk `json:"disks,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty"`
|
||||
Metadata []*GCPMetadata `json:"gcpMetadata,omitempty"`
|
||||
NetworkInterfaces []*GCPNetworkInterface `json:"networkInterfaces,omitempty"`
|
||||
ServiceAccounts []GCPServiceAccount `json:"serviceAccounts"`
|
||||
Tags []string `json:"tags,omitempty"`
|
||||
TargetPools []string `json:"targetPools,omitempty"`
|
||||
MachineType string `json:"machineType"`
|
||||
Region string `json:"region"`
|
||||
Zone string `json:"zone"`
|
||||
ProjectID string `json:"projectID,omitempty"`
|
||||
|
||||
// Preemptible indicates if created instance is preemptible
|
||||
Preemptible bool `json:"preemptible,omitempty"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&GCPMachineProviderSpec{})
|
||||
}
|
||||
|
||||
// GCPDisk describes disks for GCP.
|
||||
type GCPDisk struct {
|
||||
AutoDelete bool `json:"autoDelete"`
|
||||
Boot bool `json:"boot"`
|
||||
SizeGb int64 `json:"sizeGb"`
|
||||
Type string `json:"type"`
|
||||
Image string `json:"image"`
|
||||
Labels map[string]string `json:"labels"`
|
||||
EncryptionKey *GCPEncryptionKeyReference `json:"encryptionKey,omitempty"`
|
||||
}
|
||||
|
||||
// GCPMetadata describes metadata for GCP.
|
||||
type GCPMetadata struct {
|
||||
Key string `json:"key"`
|
||||
Value *string `json:"value"`
|
||||
}
|
||||
|
||||
// GCPNetworkInterface describes network interfaces for GCP
|
||||
type GCPNetworkInterface struct {
|
||||
PublicIP bool `json:"publicIP,omitempty"`
|
||||
Network string `json:"network,omitempty"`
|
||||
ProjectID string `json:"projectID,omitempty"`
|
||||
Subnetwork string `json:"subnetwork,omitempty"`
|
||||
}
|
||||
|
||||
// GCPServiceAccount describes service accounts for GCP.
|
||||
type GCPServiceAccount struct {
|
||||
Email string `json:"email"`
|
||||
Scopes []string `json:"scopes"`
|
||||
}
|
||||
|
||||
// GCPEncryptionKeyReference describes the encryptionKey to use for a disk's encryption.
|
||||
type GCPEncryptionKeyReference struct {
|
||||
KMSKey *GCPKMSKeyReference `json:"kmsKey,omitempty"`
|
||||
|
||||
// KMSKeyServiceAccount is the service account being used for the
|
||||
// encryption request for the given KMS key. If absent, the Compute
|
||||
// Engine default service account is used.
|
||||
// See https://cloud.google.com/compute/docs/access/service-accounts#compute_engine_service_account
|
||||
// for details on the default service account.
|
||||
KMSKeyServiceAccount string `json:"kmsKeyServiceAccount,omitempty"`
|
||||
}
|
||||
|
||||
// GCPKMSKeyReference gathers required fields for looking up a GCP KMS Key
|
||||
type GCPKMSKeyReference struct {
|
||||
// Name is the name of the customer managed encryption key to be used for the disk encryption.
|
||||
Name string `json:"name"`
|
||||
|
||||
// KeyRing is the name of the KMS Key Ring which the KMS Key belongs to.
|
||||
KeyRing string `json:"keyRing"`
|
||||
|
||||
// ProjectID is the ID of the Project in which the KMS Key Ring exists.
|
||||
// Defaults to the VM ProjectID if not set.
|
||||
ProjectID string `json:"projectID,omitempty"`
|
||||
|
||||
// Location is the GCP location in which the Key Ring exists.
|
||||
Location string `json:"location"`
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// GCPMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field.
|
||||
// It contains GCP-specific status information.
|
||||
// +k8s:openapi-gen=true
|
||||
type GCPMachineProviderStatus struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
// InstanceID is the ID of the instance in GCP
|
||||
// +optional
|
||||
InstanceID *string `json:"instanceId,omitempty"`
|
||||
|
||||
// InstanceState is the provisioning state of the GCP Instance.
|
||||
// +optional
|
||||
InstanceState *string `json:"instanceState,omitempty"`
|
||||
|
||||
// Conditions is a set of conditions associated with the Machine to indicate
|
||||
// errors or other status
|
||||
Conditions []GCPMachineProviderCondition `json:"conditions,omitempty"`
|
||||
}
|
||||
|
||||
// GCPMachineProviderConditionType is a valid value for GCPMachineProviderCondition.Type
|
||||
type GCPMachineProviderConditionType string
|
||||
|
||||
// Valid conditions for an GCP machine instance
|
||||
const (
|
||||
// MachineCreated indicates whether the machine has been created or not. If not,
|
||||
// it should include a reason and message for the failure.
|
||||
MachineCreated GCPMachineProviderConditionType = "MachineCreated"
|
||||
)
|
||||
|
||||
// GCPMachineProviderCondition is a condition in a GCPMachineProviderStatus
|
||||
type GCPMachineProviderCondition struct {
|
||||
// Type is the type of the condition.
|
||||
Type GCPMachineProviderConditionType `json:"type"`
|
||||
// Status is the status of the condition.
|
||||
Status corev1.ConditionStatus `json:"status"`
|
||||
// LastProbeTime is the last time we probed the condition.
|
||||
// +optional
|
||||
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
|
||||
// LastTransitionTime is the last time the condition transitioned from one status to another.
|
||||
// +optional
|
||||
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||
// Reason is a unique, one-word, CamelCase reason for the condition's last transition.
|
||||
// +optional
|
||||
Reason string `json:"reason,omitempty"`
|
||||
// Message is a human-readable message indicating details about last transition.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&GCPMachineProviderStatus{})
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
// Package v1beta1 contains API Schema definitions for the gcpprovider v1beta1 API group
|
||||
// +k8s:openapi-gen=true
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:conversion-gen=github.com/openshift/cluster-api-provider-gcp/pkg/apis/gcpprovider
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +groupName=gcpprovider.machine.openshift.io
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/klog/v2"
|
||||
"sigs.k8s.io/controller-runtime/pkg/scheme"
|
||||
"sigs.k8s.io/yaml"
|
||||
)
|
||||
|
||||
var (
|
||||
// SchemeGroupVersion is group version used to register these objects
|
||||
SchemeGroupVersion = schema.GroupVersion{Group: "gcpprovider.openshift.io", Version: "v1beta1"}
|
||||
|
||||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
|
||||
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
|
||||
)
|
||||
|
||||
// RawExtensionFromProviderSpec marshals the machine provider spec.
|
||||
func RawExtensionFromProviderSpec(spec *GCPMachineProviderSpec) (*runtime.RawExtension, error) {
|
||||
if spec == nil {
|
||||
return &runtime.RawExtension{}, nil
|
||||
}
|
||||
|
||||
var rawBytes []byte
|
||||
var err error
|
||||
if rawBytes, err = json.Marshal(spec); err != nil {
|
||||
return nil, fmt.Errorf("error marshalling providerSpec: %v", err)
|
||||
}
|
||||
|
||||
return &runtime.RawExtension{
|
||||
Raw: rawBytes,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// RawExtensionFromProviderStatus marshals the provider status
|
||||
func RawExtensionFromProviderStatus(status *GCPMachineProviderStatus) (*runtime.RawExtension, error) {
|
||||
if status == nil {
|
||||
return &runtime.RawExtension{}, nil
|
||||
}
|
||||
|
||||
var rawBytes []byte
|
||||
var err error
|
||||
if rawBytes, err = json.Marshal(status); err != nil {
|
||||
return nil, fmt.Errorf("error marshalling providerStatus: %v", err)
|
||||
}
|
||||
|
||||
return &runtime.RawExtension{
|
||||
Raw: rawBytes,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// ProviderSpecFromRawExtension unmarshals the JSON-encoded spec
|
||||
func ProviderSpecFromRawExtension(rawExtension *runtime.RawExtension) (*GCPMachineProviderSpec, error) {
|
||||
if rawExtension == nil {
|
||||
return &GCPMachineProviderSpec{}, nil
|
||||
}
|
||||
|
||||
spec := new(GCPMachineProviderSpec)
|
||||
if err := yaml.Unmarshal(rawExtension.Raw, &spec); err != nil {
|
||||
return nil, fmt.Errorf("error unmarshalling providerSpec: %v", err)
|
||||
}
|
||||
|
||||
klog.V(5).Infof("Got provider spec from raw extension: %+v", spec)
|
||||
return spec, nil
|
||||
}
|
||||
|
||||
// ProviderStatusFromRawExtension unmarshals a raw extension into a GCPMachineProviderStatus type
|
||||
func ProviderStatusFromRawExtension(rawExtension *runtime.RawExtension) (*GCPMachineProviderStatus, error) {
|
||||
if rawExtension == nil {
|
||||
return &GCPMachineProviderStatus{}, nil
|
||||
}
|
||||
|
||||
providerStatus := new(GCPMachineProviderStatus)
|
||||
if err := yaml.Unmarshal(rawExtension.Raw, providerStatus); err != nil {
|
||||
return nil, fmt.Errorf("error unmarshalling providerStatus: %v", err)
|
||||
}
|
||||
|
||||
klog.V(5).Infof("Got provider Status from raw extension: %+v", providerStatus)
|
||||
return providerStatus, nil
|
||||
}
|
||||
@@ -1,294 +0,0 @@
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
/*
|
||||
Copyright 2019 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by controller-gen. DO NOT EDIT.
|
||||
|
||||
package v1beta1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPDisk) DeepCopyInto(out *GCPDisk) {
|
||||
*out = *in
|
||||
if in.Labels != nil {
|
||||
in, out := &in.Labels, &out.Labels
|
||||
*out = make(map[string]string, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
if in.EncryptionKey != nil {
|
||||
in, out := &in.EncryptionKey, &out.EncryptionKey
|
||||
*out = new(GCPEncryptionKeyReference)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPDisk.
|
||||
func (in *GCPDisk) DeepCopy() *GCPDisk {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPDisk)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPEncryptionKeyReference) DeepCopyInto(out *GCPEncryptionKeyReference) {
|
||||
*out = *in
|
||||
if in.KMSKey != nil {
|
||||
in, out := &in.KMSKey, &out.KMSKey
|
||||
*out = new(GCPKMSKeyReference)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPEncryptionKeyReference.
|
||||
func (in *GCPEncryptionKeyReference) DeepCopy() *GCPEncryptionKeyReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPEncryptionKeyReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPKMSKeyReference) DeepCopyInto(out *GCPKMSKeyReference) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPKMSKeyReference.
|
||||
func (in *GCPKMSKeyReference) DeepCopy() *GCPKMSKeyReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPKMSKeyReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPMachineProviderCondition) DeepCopyInto(out *GCPMachineProviderCondition) {
|
||||
*out = *in
|
||||
in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
|
||||
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPMachineProviderCondition.
|
||||
func (in *GCPMachineProviderCondition) DeepCopy() *GCPMachineProviderCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPMachineProviderCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPMachineProviderSpec) DeepCopyInto(out *GCPMachineProviderSpec) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.UserDataSecret != nil {
|
||||
in, out := &in.UserDataSecret, &out.UserDataSecret
|
||||
*out = new(v1.LocalObjectReference)
|
||||
**out = **in
|
||||
}
|
||||
if in.CredentialsSecret != nil {
|
||||
in, out := &in.CredentialsSecret, &out.CredentialsSecret
|
||||
*out = new(v1.LocalObjectReference)
|
||||
**out = **in
|
||||
}
|
||||
if in.Disks != nil {
|
||||
in, out := &in.Disks, &out.Disks
|
||||
*out = make([]*GCPDisk, len(*in))
|
||||
for i := range *in {
|
||||
if (*in)[i] != nil {
|
||||
in, out := &(*in)[i], &(*out)[i]
|
||||
*out = new(GCPDisk)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
}
|
||||
if in.Labels != nil {
|
||||
in, out := &in.Labels, &out.Labels
|
||||
*out = make(map[string]string, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
if in.Metadata != nil {
|
||||
in, out := &in.Metadata, &out.Metadata
|
||||
*out = make([]*GCPMetadata, len(*in))
|
||||
for i := range *in {
|
||||
if (*in)[i] != nil {
|
||||
in, out := &(*in)[i], &(*out)[i]
|
||||
*out = new(GCPMetadata)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
}
|
||||
if in.NetworkInterfaces != nil {
|
||||
in, out := &in.NetworkInterfaces, &out.NetworkInterfaces
|
||||
*out = make([]*GCPNetworkInterface, len(*in))
|
||||
for i := range *in {
|
||||
if (*in)[i] != nil {
|
||||
in, out := &(*in)[i], &(*out)[i]
|
||||
*out = new(GCPNetworkInterface)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
}
|
||||
if in.ServiceAccounts != nil {
|
||||
in, out := &in.ServiceAccounts, &out.ServiceAccounts
|
||||
*out = make([]GCPServiceAccount, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Tags != nil {
|
||||
in, out := &in.Tags, &out.Tags
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.TargetPools != nil {
|
||||
in, out := &in.TargetPools, &out.TargetPools
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPMachineProviderSpec.
|
||||
func (in *GCPMachineProviderSpec) DeepCopy() *GCPMachineProviderSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPMachineProviderSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *GCPMachineProviderSpec) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPMachineProviderStatus) DeepCopyInto(out *GCPMachineProviderStatus) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.InstanceID != nil {
|
||||
in, out := &in.InstanceID, &out.InstanceID
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.InstanceState != nil {
|
||||
in, out := &in.InstanceState, &out.InstanceState
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]GCPMachineProviderCondition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPMachineProviderStatus.
|
||||
func (in *GCPMachineProviderStatus) DeepCopy() *GCPMachineProviderStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPMachineProviderStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *GCPMachineProviderStatus) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPMetadata) DeepCopyInto(out *GCPMetadata) {
|
||||
*out = *in
|
||||
if in.Value != nil {
|
||||
in, out := &in.Value, &out.Value
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPMetadata.
|
||||
func (in *GCPMetadata) DeepCopy() *GCPMetadata {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPMetadata)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPNetworkInterface) DeepCopyInto(out *GCPNetworkInterface) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPNetworkInterface.
|
||||
func (in *GCPNetworkInterface) DeepCopy() *GCPNetworkInterface {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPNetworkInterface)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GCPServiceAccount) DeepCopyInto(out *GCPServiceAccount) {
|
||||
*out = *in
|
||||
if in.Scopes != nil {
|
||||
in, out := &in.Scopes, &out.Scopes
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPServiceAccount.
|
||||
func (in *GCPServiceAccount) DeepCopy() *GCPServiceAccount {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GCPServiceAccount)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@@ -1755,10 +1755,6 @@ github.com/openshift/cluster-api/pkg/apis/machine/v1beta1
|
||||
## explicit; go 1.16
|
||||
github.com/openshift/cluster-api-provider-alibaba/pkg/apis
|
||||
github.com/openshift/cluster-api-provider-alibaba/pkg/apis/alibabacloudprovider/v1beta1
|
||||
# github.com/openshift/cluster-api-provider-gcp v0.0.1-0.20201203141909-4dc702fd57a5
|
||||
## explicit; go 1.15
|
||||
github.com/openshift/cluster-api-provider-gcp/pkg/apis
|
||||
github.com/openshift/cluster-api-provider-gcp/pkg/apis/gcpprovider/v1beta1
|
||||
# github.com/openshift/cluster-api-provider-ibmcloud v0.0.0-20211008100740-4d7907adbd6b
|
||||
## explicit; go 1.16
|
||||
github.com/openshift/cluster-api-provider-ibmcloud/pkg/apis
|
||||
|
||||
Reference in New Issue
Block a user