diff --git a/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_securesourcemanagerinstances.securesourcemanager.cnrm.cloud.google.com.yaml b/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_securesourcemanagerinstances.securesourcemanager.cnrm.cloud.google.com.yaml deleted file mode 100644 index 45c47deba8..0000000000 --- a/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_securesourcemanagerinstances.securesourcemanager.cnrm.cloud.google.com.yaml +++ /dev/null @@ -1,189 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - cnrm.cloud.google.com/version: 0.0.0-dev - creationTimestamp: null - labels: - cnrm.cloud.google.com/managed-by-kcc: "true" - cnrm.cloud.google.com/stability-level: alpha - cnrm.cloud.google.com/system: "true" - name: securesourcemanagerinstances.securesourcemanager.cnrm.cloud.google.com -spec: - group: securesourcemanager.cnrm.cloud.google.com - names: - categories: - - gcp - kind: SecureSourceManagerInstance - listKind: SecureSourceManagerInstanceList - plural: securesourcemanagerinstances - shortNames: - - gcpsecuresourcemanagerinstance - - gcpsecuresourcemanagerinstances - singular: securesourcemanagerinstance - preserveUnknownFields: false - scope: Namespaced - versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: Age - type: date - - description: When 'True', the most recent reconcile of the resource succeeded - jsonPath: .status.conditions[?(@.type=='Ready')].status - name: Ready - type: string - - description: The reason for the value in 'Ready' - jsonPath: .status.conditions[?(@.type=='Ready')].reason - name: Status - type: string - - description: The last transition time for the value in 'Status' - jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime - name: Status Age - type: date - name: v1alpha1 - schema: - openAPIV3Schema: - description: SecureSourceManagerInstance is the Schema for the SecureSourceManagerInstance - API - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: SecureSourceManagerInstanceSpec defines the desired state - of SecureSourceManagerInstance - properties: - kmsKey: - description: Optional. Immutable. Customer-managed encryption key - name, in the format projects/*/locations/*/keyRings/*/cryptoKeys/*. - type: string - location: - description: Immutable. Location of the instance. - type: string - projectRef: - description: Immutable. The Project that this resource belongs to. - oneOf: - - not: - required: - - external - required: - - name - - not: - anyOf: - - required: - - name - - required: - - namespace - required: - - external - properties: - external: - description: The `projectID` field of a project, when not managed - by Config Connector. - type: string - kind: - description: The kind of the Project resource; optional but must - be `Project` if provided. - type: string - name: - description: The `name` field of a `Project` resource. - type: string - namespace: - description: The `namespace` field of a `Project` resource. - type: string - type: object - resourceID: - description: Immutable. Optional. The name of the resource. Used for - creation and acquisition. When unset, the value of `metadata.name` - is used as the default. - type: string - required: - - location - - projectRef - type: object - status: - description: SecureSourceManagerInstanceStatus defines the config connector - machine state of SecureSourceManagerInstance - properties: - conditions: - description: Conditions represent the latest available observations - of the object's current state. - items: - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status - to another. - type: string - message: - description: Human-readable message indicating details about - last transition. - type: string - reason: - description: Unique, one-word, CamelCase reason for the condition's - last transition. - type: string - status: - description: Status is the status of the condition. Can be True, - False, Unknown. - type: string - type: - description: Type is the type of the condition. - type: string - type: object - type: array - externalRef: - description: A unique specifier for the SecureSourceManagerInstance - resource in GCP. - type: string - observedGeneration: - description: ObservedGeneration is the generation of the resource - that was most recently observed by the Config Connector controller. - If this is equal to metadata.generation, then that means that the - current reported status reflects the most recent desired state of - the resource. - format: int64 - type: integer - observedState: - description: ObservedState is the state of the resource as most recently - observed in GCP. - properties: - hostConfig: - description: Output only. A list of hostnames for this instance. - properties: - api: - description: 'Output only. API hostname. This is the hostname - to use for **Host: Data Plane** endpoints.' - type: string - gitHTTP: - description: Output only. Git HTTP hostname. - type: string - gitSSH: - description: Output only. Git SSH hostname. - type: string - html: - description: Output only. HTML hostname. - type: string - type: object - state: - description: Output only. Current state of the instance. - type: string - stateNote: - description: Output only. An optional field providing information - about the current instance state. - type: string - type: object - type: object - type: object - served: true - storage: true - subresources: - status: {} diff --git a/dev/tasks/generate-crds b/dev/tasks/generate-crds index a6f9ff40e3..be96554f12 100755 --- a/dev/tasks/generate-crds +++ b/dev/tasks/generate-crds @@ -55,7 +55,7 @@ go run ./scripts/crd-tools reflow-descriptions --dir apis/config/crd/ # excluded_resources are resources that are under development for a direct conversion # we don't modify the CRD just yet for those but will in the future -excluded_resources=("bigquerydatatransferconfig") +excluded_resources=("bigquerydatatransferconfig" "securesourcemanagerinstance") cd ${REPO_ROOT} cd apis/config/crd/ diff --git a/pkg/clients/generated/apis/securesourcemanager/group.go b/pkg/clients/generated/apis/securesourcemanager/group.go deleted file mode 100644 index 0fb8cbf8b4..0000000000 --- a/pkg/clients/generated/apis/securesourcemanager/group.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Package securesourcemanager contains securesourcemanager API versions. -package securesourcemanager diff --git a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/doc.go b/pkg/clients/generated/apis/securesourcemanager/v1alpha1/doc.go deleted file mode 100644 index bc024fb218..0000000000 --- a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/doc.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Package v1alpha1 contains API Schema definitions for the securesourcemanager v1alpha1 API group. -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/securesourcemanager -// +k8s:defaulter-gen=TypeMeta -// +groupName=securesourcemanager.cnrm.cloud.google.com - -package v1alpha1 diff --git a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/register.go b/pkg/clients/generated/apis/securesourcemanager/v1alpha1/register.go deleted file mode 100644 index 4a6331cf28..0000000000 --- a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/register.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Package v1alpha1 contains API Schema definitions for the securesourcemanager v1alpha1 API group. -// +k8s:openapi-gen=true -// +k8s:deepcopy-gen=package,register -// +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/pkg/apis/securesourcemanager -// +k8s:defaulter-gen=TypeMeta -// +groupName=securesourcemanager.cnrm.cloud.google.com -package v1alpha1 - -import ( - "reflect" - - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -var ( - // SchemeGroupVersion is the group version used to register these objects. - SchemeGroupVersion = schema.GroupVersion{Group: "securesourcemanager.cnrm.cloud.google.com", Version: "v1alpha1"} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme. - SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} - - // AddToScheme is a global function that registers this API group & version to a scheme - AddToScheme = SchemeBuilder.AddToScheme - - SecureSourceManagerInstanceGVK = schema.GroupVersionKind{ - Group: SchemeGroupVersion.Group, - Version: SchemeGroupVersion.Version, - Kind: reflect.TypeOf(SecureSourceManagerInstance{}).Name(), - } - - securesourcemanagerAPIVersion = SchemeGroupVersion.String() -) diff --git a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/securesourcemanagerinstance_types.go b/pkg/clients/generated/apis/securesourcemanager/v1alpha1/securesourcemanagerinstance_types.go deleted file mode 100644 index 3133a55838..0000000000 --- a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/securesourcemanagerinstance_types.go +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// ---------------------------------------------------------------------------- -// -// *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** -// -// ---------------------------------------------------------------------------- -// -// This file is automatically generated by Config Connector and manual -// changes will be clobbered when the file is regenerated. -// -// ---------------------------------------------------------------------------- - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -package v1alpha1 - -import ( - "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -type SecureSourceManagerInstanceSpec struct { - /* Optional. Immutable. Customer-managed encryption key name, in the format projects/* /locations/* /keyRings/* /cryptoKeys/*. */ - // +optional - KmsKey *string `json:"kmsKey,omitempty"` - - /* Immutable. Location of the instance. */ - Location string `json:"location"` - - /* Immutable. The Project that this resource belongs to. */ - ProjectRef v1alpha1.ResourceRef `json:"projectRef"` - - /* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */ - // +optional - ResourceID *string `json:"resourceID,omitempty"` -} - -type InstanceHostConfigStatus struct { - /* Output only. API hostname. This is the hostname to use for **Host: Data Plane** endpoints. */ - // +optional - Api *string `json:"api,omitempty"` - - /* Output only. Git HTTP hostname. */ - // +optional - GitHTTP *string `json:"gitHTTP,omitempty"` - - /* Output only. Git SSH hostname. */ - // +optional - GitSSH *string `json:"gitSSH,omitempty"` - - /* Output only. HTML hostname. */ - // +optional - Html *string `json:"html,omitempty"` -} - -type InstanceObservedStateStatus struct { - /* Output only. A list of hostnames for this instance. */ - // +optional - HostConfig *InstanceHostConfigStatus `json:"hostConfig,omitempty"` - - /* Output only. Current state of the instance. */ - // +optional - State *string `json:"state,omitempty"` - - /* Output only. An optional field providing information about the current instance state. */ - // +optional - StateNote *string `json:"stateNote,omitempty"` -} - -type SecureSourceManagerInstanceStatus struct { - /* Conditions represent the latest available observations of the - SecureSourceManagerInstance's current state. */ - Conditions []v1alpha1.Condition `json:"conditions,omitempty"` - /* A unique specifier for the SecureSourceManagerInstance resource in GCP. */ - // +optional - ExternalRef *string `json:"externalRef,omitempty"` - - /* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */ - // +optional - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - - /* ObservedState is the state of the resource as most recently observed in GCP. */ - // +optional - ObservedState *InstanceObservedStateStatus `json:"observedState,omitempty"` -} - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:resource:categories=gcp,shortName=gcpsecuresourcemanagerinstance;gcpsecuresourcemanagerinstances -// +kubebuilder:subresource:status -// +kubebuilder:metadata:labels="cnrm.cloud.google.com/managed-by-kcc=true";"cnrm.cloud.google.com/stability-level=alpha";"cnrm.cloud.google.com/system=true" -// +kubebuilder:printcolumn:name="Age",JSONPath=".metadata.creationTimestamp",type="date" -// +kubebuilder:printcolumn:name="Ready",JSONPath=".status.conditions[?(@.type=='Ready')].status",type="string",description="When 'True', the most recent reconcile of the resource succeeded" -// +kubebuilder:printcolumn:name="Status",JSONPath=".status.conditions[?(@.type=='Ready')].reason",type="string",description="The reason for the value in 'Ready'" -// +kubebuilder:printcolumn:name="Status Age",JSONPath=".status.conditions[?(@.type=='Ready')].lastTransitionTime",type="date",description="The last transition time for the value in 'Status'" - -// SecureSourceManagerInstance is the Schema for the securesourcemanager API -// +k8s:openapi-gen=true -type SecureSourceManagerInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec SecureSourceManagerInstanceSpec `json:"spec,omitempty"` - Status SecureSourceManagerInstanceStatus `json:"status,omitempty"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// SecureSourceManagerInstanceList contains a list of SecureSourceManagerInstance -type SecureSourceManagerInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []SecureSourceManagerInstance `json:"items"` -} - -func init() { - SchemeBuilder.Register(&SecureSourceManagerInstance{}, &SecureSourceManagerInstanceList{}) -} diff --git a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/zz_generated.deepcopy.go b/pkg/clients/generated/apis/securesourcemanager/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index fb794e533d..0000000000 --- a/pkg/clients/generated/apis/securesourcemanager/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,221 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by deepcopy-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - k8sv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/k8s/v1alpha1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceHostConfigStatus) DeepCopyInto(out *InstanceHostConfigStatus) { - *out = *in - if in.Api != nil { - in, out := &in.Api, &out.Api - *out = new(string) - **out = **in - } - if in.GitHTTP != nil { - in, out := &in.GitHTTP, &out.GitHTTP - *out = new(string) - **out = **in - } - if in.GitSSH != nil { - in, out := &in.GitSSH, &out.GitSSH - *out = new(string) - **out = **in - } - if in.Html != nil { - in, out := &in.Html, &out.Html - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceHostConfigStatus. -func (in *InstanceHostConfigStatus) DeepCopy() *InstanceHostConfigStatus { - if in == nil { - return nil - } - out := new(InstanceHostConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *InstanceObservedStateStatus) DeepCopyInto(out *InstanceObservedStateStatus) { - *out = *in - if in.HostConfig != nil { - in, out := &in.HostConfig, &out.HostConfig - *out = new(InstanceHostConfigStatus) - (*in).DeepCopyInto(*out) - } - if in.State != nil { - in, out := &in.State, &out.State - *out = new(string) - **out = **in - } - if in.StateNote != nil { - in, out := &in.StateNote, &out.StateNote - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceObservedStateStatus. -func (in *InstanceObservedStateStatus) DeepCopy() *InstanceObservedStateStatus { - if in == nil { - return nil - } - out := new(InstanceObservedStateStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecureSourceManagerInstance) DeepCopyInto(out *SecureSourceManagerInstance) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecureSourceManagerInstance. -func (in *SecureSourceManagerInstance) DeepCopy() *SecureSourceManagerInstance { - if in == nil { - return nil - } - out := new(SecureSourceManagerInstance) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecureSourceManagerInstance) 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 *SecureSourceManagerInstanceList) DeepCopyInto(out *SecureSourceManagerInstanceList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SecureSourceManagerInstance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecureSourceManagerInstanceList. -func (in *SecureSourceManagerInstanceList) DeepCopy() *SecureSourceManagerInstanceList { - if in == nil { - return nil - } - out := new(SecureSourceManagerInstanceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecureSourceManagerInstanceList) 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 *SecureSourceManagerInstanceSpec) DeepCopyInto(out *SecureSourceManagerInstanceSpec) { - *out = *in - if in.KmsKey != nil { - in, out := &in.KmsKey, &out.KmsKey - *out = new(string) - **out = **in - } - out.ProjectRef = in.ProjectRef - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecureSourceManagerInstanceSpec. -func (in *SecureSourceManagerInstanceSpec) DeepCopy() *SecureSourceManagerInstanceSpec { - if in == nil { - return nil - } - out := new(SecureSourceManagerInstanceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecureSourceManagerInstanceStatus) DeepCopyInto(out *SecureSourceManagerInstanceStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]k8sv1alpha1.Condition, len(*in)) - copy(*out, *in) - } - if in.ExternalRef != nil { - in, out := &in.ExternalRef, &out.ExternalRef - *out = new(string) - **out = **in - } - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = new(int64) - **out = **in - } - if in.ObservedState != nil { - in, out := &in.ObservedState, &out.ObservedState - *out = new(InstanceObservedStateStatus) - (*in).DeepCopyInto(*out) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecureSourceManagerInstanceStatus. -func (in *SecureSourceManagerInstanceStatus) DeepCopy() *SecureSourceManagerInstanceStatus { - if in == nil { - return nil - } - out := new(SecureSourceManagerInstanceStatus) - in.DeepCopyInto(out) - return out -} diff --git a/pkg/clients/generated/client/clientset/versioned/clientset.go b/pkg/clients/generated/client/clientset/versioned/clientset.go index 2b53f11d36..a07397821c 100644 --- a/pkg/clients/generated/client/clientset/versioned/clientset.go +++ b/pkg/clients/generated/client/clientset/versioned/clientset.go @@ -124,7 +124,6 @@ import ( resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/resourcemanager/v1beta1" runv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/run/v1beta1" secretmanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/secretmanager/v1beta1" - securesourcemanagerv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1" securitycenterv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securitycenter/v1alpha1" servicedirectoryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/servicedirectory/v1beta1" servicenetworkingv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/servicenetworking/v1beta1" @@ -251,7 +250,6 @@ type Interface interface { ResourcemanagerV1beta1() resourcemanagerv1beta1.ResourcemanagerV1beta1Interface RunV1beta1() runv1beta1.RunV1beta1Interface SecretmanagerV1beta1() secretmanagerv1beta1.SecretmanagerV1beta1Interface - SecuresourcemanagerV1alpha1() securesourcemanagerv1alpha1.SecuresourcemanagerV1alpha1Interface SecuritycenterV1alpha1() securitycenterv1alpha1.SecuritycenterV1alpha1Interface ServicedirectoryV1beta1() servicedirectoryv1beta1.ServicedirectoryV1beta1Interface ServicenetworkingV1beta1() servicenetworkingv1beta1.ServicenetworkingV1beta1Interface @@ -376,7 +374,6 @@ type Clientset struct { resourcemanagerV1beta1 *resourcemanagerv1beta1.ResourcemanagerV1beta1Client runV1beta1 *runv1beta1.RunV1beta1Client secretmanagerV1beta1 *secretmanagerv1beta1.SecretmanagerV1beta1Client - securesourcemanagerV1alpha1 *securesourcemanagerv1alpha1.SecuresourcemanagerV1alpha1Client securitycenterV1alpha1 *securitycenterv1alpha1.SecuritycenterV1alpha1Client servicedirectoryV1beta1 *servicedirectoryv1beta1.ServicedirectoryV1beta1Client servicenetworkingV1beta1 *servicenetworkingv1beta1.ServicenetworkingV1beta1Client @@ -894,11 +891,6 @@ func (c *Clientset) SecretmanagerV1beta1() secretmanagerv1beta1.SecretmanagerV1b return c.secretmanagerV1beta1 } -// SecuresourcemanagerV1alpha1 retrieves the SecuresourcemanagerV1alpha1Client -func (c *Clientset) SecuresourcemanagerV1alpha1() securesourcemanagerv1alpha1.SecuresourcemanagerV1alpha1Interface { - return c.securesourcemanagerV1alpha1 -} - // SecuritycenterV1alpha1 retrieves the SecuritycenterV1alpha1Client func (c *Clientset) SecuritycenterV1alpha1() securitycenterv1alpha1.SecuritycenterV1alpha1Interface { return c.securitycenterV1alpha1 @@ -1439,10 +1431,6 @@ func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, if err != nil { return nil, err } - cs.securesourcemanagerV1alpha1, err = securesourcemanagerv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) - if err != nil { - return nil, err - } cs.securitycenterV1alpha1, err = securitycenterv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient) if err != nil { return nil, err @@ -1643,7 +1631,6 @@ func New(c rest.Interface) *Clientset { cs.resourcemanagerV1beta1 = resourcemanagerv1beta1.New(c) cs.runV1beta1 = runv1beta1.New(c) cs.secretmanagerV1beta1 = secretmanagerv1beta1.New(c) - cs.securesourcemanagerV1alpha1 = securesourcemanagerv1alpha1.New(c) cs.securitycenterV1alpha1 = securitycenterv1alpha1.New(c) cs.servicedirectoryV1beta1 = servicedirectoryv1beta1.New(c) cs.servicenetworkingV1beta1 = servicenetworkingv1beta1.New(c) diff --git a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go index 4eddb3fbca..98aa497c6c 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/clientset_generated.go @@ -221,8 +221,6 @@ import ( fakerunv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/run/v1beta1/fake" secretmanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/secretmanager/v1beta1" fakesecretmanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/secretmanager/v1beta1/fake" - securesourcemanagerv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1" - fakesecuresourcemanagerv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake" securitycenterv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securitycenter/v1alpha1" fakesecuritycenterv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securitycenter/v1alpha1/fake" servicedirectoryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/servicedirectory/v1beta1" @@ -815,11 +813,6 @@ func (c *Clientset) SecretmanagerV1beta1() secretmanagerv1beta1.SecretmanagerV1b return &fakesecretmanagerv1beta1.FakeSecretmanagerV1beta1{Fake: &c.Fake} } -// SecuresourcemanagerV1alpha1 retrieves the SecuresourcemanagerV1alpha1Client -func (c *Clientset) SecuresourcemanagerV1alpha1() securesourcemanagerv1alpha1.SecuresourcemanagerV1alpha1Interface { - return &fakesecuresourcemanagerv1alpha1.FakeSecuresourcemanagerV1alpha1{Fake: &c.Fake} -} - // SecuritycenterV1alpha1 retrieves the SecuritycenterV1alpha1Client func (c *Clientset) SecuritycenterV1alpha1() securitycenterv1alpha1.SecuritycenterV1alpha1Interface { return &fakesecuritycenterv1alpha1.FakeSecuritycenterV1alpha1{Fake: &c.Fake} diff --git a/pkg/clients/generated/client/clientset/versioned/fake/register.go b/pkg/clients/generated/client/clientset/versioned/fake/register.go index b94a72cfbe..0a41360d62 100644 --- a/pkg/clients/generated/client/clientset/versioned/fake/register.go +++ b/pkg/clients/generated/client/clientset/versioned/fake/register.go @@ -121,7 +121,6 @@ import ( resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/resourcemanager/v1beta1" runv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/run/v1beta1" secretmanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/secretmanager/v1beta1" - securesourcemanagerv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securesourcemanager/v1alpha1" securitycenterv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securitycenter/v1alpha1" servicedirectoryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/servicedirectory/v1beta1" servicenetworkingv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/servicenetworking/v1beta1" @@ -252,7 +251,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{ resourcemanagerv1beta1.AddToScheme, runv1beta1.AddToScheme, secretmanagerv1beta1.AddToScheme, - securesourcemanagerv1alpha1.AddToScheme, securitycenterv1alpha1.AddToScheme, servicedirectoryv1beta1.AddToScheme, servicenetworkingv1beta1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/scheme/register.go b/pkg/clients/generated/client/clientset/versioned/scheme/register.go index 503d62e11a..547a994c07 100644 --- a/pkg/clients/generated/client/clientset/versioned/scheme/register.go +++ b/pkg/clients/generated/client/clientset/versioned/scheme/register.go @@ -121,7 +121,6 @@ import ( resourcemanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/resourcemanager/v1beta1" runv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/run/v1beta1" secretmanagerv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/secretmanager/v1beta1" - securesourcemanagerv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securesourcemanager/v1alpha1" securitycenterv1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securitycenter/v1alpha1" servicedirectoryv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/servicedirectory/v1beta1" servicenetworkingv1beta1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/servicenetworking/v1beta1" @@ -252,7 +251,6 @@ var localSchemeBuilder = runtime.SchemeBuilder{ resourcemanagerv1beta1.AddToScheme, runv1beta1.AddToScheme, secretmanagerv1beta1.AddToScheme, - securesourcemanagerv1alpha1.AddToScheme, securitycenterv1alpha1.AddToScheme, servicedirectoryv1beta1.AddToScheme, servicenetworkingv1beta1.AddToScheme, diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/doc.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/doc.go deleted file mode 100644 index d3dac805d0..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/doc.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/doc.go deleted file mode 100644 index dfbe79f9af..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/doc.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -// Package fake has the automatically generated clients. -package fake diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/fake_securesourcemanager_client.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/fake_securesourcemanager_client.go deleted file mode 100644 index cff98ae6fb..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/fake_securesourcemanager_client.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1" - rest "k8s.io/client-go/rest" - testing "k8s.io/client-go/testing" -) - -type FakeSecuresourcemanagerV1alpha1 struct { - *testing.Fake -} - -func (c *FakeSecuresourcemanagerV1alpha1) SecureSourceManagerInstances(namespace string) v1alpha1.SecureSourceManagerInstanceInterface { - return &FakeSecureSourceManagerInstances{c, namespace} -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *FakeSecuresourcemanagerV1alpha1) RESTClient() rest.Interface { - var ret *rest.RESTClient - return ret -} diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/fake_securesourcemanagerinstance.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/fake_securesourcemanagerinstance.go deleted file mode 100644 index 1e0390c27c..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/fake/fake_securesourcemanagerinstance.go +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - "context" - - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securesourcemanager/v1alpha1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - labels "k8s.io/apimachinery/pkg/labels" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - testing "k8s.io/client-go/testing" -) - -// FakeSecureSourceManagerInstances implements SecureSourceManagerInstanceInterface -type FakeSecureSourceManagerInstances struct { - Fake *FakeSecuresourcemanagerV1alpha1 - ns string -} - -var securesourcemanagerinstancesResource = v1alpha1.SchemeGroupVersion.WithResource("securesourcemanagerinstances") - -var securesourcemanagerinstancesKind = v1alpha1.SchemeGroupVersion.WithKind("SecureSourceManagerInstance") - -// Get takes name of the secureSourceManagerInstance, and returns the corresponding secureSourceManagerInstance object, and an error if there is any. -func (c *FakeSecureSourceManagerInstances) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(securesourcemanagerinstancesResource, c.ns, name), &v1alpha1.SecureSourceManagerInstance{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SecureSourceManagerInstance), err -} - -// List takes label and field selectors, and returns the list of SecureSourceManagerInstances that match those selectors. -func (c *FakeSecureSourceManagerInstances) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SecureSourceManagerInstanceList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(securesourcemanagerinstancesResource, securesourcemanagerinstancesKind, c.ns, opts), &v1alpha1.SecureSourceManagerInstanceList{}) - - if obj == nil { - return nil, err - } - - label, _, _ := testing.ExtractFromListOptions(opts) - if label == nil { - label = labels.Everything() - } - list := &v1alpha1.SecureSourceManagerInstanceList{ListMeta: obj.(*v1alpha1.SecureSourceManagerInstanceList).ListMeta} - for _, item := range obj.(*v1alpha1.SecureSourceManagerInstanceList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested secureSourceManagerInstances. -func (c *FakeSecureSourceManagerInstances) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(securesourcemanagerinstancesResource, c.ns, opts)) - -} - -// Create takes the representation of a secureSourceManagerInstance and creates it. Returns the server's representation of the secureSourceManagerInstance, and an error, if there is any. -func (c *FakeSecureSourceManagerInstances) Create(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.CreateOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(securesourcemanagerinstancesResource, c.ns, secureSourceManagerInstance), &v1alpha1.SecureSourceManagerInstance{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SecureSourceManagerInstance), err -} - -// Update takes the representation of a secureSourceManagerInstance and updates it. Returns the server's representation of the secureSourceManagerInstance, and an error, if there is any. -func (c *FakeSecureSourceManagerInstances) Update(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.UpdateOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(securesourcemanagerinstancesResource, c.ns, secureSourceManagerInstance), &v1alpha1.SecureSourceManagerInstance{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SecureSourceManagerInstance), err -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeSecureSourceManagerInstances) UpdateStatus(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.UpdateOptions) (*v1alpha1.SecureSourceManagerInstance, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(securesourcemanagerinstancesResource, "status", c.ns, secureSourceManagerInstance), &v1alpha1.SecureSourceManagerInstance{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SecureSourceManagerInstance), err -} - -// Delete takes name of the secureSourceManagerInstance and deletes it. Returns an error if one occurs. -func (c *FakeSecureSourceManagerInstances) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteActionWithOptions(securesourcemanagerinstancesResource, c.ns, name, opts), &v1alpha1.SecureSourceManagerInstance{}) - - return err -} - -// DeleteCollection deletes a collection of objects. -func (c *FakeSecureSourceManagerInstances) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - action := testing.NewDeleteCollectionAction(securesourcemanagerinstancesResource, c.ns, listOpts) - - _, err := c.Fake.Invokes(action, &v1alpha1.SecureSourceManagerInstanceList{}) - return err -} - -// Patch applies the patch and returns the patched secureSourceManagerInstance. -func (c *FakeSecureSourceManagerInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SecureSourceManagerInstance, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(securesourcemanagerinstancesResource, c.ns, name, pt, data, subresources...), &v1alpha1.SecureSourceManagerInstance{}) - - if obj == nil { - return nil, err - } - return obj.(*v1alpha1.SecureSourceManagerInstance), err -} diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/generated_expansion.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/generated_expansion.go deleted file mode 100644 index c0ac7f5c2a..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/generated_expansion.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -type SecureSourceManagerInstanceExpansion interface{} diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/securesourcemanager_client.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/securesourcemanager_client.go deleted file mode 100644 index 5d49f3e1da..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/securesourcemanager_client.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "net/http" - - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securesourcemanager/v1alpha1" - "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/scheme" - rest "k8s.io/client-go/rest" -) - -type SecuresourcemanagerV1alpha1Interface interface { - RESTClient() rest.Interface - SecureSourceManagerInstancesGetter -} - -// SecuresourcemanagerV1alpha1Client is used to interact with features provided by the securesourcemanager.cnrm.cloud.google.com group. -type SecuresourcemanagerV1alpha1Client struct { - restClient rest.Interface -} - -func (c *SecuresourcemanagerV1alpha1Client) SecureSourceManagerInstances(namespace string) SecureSourceManagerInstanceInterface { - return newSecureSourceManagerInstances(c, namespace) -} - -// NewForConfig creates a new SecuresourcemanagerV1alpha1Client for the given config. -// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient), -// where httpClient was generated with rest.HTTPClientFor(c). -func NewForConfig(c *rest.Config) (*SecuresourcemanagerV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - httpClient, err := rest.HTTPClientFor(&config) - if err != nil { - return nil, err - } - return NewForConfigAndClient(&config, httpClient) -} - -// NewForConfigAndClient creates a new SecuresourcemanagerV1alpha1Client for the given config and http client. -// Note the http client provided takes precedence over the configured transport values. -func NewForConfigAndClient(c *rest.Config, h *http.Client) (*SecuresourcemanagerV1alpha1Client, error) { - config := *c - if err := setConfigDefaults(&config); err != nil { - return nil, err - } - client, err := rest.RESTClientForConfigAndClient(&config, h) - if err != nil { - return nil, err - } - return &SecuresourcemanagerV1alpha1Client{client}, nil -} - -// NewForConfigOrDie creates a new SecuresourcemanagerV1alpha1Client for the given config and -// panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *SecuresourcemanagerV1alpha1Client { - client, err := NewForConfig(c) - if err != nil { - panic(err) - } - return client -} - -// New creates a new SecuresourcemanagerV1alpha1Client for the given RESTClient. -func New(c rest.Interface) *SecuresourcemanagerV1alpha1Client { - return &SecuresourcemanagerV1alpha1Client{c} -} - -func setConfigDefaults(config *rest.Config) error { - gv := v1alpha1.SchemeGroupVersion - config.GroupVersion = &gv - config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() - - if config.UserAgent == "" { - config.UserAgent = rest.DefaultKubernetesUserAgent() - } - - return nil -} - -// RESTClient returns a RESTClient that is used to communicate -// with API server by this client implementation. -func (c *SecuresourcemanagerV1alpha1Client) RESTClient() rest.Interface { - if c == nil { - return nil - } - return c.restClient -} diff --git a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/securesourcemanagerinstance.go b/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/securesourcemanagerinstance.go deleted file mode 100644 index 9fd3ac92ce..0000000000 --- a/pkg/clients/generated/client/clientset/versioned/typed/securesourcemanager/v1alpha1/securesourcemanagerinstance.go +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright 2020 Google LLC -// -// 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. - -// *** DISCLAIMER *** -// Config Connector's go-client for CRDs is currently in ALPHA, which means -// that future versions of the go-client may include breaking changes. -// Please try it out and give us feedback! - -// Code generated by client-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - "time" - - v1alpha1 "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/apis/securesourcemanager/v1alpha1" - scheme "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/clients/generated/client/clientset/versioned/scheme" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" -) - -// SecureSourceManagerInstancesGetter has a method to return a SecureSourceManagerInstanceInterface. -// A group's client should implement this interface. -type SecureSourceManagerInstancesGetter interface { - SecureSourceManagerInstances(namespace string) SecureSourceManagerInstanceInterface -} - -// SecureSourceManagerInstanceInterface has methods to work with SecureSourceManagerInstance resources. -type SecureSourceManagerInstanceInterface interface { - Create(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.CreateOptions) (*v1alpha1.SecureSourceManagerInstance, error) - Update(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.UpdateOptions) (*v1alpha1.SecureSourceManagerInstance, error) - UpdateStatus(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.UpdateOptions) (*v1alpha1.SecureSourceManagerInstance, error) - Delete(ctx context.Context, name string, opts v1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.SecureSourceManagerInstance, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.SecureSourceManagerInstanceList, error) - Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SecureSourceManagerInstance, err error) - SecureSourceManagerInstanceExpansion -} - -// secureSourceManagerInstances implements SecureSourceManagerInstanceInterface -type secureSourceManagerInstances struct { - client rest.Interface - ns string -} - -// newSecureSourceManagerInstances returns a SecureSourceManagerInstances -func newSecureSourceManagerInstances(c *SecuresourcemanagerV1alpha1Client, namespace string) *secureSourceManagerInstances { - return &secureSourceManagerInstances{ - client: c.RESTClient(), - ns: namespace, - } -} - -// Get takes name of the secureSourceManagerInstance, and returns the corresponding secureSourceManagerInstance object, and an error if there is any. -func (c *secureSourceManagerInstances) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - result = &v1alpha1.SecureSourceManagerInstance{} - err = c.client.Get(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of SecureSourceManagerInstances that match those selectors. -func (c *secureSourceManagerInstances) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SecureSourceManagerInstanceList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v1alpha1.SecureSourceManagerInstanceList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested secureSourceManagerInstances. -func (c *secureSourceManagerInstances) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a secureSourceManagerInstance and creates it. Returns the server's representation of the secureSourceManagerInstance, and an error, if there is any. -func (c *secureSourceManagerInstances) Create(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.CreateOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - result = &v1alpha1.SecureSourceManagerInstance{} - err = c.client.Post(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(secureSourceManagerInstance). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a secureSourceManagerInstance and updates it. Returns the server's representation of the secureSourceManagerInstance, and an error, if there is any. -func (c *secureSourceManagerInstances) Update(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.UpdateOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - result = &v1alpha1.SecureSourceManagerInstance{} - err = c.client.Put(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - Name(secureSourceManagerInstance.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(secureSourceManagerInstance). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *secureSourceManagerInstances) UpdateStatus(ctx context.Context, secureSourceManagerInstance *v1alpha1.SecureSourceManagerInstance, opts v1.UpdateOptions) (result *v1alpha1.SecureSourceManagerInstance, err error) { - result = &v1alpha1.SecureSourceManagerInstance{} - err = c.client.Put(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - Name(secureSourceManagerInstance.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(secureSourceManagerInstance). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the secureSourceManagerInstance and deletes it. Returns an error if one occurs. -func (c *secureSourceManagerInstances) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *secureSourceManagerInstances) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched secureSourceManagerInstance. -func (c *secureSourceManagerInstances) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.SecureSourceManagerInstance, err error) { - result = &v1alpha1.SecureSourceManagerInstance{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("securesourcemanagerinstances"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/tests/apichecks/testdata/exceptions/missingrefs.txt b/tests/apichecks/testdata/exceptions/missingrefs.txt index 22c57ce4dc..fbdc519bf5 100644 --- a/tests/apichecks/testdata/exceptions/missingrefs.txt +++ b/tests/apichecks/testdata/exceptions/missingrefs.txt @@ -47,7 +47,6 @@ [refs] crd=essentialcontactscontacts.essentialcontacts.cnrm.cloud.google.com version=v1alpha1: field ".spec.parent" should be a reference [refs] crd=gkebackupbackupplans.gkebackup.cnrm.cloud.google.com version=v1alpha1: field ".spec.backupConfig.encryptionKey.gcpKmsEncryptionKey" should be a reference [refs] crd=notebooksenvironments.notebooks.cnrm.cloud.google.com version=v1alpha1: field ".spec.vmImage.project" should be a reference -[refs] crd=securesourcemanagerinstances.securesourcemanager.cnrm.cloud.google.com version=v1alpha1: field ".spec.kmsKey" should be a reference [refs] crd=tagstagkeys.tags.cnrm.cloud.google.com version=v1beta1: field ".spec.parent" should be a reference [refs] crd=vertexaifeaturestoreentitytypefeatures.vertexai.cnrm.cloud.google.com version=v1alpha1: field ".spec.entitytype" should be a reference [refs] crd=vertexaifeaturestoreentitytypes.vertexai.cnrm.cloud.google.com version=v1alpha1: field ".spec.featurestore" should be a reference