From c19c1986c44f3c77b04d676fb2fbfc5ae728ee30 Mon Sep 17 00:00:00 2001 From: ISMAIL KABOUBI Date: Mon, 8 Jan 2024 17:52:02 +0100 Subject: [PATCH] feat(kube): rename default resource for better naming convention --- ...ojectkube_types.go => zz_cluster_types.go} | 234 +- apis/kube/v1alpha1/zz_generated.deepcopy.go | 1900 ++++++++--------- apis/kube/v1alpha1/zz_generated.managed.go | 192 +- .../kube/v1alpha1/zz_generated.managedlist.go | 16 +- apis/kube/v1alpha1/zz_generated.resolvers.go | 24 +- .../kube/v1alpha1/zz_generated_terraformed.go | 160 +- ...ons_types.go => zz_iprestriction_types.go} | 50 +- ...nodepool_types.go => zz_nodepool_types.go} | 50 +- ...types.go => zz_oidcconfiguration_types.go} | 50 +- config/kube/config.go | 10 +- .../{projectkube.yaml => cluster.yaml} | 2 +- ...iprestrictions.yaml => iprestriction.yaml} | 2 +- ...projectkubenodepool.yaml => nodepool.yaml} | 2 +- .../{projectkube => cluster}/zz_controller.go | 14 +- .../zz_controller.go | 14 +- .../zz_controller.go | 14 +- .../zz_controller.go | 14 +- internal/controller/zz_setup.go | 16 +- ....yaml => kube.ovh.edixos.io_clusters.yaml} | 16 +- ...=> kube.ovh.edixos.io_iprestrictions.yaml} | 23 +- ...yaml => kube.ovh.edixos.io_nodepools.yaml} | 21 +- ...ube.ovh.edixos.io_oidcconfigurations.yaml} | 22 +- 22 files changed, 1423 insertions(+), 1423 deletions(-) rename apis/kube/v1alpha1/{zz_projectkube_types.go => zz_cluster_types.go} (92%) rename apis/kube/v1alpha1/{zz_projectkubeiprestrictions_types.go => zz_iprestriction_types.go} (68%) rename apis/kube/v1alpha1/{zz_projectkubenodepool_types.go => zz_nodepool_types.go} (86%) rename apis/kube/v1alpha1/{zz_projectkubeoidc_types.go => zz_oidcconfiguration_types.go} (81%) rename examples/kubernetes/{projectkube.yaml => cluster.yaml} (93%) rename examples/kubernetes/{projectkubeiprestrictions.yaml => iprestriction.yaml} (88%) rename examples/kubernetes/{projectkubenodepool.yaml => nodepool.yaml} (92%) rename internal/controller/kube/{projectkube => cluster}/zz_controller.go (86%) rename internal/controller/kube/{projectkubeiprestrictions => iprestriction}/zz_controller.go (83%) rename internal/controller/kube/{projectkubenodepool => nodepool}/zz_controller.go (84%) rename internal/controller/kube/{projectkubeoidc => oidcconfiguration}/zz_controller.go (85%) rename package/crds/{kube.ovh.edixos.io_projectkubes.yaml => kube.ovh.edixos.io_clusters.yaml} (98%) rename package/crds/{kube.ovh.edixos.io_projectkubeiprestrictions.yaml => kube.ovh.edixos.io_iprestrictions.yaml} (96%) rename package/crds/{kube.ovh.edixos.io_projectkubenodepools.yaml => kube.ovh.edixos.io_nodepools.yaml} (97%) rename package/crds/{kube.ovh.edixos.io_projectkubeoidcs.yaml => kube.ovh.edixos.io_oidcconfigurations.yaml} (97%) diff --git a/apis/kube/v1alpha1/zz_projectkube_types.go b/apis/kube/v1alpha1/zz_cluster_types.go similarity index 92% rename from apis/kube/v1alpha1/zz_projectkube_types.go rename to apis/kube/v1alpha1/zz_cluster_types.go index cd92df8..40e650f 100755 --- a/apis/kube/v1alpha1/zz_projectkube_types.go +++ b/apis/kube/v1alpha1/zz_cluster_types.go @@ -52,6 +52,104 @@ type ApiserverParameters struct { Admissionplugins []AdmissionpluginsParameters `json:"admissionplugins,omitempty" tf:"admissionplugins,omitempty"` } +type ClusterInitParameters struct { + Customization []CustomizationInitParameters `json:"customization,omitempty" tf:"customization,omitempty"` + + CustomizationApiserver []CustomizationApiserverInitParameters `json:"customizationApiserver,omitempty" tf:"customization_apiserver,omitempty"` + + CustomizationKubeProxy []CustomizationKubeProxyInitParameters `json:"customizationKubeProxy,omitempty" tf:"customization_kube_proxy,omitempty"` + + KubeProxyMode *string `json:"kubeProxyMode,omitempty" tf:"kube_proxy_mode,omitempty"` + + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + PrivateNetworkConfiguration []PrivateNetworkConfigurationInitParameters `json:"privateNetworkConfiguration,omitempty" tf:"private_network_configuration,omitempty"` + + PrivateNetworkID *string `json:"privateNetworkId,omitempty" tf:"private_network_id,omitempty"` + + Region *string `json:"region,omitempty" tf:"region,omitempty"` + + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` + + UpdatePolicy *string `json:"updatePolicy,omitempty" tf:"update_policy,omitempty"` + + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + +type ClusterObservation struct { + ControlPlaneIsUpToDate *bool `json:"controlPlaneIsUpToDate,omitempty" tf:"control_plane_is_up_to_date,omitempty"` + + Customization []CustomizationObservation `json:"customization,omitempty" tf:"customization,omitempty"` + + CustomizationApiserver []CustomizationApiserverObservation `json:"customizationApiserver,omitempty" tf:"customization_apiserver,omitempty"` + + CustomizationKubeProxy []CustomizationKubeProxyObservation `json:"customizationKubeProxy,omitempty" tf:"customization_kube_proxy,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + IsUpToDate *bool `json:"isUpToDate,omitempty" tf:"is_up_to_date,omitempty"` + + KubeProxyMode *string `json:"kubeProxyMode,omitempty" tf:"kube_proxy_mode,omitempty"` + + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + NextUpgradeVersions []*string `json:"nextUpgradeVersions,omitempty" tf:"next_upgrade_versions,omitempty"` + + NodesURL *string `json:"nodesUrl,omitempty" tf:"nodes_url,omitempty"` + + PrivateNetworkConfiguration []PrivateNetworkConfigurationObservation `json:"privateNetworkConfiguration,omitempty" tf:"private_network_configuration,omitempty"` + + PrivateNetworkID *string `json:"privateNetworkId,omitempty" tf:"private_network_id,omitempty"` + + Region *string `json:"region,omitempty" tf:"region,omitempty"` + + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` + + Status *string `json:"status,omitempty" tf:"status,omitempty"` + + URL *string `json:"url,omitempty" tf:"url,omitempty"` + + UpdatePolicy *string `json:"updatePolicy,omitempty" tf:"update_policy,omitempty"` + + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + +type ClusterParameters struct { + + // +kubebuilder:validation:Optional + Customization []CustomizationParameters `json:"customization,omitempty" tf:"customization,omitempty"` + + // +kubebuilder:validation:Optional + CustomizationApiserver []CustomizationApiserverParameters `json:"customizationApiserver,omitempty" tf:"customization_apiserver,omitempty"` + + // +kubebuilder:validation:Optional + CustomizationKubeProxy []CustomizationKubeProxyParameters `json:"customizationKubeProxy,omitempty" tf:"customization_kube_proxy,omitempty"` + + // +kubebuilder:validation:Optional + KubeProxyMode *string `json:"kubeProxyMode,omitempty" tf:"kube_proxy_mode,omitempty"` + + // +kubebuilder:validation:Optional + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + // +kubebuilder:validation:Optional + PrivateNetworkConfiguration []PrivateNetworkConfigurationParameters `json:"privateNetworkConfiguration,omitempty" tf:"private_network_configuration,omitempty"` + + // +kubebuilder:validation:Optional + PrivateNetworkID *string `json:"privateNetworkId,omitempty" tf:"private_network_id,omitempty"` + + // +kubebuilder:validation:Optional + Region *string `json:"region,omitempty" tf:"region,omitempty"` + + // +kubebuilder:validation:Optional + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` + + // +kubebuilder:validation:Optional + UpdatePolicy *string `json:"updatePolicy,omitempty" tf:"update_policy,omitempty"` + + // +kubebuilder:validation:Optional + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + type CustomizationApiserverAdmissionpluginsInitParameters struct { Disabled []*string `json:"disabled,omitempty" tf:"disabled,omitempty"` @@ -237,108 +335,10 @@ type PrivateNetworkConfigurationParameters struct { PrivateNetworkRoutingAsDefault *bool `json:"privateNetworkRoutingAsDefault" tf:"private_network_routing_as_default,omitempty"` } -type ProjectKubeInitParameters struct { - Customization []CustomizationInitParameters `json:"customization,omitempty" tf:"customization,omitempty"` - - CustomizationApiserver []CustomizationApiserverInitParameters `json:"customizationApiserver,omitempty" tf:"customization_apiserver,omitempty"` - - CustomizationKubeProxy []CustomizationKubeProxyInitParameters `json:"customizationKubeProxy,omitempty" tf:"customization_kube_proxy,omitempty"` - - KubeProxyMode *string `json:"kubeProxyMode,omitempty" tf:"kube_proxy_mode,omitempty"` - - Name *string `json:"name,omitempty" tf:"name,omitempty"` - - PrivateNetworkConfiguration []PrivateNetworkConfigurationInitParameters `json:"privateNetworkConfiguration,omitempty" tf:"private_network_configuration,omitempty"` - - PrivateNetworkID *string `json:"privateNetworkId,omitempty" tf:"private_network_id,omitempty"` - - Region *string `json:"region,omitempty" tf:"region,omitempty"` - - ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` - - UpdatePolicy *string `json:"updatePolicy,omitempty" tf:"update_policy,omitempty"` - - Version *string `json:"version,omitempty" tf:"version,omitempty"` -} - -type ProjectKubeObservation struct { - ControlPlaneIsUpToDate *bool `json:"controlPlaneIsUpToDate,omitempty" tf:"control_plane_is_up_to_date,omitempty"` - - Customization []CustomizationObservation `json:"customization,omitempty" tf:"customization,omitempty"` - - CustomizationApiserver []CustomizationApiserverObservation `json:"customizationApiserver,omitempty" tf:"customization_apiserver,omitempty"` - - CustomizationKubeProxy []CustomizationKubeProxyObservation `json:"customizationKubeProxy,omitempty" tf:"customization_kube_proxy,omitempty"` - - ID *string `json:"id,omitempty" tf:"id,omitempty"` - - IsUpToDate *bool `json:"isUpToDate,omitempty" tf:"is_up_to_date,omitempty"` - - KubeProxyMode *string `json:"kubeProxyMode,omitempty" tf:"kube_proxy_mode,omitempty"` - - Name *string `json:"name,omitempty" tf:"name,omitempty"` - - NextUpgradeVersions []*string `json:"nextUpgradeVersions,omitempty" tf:"next_upgrade_versions,omitempty"` - - NodesURL *string `json:"nodesUrl,omitempty" tf:"nodes_url,omitempty"` - - PrivateNetworkConfiguration []PrivateNetworkConfigurationObservation `json:"privateNetworkConfiguration,omitempty" tf:"private_network_configuration,omitempty"` - - PrivateNetworkID *string `json:"privateNetworkId,omitempty" tf:"private_network_id,omitempty"` - - Region *string `json:"region,omitempty" tf:"region,omitempty"` - - ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` - - Status *string `json:"status,omitempty" tf:"status,omitempty"` - - URL *string `json:"url,omitempty" tf:"url,omitempty"` - - UpdatePolicy *string `json:"updatePolicy,omitempty" tf:"update_policy,omitempty"` - - Version *string `json:"version,omitempty" tf:"version,omitempty"` -} - -type ProjectKubeParameters struct { - - // +kubebuilder:validation:Optional - Customization []CustomizationParameters `json:"customization,omitempty" tf:"customization,omitempty"` - - // +kubebuilder:validation:Optional - CustomizationApiserver []CustomizationApiserverParameters `json:"customizationApiserver,omitempty" tf:"customization_apiserver,omitempty"` - - // +kubebuilder:validation:Optional - CustomizationKubeProxy []CustomizationKubeProxyParameters `json:"customizationKubeProxy,omitempty" tf:"customization_kube_proxy,omitempty"` - - // +kubebuilder:validation:Optional - KubeProxyMode *string `json:"kubeProxyMode,omitempty" tf:"kube_proxy_mode,omitempty"` - - // +kubebuilder:validation:Optional - Name *string `json:"name,omitempty" tf:"name,omitempty"` - - // +kubebuilder:validation:Optional - PrivateNetworkConfiguration []PrivateNetworkConfigurationParameters `json:"privateNetworkConfiguration,omitempty" tf:"private_network_configuration,omitempty"` - - // +kubebuilder:validation:Optional - PrivateNetworkID *string `json:"privateNetworkId,omitempty" tf:"private_network_id,omitempty"` - - // +kubebuilder:validation:Optional - Region *string `json:"region,omitempty" tf:"region,omitempty"` - - // +kubebuilder:validation:Optional - ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` - - // +kubebuilder:validation:Optional - UpdatePolicy *string `json:"updatePolicy,omitempty" tf:"update_policy,omitempty"` - - // +kubebuilder:validation:Optional - Version *string `json:"version,omitempty" tf:"version,omitempty"` -} - -// ProjectKubeSpec defines the desired state of ProjectKube -type ProjectKubeSpec struct { +// ClusterSpec defines the desired state of Cluster +type ClusterSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ProjectKubeParameters `json:"forProvider"` + ForProvider ClusterParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception @@ -349,50 +349,50 @@ type ProjectKubeSpec struct { // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. - InitProvider ProjectKubeInitParameters `json:"initProvider,omitempty"` + InitProvider ClusterInitParameters `json:"initProvider,omitempty"` } -// ProjectKubeStatus defines the observed state of ProjectKube. -type ProjectKubeStatus struct { +// ClusterStatus defines the observed state of Cluster. +type ClusterStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ProjectKubeObservation `json:"atProvider,omitempty"` + AtProvider ClusterObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ProjectKube is the Schema for the ProjectKubes API. +// Cluster is the Schema for the Clusters API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ovh} -type ProjectKube struct { +type Cluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.region) || (has(self.initProvider) && has(self.initProvider.region))",message="spec.forProvider.region is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - Spec ProjectKubeSpec `json:"spec"` - Status ProjectKubeStatus `json:"status,omitempty"` + Spec ClusterSpec `json:"spec"` + Status ClusterStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeList contains a list of ProjectKubes -type ProjectKubeList struct { +// ClusterList contains a list of Clusters +type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectKube `json:"items"` + Items []Cluster `json:"items"` } // Repository type metadata. var ( - ProjectKube_Kind = "ProjectKube" - ProjectKube_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectKube_Kind}.String() - ProjectKube_KindAPIVersion = ProjectKube_Kind + "." + CRDGroupVersion.String() - ProjectKube_GroupVersionKind = CRDGroupVersion.WithKind(ProjectKube_Kind) + Cluster_Kind = "Cluster" + Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String() + Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String() + Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind) ) func init() { - SchemeBuilder.Register(&ProjectKube{}, &ProjectKubeList{}) + SchemeBuilder.Register(&Cluster{}, &ClusterList{}) } diff --git a/apis/kube/v1alpha1/zz_generated.deepcopy.go b/apis/kube/v1alpha1/zz_generated.deepcopy.go index a5277ff..2c4a5de 100644 --- a/apis/kube/v1alpha1/zz_generated.deepcopy.go +++ b/apis/kube/v1alpha1/zz_generated.deepcopy.go @@ -191,631 +191,736 @@ func (in *ApiserverParameters) DeepCopy() *ApiserverParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationApiserverAdmissionpluginsInitParameters) DeepCopyInto(out *CustomizationApiserverAdmissionpluginsInitParameters) { +func (in *Cluster) DeepCopyInto(out *Cluster) { *out = *in - if in.Disabled != nil { - in, out := &in.Disabled, &out.Disabled - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverAdmissionpluginsInitParameters. -func (in *CustomizationApiserverAdmissionpluginsInitParameters) DeepCopy() *CustomizationApiserverAdmissionpluginsInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. +func (in *Cluster) DeepCopy() *Cluster { if in == nil { return nil } - out := new(CustomizationApiserverAdmissionpluginsInitParameters) + out := new(Cluster) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Cluster) 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 *CustomizationApiserverAdmissionpluginsObservation) DeepCopyInto(out *CustomizationApiserverAdmissionpluginsObservation) { +func (in *ClusterInitParameters) DeepCopyInto(out *ClusterInitParameters) { *out = *in - if in.Disabled != nil { - in, out := &in.Disabled, &out.Disabled - *out = make([]*string, len(*in)) + if in.Customization != nil { + in, out := &in.Customization, &out.Customization + *out = make([]CustomizationInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = make([]*string, len(*in)) + if in.CustomizationApiserver != nil { + in, out := &in.CustomizationApiserver, &out.CustomizationApiserver + *out = make([]CustomizationApiserverInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverAdmissionpluginsObservation. -func (in *CustomizationApiserverAdmissionpluginsObservation) DeepCopy() *CustomizationApiserverAdmissionpluginsObservation { - if in == nil { - return nil - } - out := new(CustomizationApiserverAdmissionpluginsObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationApiserverAdmissionpluginsParameters) DeepCopyInto(out *CustomizationApiserverAdmissionpluginsParameters) { - *out = *in - if in.Disabled != nil { - in, out := &in.Disabled, &out.Disabled - *out = make([]*string, len(*in)) + if in.CustomizationKubeProxy != nil { + in, out := &in.CustomizationKubeProxy, &out.CustomizationKubeProxy + *out = make([]CustomizationKubeProxyInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = make([]*string, len(*in)) + if in.KubeProxyMode != nil { + in, out := &in.KubeProxyMode, &out.KubeProxyMode + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.PrivateNetworkConfiguration != nil { + in, out := &in.PrivateNetworkConfiguration, &out.PrivateNetworkConfiguration + *out = make([]PrivateNetworkConfigurationInitParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.PrivateNetworkID != nil { + in, out := &in.PrivateNetworkID, &out.PrivateNetworkID + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } + if in.UpdatePolicy != nil { + in, out := &in.UpdatePolicy, &out.UpdatePolicy + *out = new(string) + **out = **in + } + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverAdmissionpluginsParameters. -func (in *CustomizationApiserverAdmissionpluginsParameters) DeepCopy() *CustomizationApiserverAdmissionpluginsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInitParameters. +func (in *ClusterInitParameters) DeepCopy() *ClusterInitParameters { if in == nil { return nil } - out := new(CustomizationApiserverAdmissionpluginsParameters) + out := new(ClusterInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationApiserverInitParameters) DeepCopyInto(out *CustomizationApiserverInitParameters) { +func (in *ClusterList) DeepCopyInto(out *ClusterList) { *out = *in - if in.Admissionplugins != nil { - in, out := &in.Admissionplugins, &out.Admissionplugins - *out = make([]CustomizationApiserverAdmissionpluginsInitParameters, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Cluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverInitParameters. -func (in *CustomizationApiserverInitParameters) DeepCopy() *CustomizationApiserverInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. +func (in *ClusterList) DeepCopy() *ClusterList { if in == nil { return nil } - out := new(CustomizationApiserverInitParameters) + out := new(ClusterList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterList) 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 *CustomizationApiserverObservation) DeepCopyInto(out *CustomizationApiserverObservation) { +func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { *out = *in - if in.Admissionplugins != nil { - in, out := &in.Admissionplugins, &out.Admissionplugins - *out = make([]CustomizationApiserverAdmissionpluginsObservation, len(*in)) + if in.ControlPlaneIsUpToDate != nil { + in, out := &in.ControlPlaneIsUpToDate, &out.ControlPlaneIsUpToDate + *out = new(bool) + **out = **in + } + if in.Customization != nil { + in, out := &in.Customization, &out.Customization + *out = make([]CustomizationObservation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverObservation. -func (in *CustomizationApiserverObservation) DeepCopy() *CustomizationApiserverObservation { - if in == nil { - return nil + if in.CustomizationApiserver != nil { + in, out := &in.CustomizationApiserver, &out.CustomizationApiserver + *out = make([]CustomizationApiserverObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - out := new(CustomizationApiserverObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationApiserverParameters) DeepCopyInto(out *CustomizationApiserverParameters) { - *out = *in - if in.Admissionplugins != nil { - in, out := &in.Admissionplugins, &out.Admissionplugins - *out = make([]CustomizationApiserverAdmissionpluginsParameters, len(*in)) + if in.CustomizationKubeProxy != nil { + in, out := &in.CustomizationKubeProxy, &out.CustomizationKubeProxy + *out = make([]CustomizationKubeProxyObservation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverParameters. -func (in *CustomizationApiserverParameters) DeepCopy() *CustomizationApiserverParameters { - if in == nil { - return nil + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in } - out := new(CustomizationApiserverParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationInitParameters) DeepCopyInto(out *CustomizationInitParameters) { - *out = *in - if in.Apiserver != nil { - in, out := &in.Apiserver, &out.Apiserver - *out = make([]ApiserverInitParameters, len(*in)) + if in.IsUpToDate != nil { + in, out := &in.IsUpToDate, &out.IsUpToDate + *out = new(bool) + **out = **in + } + if in.KubeProxyMode != nil { + in, out := &in.KubeProxyMode, &out.KubeProxyMode + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.NextUpgradeVersions != nil { + in, out := &in.NextUpgradeVersions, &out.NextUpgradeVersions + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.NodesURL != nil { + in, out := &in.NodesURL, &out.NodesURL + *out = new(string) + **out = **in + } + if in.PrivateNetworkConfiguration != nil { + in, out := &in.PrivateNetworkConfiguration, &out.PrivateNetworkConfiguration + *out = make([]PrivateNetworkConfigurationObservation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.PrivateNetworkID != nil { + in, out := &in.PrivateNetworkID, &out.PrivateNetworkID + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(string) + **out = **in + } + if in.URL != nil { + in, out := &in.URL, &out.URL + *out = new(string) + **out = **in + } + if in.UpdatePolicy != nil { + in, out := &in.UpdatePolicy, &out.UpdatePolicy + *out = new(string) + **out = **in + } + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationInitParameters. -func (in *CustomizationInitParameters) DeepCopy() *CustomizationInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservation. +func (in *ClusterObservation) DeepCopy() *ClusterObservation { if in == nil { return nil } - out := new(CustomizationInitParameters) + out := new(ClusterObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationKubeProxyInitParameters) DeepCopyInto(out *CustomizationKubeProxyInitParameters) { +func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters) { *out = *in - if in.Iptables != nil { - in, out := &in.Iptables, &out.Iptables - *out = make([]IptablesInitParameters, len(*in)) + if in.Customization != nil { + in, out := &in.Customization, &out.Customization + *out = make([]CustomizationParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Ipvs != nil { - in, out := &in.Ipvs, &out.Ipvs - *out = make([]IpvsInitParameters, len(*in)) + if in.CustomizationApiserver != nil { + in, out := &in.CustomizationApiserver, &out.CustomizationApiserver + *out = make([]CustomizationApiserverParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.CustomizationKubeProxy != nil { + in, out := &in.CustomizationKubeProxy, &out.CustomizationKubeProxy + *out = make([]CustomizationKubeProxyParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.KubeProxyMode != nil { + in, out := &in.KubeProxyMode, &out.KubeProxyMode + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.PrivateNetworkConfiguration != nil { + in, out := &in.PrivateNetworkConfiguration, &out.PrivateNetworkConfiguration + *out = make([]PrivateNetworkConfigurationParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PrivateNetworkID != nil { + in, out := &in.PrivateNetworkID, &out.PrivateNetworkID + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } + if in.UpdatePolicy != nil { + in, out := &in.UpdatePolicy, &out.UpdatePolicy + *out = new(string) + **out = **in + } + if in.Version != nil { + in, out := &in.Version, &out.Version + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationKubeProxyInitParameters. -func (in *CustomizationKubeProxyInitParameters) DeepCopy() *CustomizationKubeProxyInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters. +func (in *ClusterParameters) DeepCopy() *ClusterParameters { if in == nil { return nil } - out := new(CustomizationKubeProxyInitParameters) + out := new(ClusterParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationKubeProxyObservation) DeepCopyInto(out *CustomizationKubeProxyObservation) { +func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { *out = *in - if in.Iptables != nil { - in, out := &in.Iptables, &out.Iptables - *out = make([]IptablesObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Ipvs != nil { - in, out := &in.Ipvs, &out.Ipvs - *out = make([]IpvsObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. +func (in *ClusterSpec) DeepCopy() *ClusterSpec { + if in == nil { + return nil } + out := new(ClusterSpec) + in.DeepCopyInto(out) + return out } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationKubeProxyObservation. -func (in *CustomizationKubeProxyObservation) DeepCopy() *CustomizationKubeProxyObservation { +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. +func (in *ClusterStatus) DeepCopy() *ClusterStatus { if in == nil { return nil } - out := new(CustomizationKubeProxyObservation) + out := new(ClusterStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationKubeProxyParameters) DeepCopyInto(out *CustomizationKubeProxyParameters) { +func (in *CustomizationApiserverAdmissionpluginsInitParameters) DeepCopyInto(out *CustomizationApiserverAdmissionpluginsInitParameters) { *out = *in - if in.Iptables != nil { - in, out := &in.Iptables, &out.Iptables - *out = make([]IptablesParameters, len(*in)) + if in.Disabled != nil { + in, out := &in.Disabled, &out.Disabled + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } - if in.Ipvs != nil { - in, out := &in.Ipvs, &out.Ipvs - *out = make([]IpvsParameters, len(*in)) + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationKubeProxyParameters. -func (in *CustomizationKubeProxyParameters) DeepCopy() *CustomizationKubeProxyParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverAdmissionpluginsInitParameters. +func (in *CustomizationApiserverAdmissionpluginsInitParameters) DeepCopy() *CustomizationApiserverAdmissionpluginsInitParameters { if in == nil { return nil } - out := new(CustomizationKubeProxyParameters) + out := new(CustomizationApiserverAdmissionpluginsInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationObservation) DeepCopyInto(out *CustomizationObservation) { +func (in *CustomizationApiserverAdmissionpluginsObservation) DeepCopyInto(out *CustomizationApiserverAdmissionpluginsObservation) { *out = *in - if in.Apiserver != nil { - in, out := &in.Apiserver, &out.Apiserver - *out = make([]ApiserverObservation, len(*in)) + if in.Disabled != nil { + in, out := &in.Disabled, &out.Disabled + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationObservation. -func (in *CustomizationObservation) DeepCopy() *CustomizationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverAdmissionpluginsObservation. +func (in *CustomizationApiserverAdmissionpluginsObservation) DeepCopy() *CustomizationApiserverAdmissionpluginsObservation { if in == nil { return nil } - out := new(CustomizationObservation) + out := new(CustomizationApiserverAdmissionpluginsObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CustomizationParameters) DeepCopyInto(out *CustomizationParameters) { +func (in *CustomizationApiserverAdmissionpluginsParameters) DeepCopyInto(out *CustomizationApiserverAdmissionpluginsParameters) { *out = *in - if in.Apiserver != nil { - in, out := &in.Apiserver, &out.Apiserver - *out = make([]ApiserverParameters, len(*in)) + if in.Disabled != nil { + in, out := &in.Disabled, &out.Disabled + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationParameters. -func (in *CustomizationParameters) DeepCopy() *CustomizationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverAdmissionpluginsParameters. +func (in *CustomizationApiserverAdmissionpluginsParameters) DeepCopy() *CustomizationApiserverAdmissionpluginsParameters { if in == nil { return nil } - out := new(CustomizationParameters) + out := new(CustomizationApiserverAdmissionpluginsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IptablesInitParameters) DeepCopyInto(out *IptablesInitParameters) { +func (in *CustomizationApiserverInitParameters) DeepCopyInto(out *CustomizationApiserverInitParameters) { *out = *in - if in.MinSyncPeriod != nil { - in, out := &in.MinSyncPeriod, &out.MinSyncPeriod - *out = new(string) - **out = **in - } - if in.SyncPeriod != nil { - in, out := &in.SyncPeriod, &out.SyncPeriod - *out = new(string) - **out = **in + if in.Admissionplugins != nil { + in, out := &in.Admissionplugins, &out.Admissionplugins + *out = make([]CustomizationApiserverAdmissionpluginsInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IptablesInitParameters. -func (in *IptablesInitParameters) DeepCopy() *IptablesInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverInitParameters. +func (in *CustomizationApiserverInitParameters) DeepCopy() *CustomizationApiserverInitParameters { if in == nil { return nil } - out := new(IptablesInitParameters) + out := new(CustomizationApiserverInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IptablesObservation) DeepCopyInto(out *IptablesObservation) { +func (in *CustomizationApiserverObservation) DeepCopyInto(out *CustomizationApiserverObservation) { *out = *in - if in.MinSyncPeriod != nil { - in, out := &in.MinSyncPeriod, &out.MinSyncPeriod - *out = new(string) - **out = **in - } - if in.SyncPeriod != nil { - in, out := &in.SyncPeriod, &out.SyncPeriod - *out = new(string) - **out = **in + if in.Admissionplugins != nil { + in, out := &in.Admissionplugins, &out.Admissionplugins + *out = make([]CustomizationApiserverAdmissionpluginsObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IptablesObservation. -func (in *IptablesObservation) DeepCopy() *IptablesObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverObservation. +func (in *CustomizationApiserverObservation) DeepCopy() *CustomizationApiserverObservation { if in == nil { return nil } - out := new(IptablesObservation) + out := new(CustomizationApiserverObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IptablesParameters) DeepCopyInto(out *IptablesParameters) { +func (in *CustomizationApiserverParameters) DeepCopyInto(out *CustomizationApiserverParameters) { *out = *in - if in.MinSyncPeriod != nil { - in, out := &in.MinSyncPeriod, &out.MinSyncPeriod - *out = new(string) - **out = **in - } - if in.SyncPeriod != nil { - in, out := &in.SyncPeriod, &out.SyncPeriod - *out = new(string) - **out = **in + if in.Admissionplugins != nil { + in, out := &in.Admissionplugins, &out.Admissionplugins + *out = make([]CustomizationApiserverAdmissionpluginsParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IptablesParameters. -func (in *IptablesParameters) DeepCopy() *IptablesParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationApiserverParameters. +func (in *CustomizationApiserverParameters) DeepCopy() *CustomizationApiserverParameters { if in == nil { return nil } - out := new(IptablesParameters) + out := new(CustomizationApiserverParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IpvsInitParameters) DeepCopyInto(out *IpvsInitParameters) { +func (in *CustomizationInitParameters) DeepCopyInto(out *CustomizationInitParameters) { *out = *in - if in.MinSyncPeriod != nil { - in, out := &in.MinSyncPeriod, &out.MinSyncPeriod - *out = new(string) - **out = **in - } - if in.Scheduler != nil { - in, out := &in.Scheduler, &out.Scheduler - *out = new(string) - **out = **in - } - if in.SyncPeriod != nil { - in, out := &in.SyncPeriod, &out.SyncPeriod - *out = new(string) - **out = **in - } - if in.TCPFinTimeout != nil { - in, out := &in.TCPFinTimeout, &out.TCPFinTimeout - *out = new(string) - **out = **in - } - if in.TCPTimeout != nil { - in, out := &in.TCPTimeout, &out.TCPTimeout - *out = new(string) - **out = **in - } - if in.UDPTimeout != nil { - in, out := &in.UDPTimeout, &out.UDPTimeout - *out = new(string) - **out = **in + if in.Apiserver != nil { + in, out := &in.Apiserver, &out.Apiserver + *out = make([]ApiserverInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpvsInitParameters. -func (in *IpvsInitParameters) DeepCopy() *IpvsInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationInitParameters. +func (in *CustomizationInitParameters) DeepCopy() *CustomizationInitParameters { if in == nil { return nil } - out := new(IpvsInitParameters) + out := new(CustomizationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IpvsObservation) DeepCopyInto(out *IpvsObservation) { +func (in *CustomizationKubeProxyInitParameters) DeepCopyInto(out *CustomizationKubeProxyInitParameters) { *out = *in - if in.MinSyncPeriod != nil { - in, out := &in.MinSyncPeriod, &out.MinSyncPeriod - *out = new(string) - **out = **in - } - if in.Scheduler != nil { - in, out := &in.Scheduler, &out.Scheduler - *out = new(string) - **out = **in - } - if in.SyncPeriod != nil { - in, out := &in.SyncPeriod, &out.SyncPeriod - *out = new(string) - **out = **in - } - if in.TCPFinTimeout != nil { - in, out := &in.TCPFinTimeout, &out.TCPFinTimeout - *out = new(string) - **out = **in - } - if in.TCPTimeout != nil { - in, out := &in.TCPTimeout, &out.TCPTimeout - *out = new(string) - **out = **in - } - if in.UDPTimeout != nil { - in, out := &in.UDPTimeout, &out.UDPTimeout - *out = new(string) - **out = **in + if in.Iptables != nil { + in, out := &in.Iptables, &out.Iptables + *out = make([]IptablesInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Ipvs != nil { + in, out := &in.Ipvs, &out.Ipvs + *out = make([]IpvsInitParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpvsObservation. -func (in *IpvsObservation) DeepCopy() *IpvsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationKubeProxyInitParameters. +func (in *CustomizationKubeProxyInitParameters) DeepCopy() *CustomizationKubeProxyInitParameters { if in == nil { return nil } - out := new(IpvsObservation) + out := new(CustomizationKubeProxyInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IpvsParameters) DeepCopyInto(out *IpvsParameters) { +func (in *CustomizationKubeProxyObservation) DeepCopyInto(out *CustomizationKubeProxyObservation) { *out = *in - if in.MinSyncPeriod != nil { - in, out := &in.MinSyncPeriod, &out.MinSyncPeriod - *out = new(string) - **out = **in - } - if in.Scheduler != nil { - in, out := &in.Scheduler, &out.Scheduler - *out = new(string) - **out = **in + if in.Iptables != nil { + in, out := &in.Iptables, &out.Iptables + *out = make([]IptablesObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.SyncPeriod != nil { - in, out := &in.SyncPeriod, &out.SyncPeriod - *out = new(string) - **out = **in + if in.Ipvs != nil { + in, out := &in.Ipvs, &out.Ipvs + *out = make([]IpvsObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.TCPFinTimeout != nil { - in, out := &in.TCPFinTimeout, &out.TCPFinTimeout - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationKubeProxyObservation. +func (in *CustomizationKubeProxyObservation) DeepCopy() *CustomizationKubeProxyObservation { + if in == nil { + return nil } - if in.TCPTimeout != nil { - in, out := &in.TCPTimeout, &out.TCPTimeout - *out = new(string) - **out = **in + out := new(CustomizationKubeProxyObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CustomizationKubeProxyParameters) DeepCopyInto(out *CustomizationKubeProxyParameters) { + *out = *in + if in.Iptables != nil { + in, out := &in.Iptables, &out.Iptables + *out = make([]IptablesParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.UDPTimeout != nil { - in, out := &in.UDPTimeout, &out.UDPTimeout - *out = new(string) - **out = **in + if in.Ipvs != nil { + in, out := &in.Ipvs, &out.Ipvs + *out = make([]IpvsParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpvsParameters. -func (in *IpvsParameters) DeepCopy() *IpvsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationKubeProxyParameters. +func (in *CustomizationKubeProxyParameters) DeepCopy() *CustomizationKubeProxyParameters { if in == nil { return nil } - out := new(IpvsParameters) + out := new(CustomizationKubeProxyParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeconfigAttributesInitParameters) DeepCopyInto(out *KubeconfigAttributesInitParameters) { +func (in *CustomizationObservation) DeepCopyInto(out *CustomizationObservation) { *out = *in + if in.Apiserver != nil { + in, out := &in.Apiserver, &out.Apiserver + *out = make([]ApiserverObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigAttributesInitParameters. -func (in *KubeconfigAttributesInitParameters) DeepCopy() *KubeconfigAttributesInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationObservation. +func (in *CustomizationObservation) DeepCopy() *CustomizationObservation { if in == nil { return nil } - out := new(KubeconfigAttributesInitParameters) + out := new(CustomizationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeconfigAttributesObservation) DeepCopyInto(out *KubeconfigAttributesObservation) { +func (in *CustomizationParameters) DeepCopyInto(out *CustomizationParameters) { *out = *in - if in.ClientCertificate != nil { - in, out := &in.ClientCertificate, &out.ClientCertificate - *out = new(string) - **out = **in - } - if in.ClientKey != nil { - in, out := &in.ClientKey, &out.ClientKey - *out = new(string) - **out = **in - } - if in.ClusterCACertificate != nil { - in, out := &in.ClusterCACertificate, &out.ClusterCACertificate - *out = new(string) - **out = **in - } - if in.Host != nil { - in, out := &in.Host, &out.Host - *out = new(string) - **out = **in + if in.Apiserver != nil { + in, out := &in.Apiserver, &out.Apiserver + *out = make([]ApiserverParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigAttributesObservation. -func (in *KubeconfigAttributesObservation) DeepCopy() *KubeconfigAttributesObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomizationParameters. +func (in *CustomizationParameters) DeepCopy() *CustomizationParameters { if in == nil { return nil } - out := new(KubeconfigAttributesObservation) + out := new(CustomizationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *KubeconfigAttributesParameters) DeepCopyInto(out *KubeconfigAttributesParameters) { +func (in *IpRestriction) DeepCopyInto(out *IpRestriction) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigAttributesParameters. -func (in *KubeconfigAttributesParameters) DeepCopy() *KubeconfigAttributesParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestriction. +func (in *IpRestriction) DeepCopy() *IpRestriction { if in == nil { return nil } - out := new(KubeconfigAttributesParameters) + out := new(IpRestriction) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IpRestriction) 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 *MetadataInitParameters) DeepCopyInto(out *MetadataInitParameters) { +func (in *IpRestrictionInitParameters) DeepCopyInto(out *IpRestrictionInitParameters) { *out = *in - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Finalizers != nil { - in, out := &in.Finalizers, &out.Finalizers + if in.Ips != nil { + in, out := &in.Ips, &out.Ips *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -825,113 +930,101 @@ func (in *MetadataInitParameters) DeepCopyInto(out *MetadataInitParameters) { } } } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataInitParameters. -func (in *MetadataInitParameters) DeepCopy() *MetadataInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestrictionInitParameters. +func (in *IpRestrictionInitParameters) DeepCopy() *IpRestrictionInitParameters { if in == nil { return nil } - out := new(MetadataInitParameters) + out := new(IpRestrictionInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetadataObservation) DeepCopyInto(out *MetadataObservation) { +func (in *IpRestrictionList) DeepCopyInto(out *IpRestrictionList) { *out = *in - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Finalizers != nil { - in, out := &in.Finalizers, &out.Finalizers - *out = make([]*string, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]IpRestriction, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestrictionList. +func (in *IpRestrictionList) DeepCopy() *IpRestrictionList { + if in == nil { + return nil + } + out := new(IpRestrictionList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IpRestrictionList) 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 *IpRestrictionObservation) DeepCopyInto(out *IpRestrictionObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Ips != nil { + in, out := &in.Ips, &out.Ips + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] *out = new(string) **out = **in } - (*out)[key] = outVal } } + if in.KubeID != nil { + in, out := &in.KubeID, &out.KubeID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataObservation. -func (in *MetadataObservation) DeepCopy() *MetadataObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestrictionObservation. +func (in *IpRestrictionObservation) DeepCopy() *IpRestrictionObservation { if in == nil { return nil } - out := new(MetadataObservation) + out := new(IpRestrictionObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MetadataParameters) DeepCopyInto(out *MetadataParameters) { +func (in *IpRestrictionParameters) DeepCopyInto(out *IpRestrictionParameters) { *out = *in - if in.Annotations != nil { - in, out := &in.Annotations, &out.Annotations - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Finalizers != nil { - in, out := &in.Finalizers, &out.Finalizers + if in.Ips != nil { + in, out := &in.Ips, &out.Ips *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -941,314 +1034,369 @@ func (in *MetadataParameters) DeepCopyInto(out *MetadataParameters) { } } } - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - inVal := (*in)[key] - in, out := &inVal, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } + if in.KubeID != nil { + in, out := &in.KubeID, &out.KubeID + *out = new(string) + **out = **in + } + if in.KubeIDRef != nil { + in, out := &in.KubeIDRef, &out.KubeIDRef + *out = new(v1.Reference) + (*in).DeepCopyInto(*out) + } + if in.KubeIDSelector != nil { + in, out := &in.KubeIDSelector, &out.KubeIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataParameters. -func (in *MetadataParameters) DeepCopy() *MetadataParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestrictionParameters. +func (in *IpRestrictionParameters) DeepCopy() *IpRestrictionParameters { if in == nil { return nil } - out := new(MetadataParameters) + out := new(IpRestrictionParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PrivateNetworkConfigurationInitParameters) DeepCopyInto(out *PrivateNetworkConfigurationInitParameters) { +func (in *IpRestrictionSpec) DeepCopyInto(out *IpRestrictionSpec) { *out = *in - if in.DefaultVrackGateway != nil { - in, out := &in.DefaultVrackGateway, &out.DefaultVrackGateway + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestrictionSpec. +func (in *IpRestrictionSpec) DeepCopy() *IpRestrictionSpec { + if in == nil { + return nil + } + out := new(IpRestrictionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IpRestrictionStatus) DeepCopyInto(out *IpRestrictionStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpRestrictionStatus. +func (in *IpRestrictionStatus) DeepCopy() *IpRestrictionStatus { + if in == nil { + return nil + } + out := new(IpRestrictionStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IptablesInitParameters) DeepCopyInto(out *IptablesInitParameters) { + *out = *in + if in.MinSyncPeriod != nil { + in, out := &in.MinSyncPeriod, &out.MinSyncPeriod *out = new(string) **out = **in } - if in.PrivateNetworkRoutingAsDefault != nil { - in, out := &in.PrivateNetworkRoutingAsDefault, &out.PrivateNetworkRoutingAsDefault - *out = new(bool) + if in.SyncPeriod != nil { + in, out := &in.SyncPeriod, &out.SyncPeriod + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkConfigurationInitParameters. -func (in *PrivateNetworkConfigurationInitParameters) DeepCopy() *PrivateNetworkConfigurationInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IptablesInitParameters. +func (in *IptablesInitParameters) DeepCopy() *IptablesInitParameters { if in == nil { return nil } - out := new(PrivateNetworkConfigurationInitParameters) + out := new(IptablesInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PrivateNetworkConfigurationObservation) DeepCopyInto(out *PrivateNetworkConfigurationObservation) { +func (in *IptablesObservation) DeepCopyInto(out *IptablesObservation) { *out = *in - if in.DefaultVrackGateway != nil { - in, out := &in.DefaultVrackGateway, &out.DefaultVrackGateway + if in.MinSyncPeriod != nil { + in, out := &in.MinSyncPeriod, &out.MinSyncPeriod *out = new(string) **out = **in } - if in.PrivateNetworkRoutingAsDefault != nil { - in, out := &in.PrivateNetworkRoutingAsDefault, &out.PrivateNetworkRoutingAsDefault - *out = new(bool) + if in.SyncPeriod != nil { + in, out := &in.SyncPeriod, &out.SyncPeriod + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkConfigurationObservation. -func (in *PrivateNetworkConfigurationObservation) DeepCopy() *PrivateNetworkConfigurationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IptablesObservation. +func (in *IptablesObservation) DeepCopy() *IptablesObservation { if in == nil { return nil } - out := new(PrivateNetworkConfigurationObservation) + out := new(IptablesObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PrivateNetworkConfigurationParameters) DeepCopyInto(out *PrivateNetworkConfigurationParameters) { +func (in *IptablesParameters) DeepCopyInto(out *IptablesParameters) { *out = *in - if in.DefaultVrackGateway != nil { - in, out := &in.DefaultVrackGateway, &out.DefaultVrackGateway + if in.MinSyncPeriod != nil { + in, out := &in.MinSyncPeriod, &out.MinSyncPeriod *out = new(string) **out = **in } - if in.PrivateNetworkRoutingAsDefault != nil { - in, out := &in.PrivateNetworkRoutingAsDefault, &out.PrivateNetworkRoutingAsDefault - *out = new(bool) + if in.SyncPeriod != nil { + in, out := &in.SyncPeriod, &out.SyncPeriod + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkConfigurationParameters. -func (in *PrivateNetworkConfigurationParameters) DeepCopy() *PrivateNetworkConfigurationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IptablesParameters. +func (in *IptablesParameters) DeepCopy() *IptablesParameters { if in == nil { return nil } - out := new(PrivateNetworkConfigurationParameters) + out := new(IptablesParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKube) DeepCopyInto(out *ProjectKube) { +func (in *IpvsInitParameters) DeepCopyInto(out *IpvsInitParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.MinSyncPeriod != nil { + in, out := &in.MinSyncPeriod, &out.MinSyncPeriod + *out = new(string) + **out = **in + } + if in.Scheduler != nil { + in, out := &in.Scheduler, &out.Scheduler + *out = new(string) + **out = **in + } + if in.SyncPeriod != nil { + in, out := &in.SyncPeriod, &out.SyncPeriod + *out = new(string) + **out = **in + } + if in.TCPFinTimeout != nil { + in, out := &in.TCPFinTimeout, &out.TCPFinTimeout + *out = new(string) + **out = **in + } + if in.TCPTimeout != nil { + in, out := &in.TCPTimeout, &out.TCPTimeout + *out = new(string) + **out = **in + } + if in.UDPTimeout != nil { + in, out := &in.UDPTimeout, &out.UDPTimeout + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKube. -func (in *ProjectKube) DeepCopy() *ProjectKube { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpvsInitParameters. +func (in *IpvsInitParameters) DeepCopy() *IpvsInitParameters { if in == nil { return nil } - out := new(ProjectKube) + out := new(IpvsInitParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKube) 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 *ProjectKubeInitParameters) DeepCopyInto(out *ProjectKubeInitParameters) { +func (in *IpvsObservation) DeepCopyInto(out *IpvsObservation) { *out = *in - if in.Customization != nil { - in, out := &in.Customization, &out.Customization - *out = make([]CustomizationInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.MinSyncPeriod != nil { + in, out := &in.MinSyncPeriod, &out.MinSyncPeriod + *out = new(string) + **out = **in } - if in.CustomizationApiserver != nil { - in, out := &in.CustomizationApiserver, &out.CustomizationApiserver - *out = make([]CustomizationApiserverInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.Scheduler != nil { + in, out := &in.Scheduler, &out.Scheduler + *out = new(string) + **out = **in } - if in.CustomizationKubeProxy != nil { - in, out := &in.CustomizationKubeProxy, &out.CustomizationKubeProxy - *out = make([]CustomizationKubeProxyInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.SyncPeriod != nil { + in, out := &in.SyncPeriod, &out.SyncPeriod + *out = new(string) + **out = **in } - if in.KubeProxyMode != nil { - in, out := &in.KubeProxyMode, &out.KubeProxyMode + if in.TCPFinTimeout != nil { + in, out := &in.TCPFinTimeout, &out.TCPFinTimeout *out = new(string) **out = **in } - if in.Name != nil { - in, out := &in.Name, &out.Name + if in.TCPTimeout != nil { + in, out := &in.TCPTimeout, &out.TCPTimeout + *out = new(string) + **out = **in + } + if in.UDPTimeout != nil { + in, out := &in.UDPTimeout, &out.UDPTimeout + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpvsObservation. +func (in *IpvsObservation) DeepCopy() *IpvsObservation { + if in == nil { + return nil + } + out := new(IpvsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IpvsParameters) DeepCopyInto(out *IpvsParameters) { + *out = *in + if in.MinSyncPeriod != nil { + in, out := &in.MinSyncPeriod, &out.MinSyncPeriod *out = new(string) **out = **in } - if in.PrivateNetworkConfiguration != nil { - in, out := &in.PrivateNetworkConfiguration, &out.PrivateNetworkConfiguration - *out = make([]PrivateNetworkConfigurationInitParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PrivateNetworkID != nil { - in, out := &in.PrivateNetworkID, &out.PrivateNetworkID + if in.Scheduler != nil { + in, out := &in.Scheduler, &out.Scheduler *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region + if in.SyncPeriod != nil { + in, out := &in.SyncPeriod, &out.SyncPeriod *out = new(string) **out = **in } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName + if in.TCPFinTimeout != nil { + in, out := &in.TCPFinTimeout, &out.TCPFinTimeout *out = new(string) **out = **in } - if in.UpdatePolicy != nil { - in, out := &in.UpdatePolicy, &out.UpdatePolicy + if in.TCPTimeout != nil { + in, out := &in.TCPTimeout, &out.TCPTimeout *out = new(string) **out = **in } - if in.Version != nil { - in, out := &in.Version, &out.Version + if in.UDPTimeout != nil { + in, out := &in.UDPTimeout, &out.UDPTimeout *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeInitParameters. -func (in *ProjectKubeInitParameters) DeepCopy() *ProjectKubeInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpvsParameters. +func (in *IpvsParameters) DeepCopy() *IpvsParameters { if in == nil { return nil } - out := new(ProjectKubeInitParameters) + out := new(IpvsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeIprestrictions) DeepCopyInto(out *ProjectKubeIprestrictions) { +func (in *KubeconfigAttributesInitParameters) DeepCopyInto(out *KubeconfigAttributesInitParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictions. -func (in *ProjectKubeIprestrictions) DeepCopy() *ProjectKubeIprestrictions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigAttributesInitParameters. +func (in *KubeconfigAttributesInitParameters) DeepCopy() *KubeconfigAttributesInitParameters { if in == nil { return nil } - out := new(ProjectKubeIprestrictions) + out := new(KubeconfigAttributesInitParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeIprestrictions) 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 *ProjectKubeIprestrictionsInitParameters) DeepCopyInto(out *ProjectKubeIprestrictionsInitParameters) { +func (in *KubeconfigAttributesObservation) DeepCopyInto(out *KubeconfigAttributesObservation) { *out = *in - if in.Ips != nil { - in, out := &in.Ips, &out.Ips - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.ClientCertificate != nil { + in, out := &in.ClientCertificate, &out.ClientCertificate + *out = new(string) + **out = **in } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName + if in.ClientKey != nil { + in, out := &in.ClientKey, &out.ClientKey + *out = new(string) + **out = **in + } + if in.ClusterCACertificate != nil { + in, out := &in.ClusterCACertificate, &out.ClusterCACertificate + *out = new(string) + **out = **in + } + if in.Host != nil { + in, out := &in.Host, &out.Host *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictionsInitParameters. -func (in *ProjectKubeIprestrictionsInitParameters) DeepCopy() *ProjectKubeIprestrictionsInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigAttributesObservation. +func (in *KubeconfigAttributesObservation) DeepCopy() *KubeconfigAttributesObservation { if in == nil { return nil } - out := new(ProjectKubeIprestrictionsInitParameters) + out := new(KubeconfigAttributesObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeIprestrictionsList) DeepCopyInto(out *ProjectKubeIprestrictionsList) { +func (in *KubeconfigAttributesParameters) DeepCopyInto(out *KubeconfigAttributesParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectKubeIprestrictions, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictionsList. -func (in *ProjectKubeIprestrictionsList) DeepCopy() *ProjectKubeIprestrictionsList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigAttributesParameters. +func (in *KubeconfigAttributesParameters) DeepCopy() *KubeconfigAttributesParameters { if in == nil { return nil } - out := new(ProjectKubeIprestrictionsList) + out := new(KubeconfigAttributesParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeIprestrictionsList) 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 *ProjectKubeIprestrictionsObservation) DeepCopyInto(out *ProjectKubeIprestrictionsObservation) { +func (in *MetadataInitParameters) DeepCopyInto(out *MetadataInitParameters) { *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } } - if in.Ips != nil { - in, out := &in.Ips, &out.Ips + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -1258,33 +1406,55 @@ func (in *ProjectKubeIprestrictionsObservation) DeepCopyInto(out *ProjectKubeIpr } } } - if in.KubeID != nil { - in, out := &in.KubeID, &out.KubeID - *out = new(string) - **out = **in - } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName - *out = new(string) - **out = **in + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictionsObservation. -func (in *ProjectKubeIprestrictionsObservation) DeepCopy() *ProjectKubeIprestrictionsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataInitParameters. +func (in *MetadataInitParameters) DeepCopy() *MetadataInitParameters { if in == nil { return nil } - out := new(ProjectKubeIprestrictionsObservation) + out := new(MetadataInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeIprestrictionsParameters) DeepCopyInto(out *ProjectKubeIprestrictionsParameters) { +func (in *MetadataObservation) DeepCopyInto(out *MetadataObservation) { *out = *in - if in.Ips != nil { - in, out := &in.Ips, &out.Ips + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -1294,107 +1464,94 @@ func (in *ProjectKubeIprestrictionsParameters) DeepCopyInto(out *ProjectKubeIpre } } } - if in.KubeID != nil { - in, out := &in.KubeID, &out.KubeID - *out = new(string) - **out = **in - } - if in.KubeIDRef != nil { - in, out := &in.KubeIDRef, &out.KubeIDRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.KubeIDSelector != nil { - in, out := &in.KubeIDSelector, &out.KubeIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictionsParameters. -func (in *ProjectKubeIprestrictionsParameters) DeepCopy() *ProjectKubeIprestrictionsParameters { - if in == nil { - return nil - } - out := new(ProjectKubeIprestrictionsParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeIprestrictionsSpec) DeepCopyInto(out *ProjectKubeIprestrictionsSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictionsSpec. -func (in *ProjectKubeIprestrictionsSpec) DeepCopy() *ProjectKubeIprestrictionsSpec { - if in == nil { - return nil + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } } - out := new(ProjectKubeIprestrictionsSpec) - in.DeepCopyInto(out) - return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeIprestrictionsStatus) DeepCopyInto(out *ProjectKubeIprestrictionsStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeIprestrictionsStatus. -func (in *ProjectKubeIprestrictionsStatus) DeepCopy() *ProjectKubeIprestrictionsStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataObservation. +func (in *MetadataObservation) DeepCopy() *MetadataObservation { if in == nil { return nil } - out := new(ProjectKubeIprestrictionsStatus) + out := new(MetadataObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeList) DeepCopyInto(out *ProjectKubeList) { +func (in *MetadataParameters) DeepCopyInto(out *MetadataParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ProjectKube, len(*in)) + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.Finalizers != nil { + in, out := &in.Finalizers, &out.Finalizers + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Labels != nil { + in, out := &in.Labels, &out.Labels + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + inVal := (*in)[key] + in, out := &inVal, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeList. -func (in *ProjectKubeList) DeepCopy() *ProjectKubeList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataParameters. +func (in *MetadataParameters) DeepCopy() *MetadataParameters { if in == nil { return nil } - out := new(ProjectKubeList) + out := new(MetadataParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeList) 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 *ProjectKubeNodepool) DeepCopyInto(out *ProjectKubeNodepool) { +func (in *NodePool) DeepCopyInto(out *NodePool) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1402,18 +1559,18 @@ func (in *ProjectKubeNodepool) DeepCopyInto(out *ProjectKubeNodepool) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepool. -func (in *ProjectKubeNodepool) DeepCopy() *ProjectKubeNodepool { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePool. +func (in *NodePool) DeepCopy() *NodePool { if in == nil { return nil } - out := new(ProjectKubeNodepool) + out := new(NodePool) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeNodepool) DeepCopyObject() runtime.Object { +func (in *NodePool) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1421,7 +1578,7 @@ func (in *ProjectKubeNodepool) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeNodepoolInitParameters) DeepCopyInto(out *ProjectKubeNodepoolInitParameters) { +func (in *NodePoolInitParameters) DeepCopyInto(out *NodePoolInitParameters) { *out = *in if in.AntiAffinity != nil { in, out := &in.AntiAffinity, &out.AntiAffinity @@ -1477,42 +1634,42 @@ func (in *ProjectKubeNodepoolInitParameters) DeepCopyInto(out *ProjectKubeNodepo } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepoolInitParameters. -func (in *ProjectKubeNodepoolInitParameters) DeepCopy() *ProjectKubeNodepoolInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolInitParameters. +func (in *NodePoolInitParameters) DeepCopy() *NodePoolInitParameters { if in == nil { return nil } - out := new(ProjectKubeNodepoolInitParameters) + out := new(NodePoolInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeNodepoolList) DeepCopyInto(out *ProjectKubeNodepoolList) { +func (in *NodePoolList) DeepCopyInto(out *NodePoolList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectKubeNodepool, len(*in)) + *out = make([]NodePool, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepoolList. -func (in *ProjectKubeNodepoolList) DeepCopy() *ProjectKubeNodepoolList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolList. +func (in *NodePoolList) DeepCopy() *NodePoolList { if in == nil { return nil } - out := new(ProjectKubeNodepoolList) + out := new(NodePoolList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeNodepoolList) DeepCopyObject() runtime.Object { +func (in *NodePoolList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1520,7 +1677,7 @@ func (in *ProjectKubeNodepoolList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeNodepoolObservation) DeepCopyInto(out *ProjectKubeNodepoolObservation) { +func (in *NodePoolObservation) DeepCopyInto(out *NodePoolObservation) { *out = *in if in.AntiAffinity != nil { in, out := &in.AntiAffinity, &out.AntiAffinity @@ -1631,18 +1788,18 @@ func (in *ProjectKubeNodepoolObservation) DeepCopyInto(out *ProjectKubeNodepoolO } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepoolObservation. -func (in *ProjectKubeNodepoolObservation) DeepCopy() *ProjectKubeNodepoolObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolObservation. +func (in *NodePoolObservation) DeepCopy() *NodePoolObservation { if in == nil { return nil } - out := new(ProjectKubeNodepoolObservation) + out := new(NodePoolObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeNodepoolParameters) DeepCopyInto(out *ProjectKubeNodepoolParameters) { +func (in *NodePoolParameters) DeepCopyInto(out *NodePoolParameters) { *out = *in if in.AntiAffinity != nil { in, out := &in.AntiAffinity, &out.AntiAffinity @@ -1713,172 +1870,53 @@ func (in *ProjectKubeNodepoolParameters) DeepCopyInto(out *ProjectKubeNodepoolPa } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepoolParameters. -func (in *ProjectKubeNodepoolParameters) DeepCopy() *ProjectKubeNodepoolParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolParameters. +func (in *NodePoolParameters) DeepCopy() *NodePoolParameters { if in == nil { return nil } - out := new(ProjectKubeNodepoolParameters) + out := new(NodePoolParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeNodepoolSpec) DeepCopyInto(out *ProjectKubeNodepoolSpec) { +func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepoolSpec. -func (in *ProjectKubeNodepoolSpec) DeepCopy() *ProjectKubeNodepoolSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolSpec. +func (in *NodePoolSpec) DeepCopy() *NodePoolSpec { if in == nil { return nil } - out := new(ProjectKubeNodepoolSpec) + out := new(NodePoolSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeNodepoolStatus) DeepCopyInto(out *ProjectKubeNodepoolStatus) { +func (in *NodePoolStatus) DeepCopyInto(out *NodePoolStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeNodepoolStatus. -func (in *ProjectKubeNodepoolStatus) DeepCopy() *ProjectKubeNodepoolStatus { - if in == nil { - return nil - } - out := new(ProjectKubeNodepoolStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeObservation) DeepCopyInto(out *ProjectKubeObservation) { - *out = *in - if in.ControlPlaneIsUpToDate != nil { - in, out := &in.ControlPlaneIsUpToDate, &out.ControlPlaneIsUpToDate - *out = new(bool) - **out = **in - } - if in.Customization != nil { - in, out := &in.Customization, &out.Customization - *out = make([]CustomizationObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CustomizationApiserver != nil { - in, out := &in.CustomizationApiserver, &out.CustomizationApiserver - *out = make([]CustomizationApiserverObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CustomizationKubeProxy != nil { - in, out := &in.CustomizationKubeProxy, &out.CustomizationKubeProxy - *out = make([]CustomizationKubeProxyObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.IsUpToDate != nil { - in, out := &in.IsUpToDate, &out.IsUpToDate - *out = new(bool) - **out = **in - } - if in.KubeProxyMode != nil { - in, out := &in.KubeProxyMode, &out.KubeProxyMode - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.NextUpgradeVersions != nil { - in, out := &in.NextUpgradeVersions, &out.NextUpgradeVersions - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.NodesURL != nil { - in, out := &in.NodesURL, &out.NodesURL - *out = new(string) - **out = **in - } - if in.PrivateNetworkConfiguration != nil { - in, out := &in.PrivateNetworkConfiguration, &out.PrivateNetworkConfiguration - *out = make([]PrivateNetworkConfigurationObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PrivateNetworkID != nil { - in, out := &in.PrivateNetworkID, &out.PrivateNetworkID - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName - *out = new(string) - **out = **in - } - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(string) - **out = **in - } - if in.URL != nil { - in, out := &in.URL, &out.URL - *out = new(string) - **out = **in - } - if in.UpdatePolicy != nil { - in, out := &in.UpdatePolicy, &out.UpdatePolicy - *out = new(string) - **out = **in - } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeObservation. -func (in *ProjectKubeObservation) DeepCopy() *ProjectKubeObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolStatus. +func (in *NodePoolStatus) DeepCopy() *NodePoolStatus { if in == nil { return nil } - out := new(ProjectKubeObservation) + out := new(NodePoolStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidc) DeepCopyInto(out *ProjectKubeOidc) { +func (in *OIDCConfiguration) DeepCopyInto(out *OIDCConfiguration) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1886,18 +1924,18 @@ func (in *ProjectKubeOidc) DeepCopyInto(out *ProjectKubeOidc) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidc. -func (in *ProjectKubeOidc) DeepCopy() *ProjectKubeOidc { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfiguration. +func (in *OIDCConfiguration) DeepCopy() *OIDCConfiguration { if in == nil { return nil } - out := new(ProjectKubeOidc) + out := new(OIDCConfiguration) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeOidc) DeepCopyObject() runtime.Object { +func (in *OIDCConfiguration) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1905,7 +1943,7 @@ func (in *ProjectKubeOidc) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidcInitParameters) DeepCopyInto(out *ProjectKubeOidcInitParameters) { +func (in *OIDCConfigurationInitParameters) DeepCopyInto(out *OIDCConfigurationInitParameters) { *out = *in if in.ClientID != nil { in, out := &in.ClientID, &out.ClientID @@ -1977,42 +2015,42 @@ func (in *ProjectKubeOidcInitParameters) DeepCopyInto(out *ProjectKubeOidcInitPa } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidcInitParameters. -func (in *ProjectKubeOidcInitParameters) DeepCopy() *ProjectKubeOidcInitParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfigurationInitParameters. +func (in *OIDCConfigurationInitParameters) DeepCopy() *OIDCConfigurationInitParameters { if in == nil { return nil } - out := new(ProjectKubeOidcInitParameters) + out := new(OIDCConfigurationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidcList) DeepCopyInto(out *ProjectKubeOidcList) { +func (in *OIDCConfigurationList) DeepCopyInto(out *OIDCConfigurationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ProjectKubeOidc, len(*in)) + *out = make([]OIDCConfiguration, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidcList. -func (in *ProjectKubeOidcList) DeepCopy() *ProjectKubeOidcList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfigurationList. +func (in *OIDCConfigurationList) DeepCopy() *OIDCConfigurationList { if in == nil { return nil } - out := new(ProjectKubeOidcList) + out := new(OIDCConfigurationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ProjectKubeOidcList) DeepCopyObject() runtime.Object { +func (in *OIDCConfigurationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2020,7 +2058,7 @@ func (in *ProjectKubeOidcList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidcObservation) DeepCopyInto(out *ProjectKubeOidcObservation) { +func (in *OIDCConfigurationObservation) DeepCopyInto(out *OIDCConfigurationObservation) { *out = *in if in.ClientID != nil { in, out := &in.ClientID, &out.ClientID @@ -2102,18 +2140,18 @@ func (in *ProjectKubeOidcObservation) DeepCopyInto(out *ProjectKubeOidcObservati } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidcObservation. -func (in *ProjectKubeOidcObservation) DeepCopy() *ProjectKubeOidcObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfigurationObservation. +func (in *OIDCConfigurationObservation) DeepCopy() *OIDCConfigurationObservation { if in == nil { return nil } - out := new(ProjectKubeOidcObservation) + out := new(OIDCConfigurationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidcParameters) DeepCopyInto(out *ProjectKubeOidcParameters) { +func (in *OIDCConfigurationParameters) DeepCopyInto(out *OIDCConfigurationParameters) { *out = *in if in.ClientID != nil { in, out := &in.ClientID, &out.ClientID @@ -2200,160 +2238,122 @@ func (in *ProjectKubeOidcParameters) DeepCopyInto(out *ProjectKubeOidcParameters } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidcParameters. -func (in *ProjectKubeOidcParameters) DeepCopy() *ProjectKubeOidcParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfigurationParameters. +func (in *OIDCConfigurationParameters) DeepCopy() *OIDCConfigurationParameters { if in == nil { return nil } - out := new(ProjectKubeOidcParameters) + out := new(OIDCConfigurationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidcSpec) DeepCopyInto(out *ProjectKubeOidcSpec) { +func (in *OIDCConfigurationSpec) DeepCopyInto(out *OIDCConfigurationSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) in.InitProvider.DeepCopyInto(&out.InitProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidcSpec. -func (in *ProjectKubeOidcSpec) DeepCopy() *ProjectKubeOidcSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfigurationSpec. +func (in *OIDCConfigurationSpec) DeepCopy() *OIDCConfigurationSpec { if in == nil { return nil } - out := new(ProjectKubeOidcSpec) + out := new(OIDCConfigurationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeOidcStatus) DeepCopyInto(out *ProjectKubeOidcStatus) { +func (in *OIDCConfigurationStatus) DeepCopyInto(out *OIDCConfigurationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeOidcStatus. -func (in *ProjectKubeOidcStatus) DeepCopy() *ProjectKubeOidcStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCConfigurationStatus. +func (in *OIDCConfigurationStatus) DeepCopy() *OIDCConfigurationStatus { if in == nil { return nil } - out := new(ProjectKubeOidcStatus) + out := new(OIDCConfigurationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeParameters) DeepCopyInto(out *ProjectKubeParameters) { +func (in *PrivateNetworkConfigurationInitParameters) DeepCopyInto(out *PrivateNetworkConfigurationInitParameters) { *out = *in - if in.Customization != nil { - in, out := &in.Customization, &out.Customization - *out = make([]CustomizationParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CustomizationApiserver != nil { - in, out := &in.CustomizationApiserver, &out.CustomizationApiserver - *out = make([]CustomizationApiserverParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.CustomizationKubeProxy != nil { - in, out := &in.CustomizationKubeProxy, &out.CustomizationKubeProxy - *out = make([]CustomizationKubeProxyParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.KubeProxyMode != nil { - in, out := &in.KubeProxyMode, &out.KubeProxyMode - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.PrivateNetworkConfiguration != nil { - in, out := &in.PrivateNetworkConfiguration, &out.PrivateNetworkConfiguration - *out = make([]PrivateNetworkConfigurationParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.PrivateNetworkID != nil { - in, out := &in.PrivateNetworkID, &out.PrivateNetworkID - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName - *out = new(string) - **out = **in - } - if in.UpdatePolicy != nil { - in, out := &in.UpdatePolicy, &out.UpdatePolicy + if in.DefaultVrackGateway != nil { + in, out := &in.DefaultVrackGateway, &out.DefaultVrackGateway *out = new(string) **out = **in } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) + if in.PrivateNetworkRoutingAsDefault != nil { + in, out := &in.PrivateNetworkRoutingAsDefault, &out.PrivateNetworkRoutingAsDefault + *out = new(bool) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeParameters. -func (in *ProjectKubeParameters) DeepCopy() *ProjectKubeParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkConfigurationInitParameters. +func (in *PrivateNetworkConfigurationInitParameters) DeepCopy() *PrivateNetworkConfigurationInitParameters { if in == nil { return nil } - out := new(ProjectKubeParameters) + out := new(PrivateNetworkConfigurationInitParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeSpec) DeepCopyInto(out *ProjectKubeSpec) { +func (in *PrivateNetworkConfigurationObservation) DeepCopyInto(out *PrivateNetworkConfigurationObservation) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) - in.InitProvider.DeepCopyInto(&out.InitProvider) + if in.DefaultVrackGateway != nil { + in, out := &in.DefaultVrackGateway, &out.DefaultVrackGateway + *out = new(string) + **out = **in + } + if in.PrivateNetworkRoutingAsDefault != nil { + in, out := &in.PrivateNetworkRoutingAsDefault, &out.PrivateNetworkRoutingAsDefault + *out = new(bool) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeSpec. -func (in *ProjectKubeSpec) DeepCopy() *ProjectKubeSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkConfigurationObservation. +func (in *PrivateNetworkConfigurationObservation) DeepCopy() *PrivateNetworkConfigurationObservation { if in == nil { return nil } - out := new(ProjectKubeSpec) + out := new(PrivateNetworkConfigurationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ProjectKubeStatus) DeepCopyInto(out *ProjectKubeStatus) { +func (in *PrivateNetworkConfigurationParameters) DeepCopyInto(out *PrivateNetworkConfigurationParameters) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + if in.DefaultVrackGateway != nil { + in, out := &in.DefaultVrackGateway, &out.DefaultVrackGateway + *out = new(string) + **out = **in + } + if in.PrivateNetworkRoutingAsDefault != nil { + in, out := &in.PrivateNetworkRoutingAsDefault, &out.PrivateNetworkRoutingAsDefault + *out = new(bool) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectKubeStatus. -func (in *ProjectKubeStatus) DeepCopy() *ProjectKubeStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkConfigurationParameters. +func (in *PrivateNetworkConfigurationParameters) DeepCopy() *PrivateNetworkConfigurationParameters { if in == nil { return nil } - out := new(ProjectKubeStatus) + out := new(PrivateNetworkConfigurationParameters) in.DeepCopyInto(out) return out } diff --git a/apis/kube/v1alpha1/zz_generated.managed.go b/apis/kube/v1alpha1/zz_generated.managed.go index 1a95010..f6789fd 100644 --- a/apis/kube/v1alpha1/zz_generated.managed.go +++ b/apis/kube/v1alpha1/zz_generated.managed.go @@ -7,242 +7,242 @@ package v1alpha1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -// GetCondition of this ProjectKube. -func (mg *ProjectKube) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this Cluster. +func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ProjectKube. -func (mg *ProjectKube) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this Cluster. +func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this ProjectKube. -func (mg *ProjectKube) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this Cluster. +func (mg *Cluster) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this ProjectKube. -func (mg *ProjectKube) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this Cluster. +func (mg *Cluster) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this ProjectKube. -func (mg *ProjectKube) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this ProjectKube. -func (mg *ProjectKube) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this Cluster. +func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ProjectKube. -func (mg *ProjectKube) SetConditions(c ...xpv1.Condition) { +// SetConditions of this Cluster. +func (mg *Cluster) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ProjectKube. -func (mg *ProjectKube) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this Cluster. +func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this ProjectKube. -func (mg *ProjectKube) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this Cluster. +func (mg *Cluster) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this ProjectKube. -func (mg *ProjectKube) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this Cluster. +func (mg *Cluster) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this ProjectKube. -func (mg *ProjectKube) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this ProjectKube. -func (mg *ProjectKube) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this Cluster. +func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this IpRestriction. +func (mg *IpRestriction) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this IpRestriction. +func (mg *IpRestriction) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this IpRestriction. +func (mg *IpRestriction) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this IpRestriction. +func (mg *IpRestriction) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this IpRestriction. +func (mg *IpRestriction) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this IpRestriction. +func (mg *IpRestriction) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) SetConditions(c ...xpv1.Condition) { +// SetConditions of this IpRestriction. +func (mg *IpRestriction) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this IpRestriction. +func (mg *IpRestriction) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this IpRestriction. +func (mg *IpRestriction) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this IpRestriction. +func (mg *IpRestriction) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this IpRestriction. +func (mg *IpRestriction) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this IpRestriction. +func (mg *IpRestriction) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this NodePool. +func (mg *NodePool) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this NodePool. +func (mg *NodePool) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this NodePool. +func (mg *NodePool) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this NodePool. +func (mg *NodePool) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this NodePool. +func (mg *NodePool) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this NodePool. +func (mg *NodePool) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) SetConditions(c ...xpv1.Condition) { +// SetConditions of this NodePool. +func (mg *NodePool) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this NodePool. +func (mg *NodePool) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this NodePool. +func (mg *NodePool) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this NodePool. +func (mg *NodePool) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this NodePool. +func (mg *NodePool) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this NodePool. +func (mg *NodePool) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this OIDCConfiguration. +func (mg *OIDCConfiguration) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this OIDCConfiguration. +func (mg *OIDCConfiguration) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetManagementPolicies of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) GetManagementPolicies() xpv1.ManagementPolicies { +// GetManagementPolicies of this OIDCConfiguration. +func (mg *OIDCConfiguration) GetManagementPolicies() xpv1.ManagementPolicies { return mg.Spec.ManagementPolicies } -// GetProviderConfigReference of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this OIDCConfiguration. +func (mg *OIDCConfiguration) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } -// GetPublishConnectionDetailsTo of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { +// GetPublishConnectionDetailsTo of this OIDCConfiguration. +func (mg *OIDCConfiguration) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { return mg.Spec.PublishConnectionDetailsTo } -// GetWriteConnectionSecretToReference of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this OIDCConfiguration. +func (mg *OIDCConfiguration) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) SetConditions(c ...xpv1.Condition) { +// SetConditions of this OIDCConfiguration. +func (mg *OIDCConfiguration) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this OIDCConfiguration. +func (mg *OIDCConfiguration) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetManagementPolicies of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) SetManagementPolicies(r xpv1.ManagementPolicies) { +// SetManagementPolicies of this OIDCConfiguration. +func (mg *OIDCConfiguration) SetManagementPolicies(r xpv1.ManagementPolicies) { mg.Spec.ManagementPolicies = r } -// SetProviderConfigReference of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this OIDCConfiguration. +func (mg *OIDCConfiguration) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } -// SetPublishConnectionDetailsTo of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { +// SetPublishConnectionDetailsTo of this OIDCConfiguration. +func (mg *OIDCConfiguration) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { mg.Spec.PublishConnectionDetailsTo = r } -// SetWriteConnectionSecretToReference of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this OIDCConfiguration. +func (mg *OIDCConfiguration) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } diff --git a/apis/kube/v1alpha1/zz_generated.managedlist.go b/apis/kube/v1alpha1/zz_generated.managedlist.go index a624898..63b0acb 100644 --- a/apis/kube/v1alpha1/zz_generated.managedlist.go +++ b/apis/kube/v1alpha1/zz_generated.managedlist.go @@ -7,8 +7,8 @@ package v1alpha1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" -// GetItems of this ProjectKubeIprestrictionsList. -func (l *ProjectKubeIprestrictionsList) GetItems() []resource.Managed { +// GetItems of this ClusterList. +func (l *ClusterList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -16,8 +16,8 @@ func (l *ProjectKubeIprestrictionsList) GetItems() []resource.Managed { return items } -// GetItems of this ProjectKubeList. -func (l *ProjectKubeList) GetItems() []resource.Managed { +// GetItems of this IpRestrictionList. +func (l *IpRestrictionList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -25,8 +25,8 @@ func (l *ProjectKubeList) GetItems() []resource.Managed { return items } -// GetItems of this ProjectKubeNodepoolList. -func (l *ProjectKubeNodepoolList) GetItems() []resource.Managed { +// GetItems of this NodePoolList. +func (l *NodePoolList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -34,8 +34,8 @@ func (l *ProjectKubeNodepoolList) GetItems() []resource.Managed { return items } -// GetItems of this ProjectKubeOidcList. -func (l *ProjectKubeOidcList) GetItems() []resource.Managed { +// GetItems of this OIDCConfigurationList. +func (l *OIDCConfigurationList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] diff --git a/apis/kube/v1alpha1/zz_generated.resolvers.go b/apis/kube/v1alpha1/zz_generated.resolvers.go index ff9f1c8..81380e3 100644 --- a/apis/kube/v1alpha1/zz_generated.resolvers.go +++ b/apis/kube/v1alpha1/zz_generated.resolvers.go @@ -12,8 +12,8 @@ import ( client "sigs.k8s.io/controller-runtime/pkg/client" ) -// ResolveReferences of this ProjectKubeIprestrictions. -func (mg *ProjectKubeIprestrictions) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this IpRestriction. +func (mg *IpRestriction) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -25,8 +25,8 @@ func (mg *ProjectKubeIprestrictions) ResolveReferences(ctx context.Context, c cl Reference: mg.Spec.ForProvider.KubeIDRef, Selector: mg.Spec.ForProvider.KubeIDSelector, To: reference.To{ - List: &ProjectKubeList{}, - Managed: &ProjectKube{}, + List: &ClusterList{}, + Managed: &Cluster{}, }, }) if err != nil { @@ -38,8 +38,8 @@ func (mg *ProjectKubeIprestrictions) ResolveReferences(ctx context.Context, c cl return nil } -// ResolveReferences of this ProjectKubeNodepool. -func (mg *ProjectKubeNodepool) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this NodePool. +func (mg *NodePool) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -51,8 +51,8 @@ func (mg *ProjectKubeNodepool) ResolveReferences(ctx context.Context, c client.R Reference: mg.Spec.ForProvider.KubeIDRef, Selector: mg.Spec.ForProvider.KubeIDSelector, To: reference.To{ - List: &ProjectKubeList{}, - Managed: &ProjectKube{}, + List: &ClusterList{}, + Managed: &Cluster{}, }, }) if err != nil { @@ -64,8 +64,8 @@ func (mg *ProjectKubeNodepool) ResolveReferences(ctx context.Context, c client.R return nil } -// ResolveReferences of this ProjectKubeOidc. -func (mg *ProjectKubeOidc) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this OIDCConfiguration. +func (mg *OIDCConfiguration) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -77,8 +77,8 @@ func (mg *ProjectKubeOidc) ResolveReferences(ctx context.Context, c client.Reade Reference: mg.Spec.ForProvider.KubeIDRef, Selector: mg.Spec.ForProvider.KubeIDSelector, To: reference.To{ - List: &ProjectKubeList{}, - Managed: &ProjectKube{}, + List: &ClusterList{}, + Managed: &Cluster{}, }, }) if err != nil { diff --git a/apis/kube/v1alpha1/zz_generated_terraformed.go b/apis/kube/v1alpha1/zz_generated_terraformed.go index 9374202..d09ed2e 100755 --- a/apis/kube/v1alpha1/zz_generated_terraformed.go +++ b/apis/kube/v1alpha1/zz_generated_terraformed.go @@ -17,18 +17,18 @@ import ( "github.com/crossplane/upjet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ProjectKube -func (mg *ProjectKube) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { return "ovh_cloud_project_kube" } -// GetConnectionDetailsMapping for this ProjectKube -func (tr *ProjectKube) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { return map[string]string{"kubeconfig": "status.atProvider.kubeconfig", "kubeconfig_attributes[*]": "status.atProvider.kubeconfigAttributes[*]"} } -// GetObservation of this ProjectKube -func (tr *ProjectKube) GetObservation() (map[string]any, error) { +// GetObservation of this Cluster +func (tr *Cluster) GetObservation() (map[string]any, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -37,8 +37,8 @@ func (tr *ProjectKube) GetObservation() (map[string]any, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ProjectKube -func (tr *ProjectKube) SetObservation(obs map[string]any) error { +// SetObservation for this Cluster +func (tr *Cluster) SetObservation(obs map[string]any) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -46,16 +46,16 @@ func (tr *ProjectKube) SetObservation(obs map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ProjectKube -func (tr *ProjectKube) GetID() string { +// GetID returns ID of underlying Terraform resource of this Cluster +func (tr *Cluster) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ProjectKube -func (tr *ProjectKube) GetParameters() (map[string]any, error) { +// GetParameters of this Cluster +func (tr *Cluster) GetParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,8 +64,8 @@ func (tr *ProjectKube) GetParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ProjectKube -func (tr *ProjectKube) SetParameters(params map[string]any) error { +// SetParameters for this Cluster +func (tr *Cluster) SetParameters(params map[string]any) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,8 +73,8 @@ func (tr *ProjectKube) SetParameters(params map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// GetInitParameters of this ProjectKube -func (tr *ProjectKube) GetInitParameters() (map[string]any, error) { +// GetInitParameters of this Cluster +func (tr *Cluster) GetInitParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.InitProvider) if err != nil { return nil, err @@ -83,10 +83,10 @@ func (tr *ProjectKube) GetInitParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// LateInitialize this ProjectKube using its observed tfState. +// LateInitialize this Cluster using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ProjectKube) LateInitialize(attrs []byte) (bool, error) { - params := &ProjectKubeParameters{} +func (tr *Cluster) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -97,22 +97,22 @@ func (tr *ProjectKube) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ProjectKube) GetTerraformSchemaVersion() int { +func (tr *Cluster) GetTerraformSchemaVersion() int { return 0 } -// GetTerraformResourceType returns Terraform resource type for this ProjectKubeIprestrictions -func (mg *ProjectKubeIprestrictions) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this IpRestriction +func (mg *IpRestriction) GetTerraformResourceType() string { return "ovh_cloud_project_kube_iprestrictions" } -// GetConnectionDetailsMapping for this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this IpRestriction +func (tr *IpRestriction) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) GetObservation() (map[string]any, error) { +// GetObservation of this IpRestriction +func (tr *IpRestriction) GetObservation() (map[string]any, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -121,8 +121,8 @@ func (tr *ProjectKubeIprestrictions) GetObservation() (map[string]any, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) SetObservation(obs map[string]any) error { +// SetObservation for this IpRestriction +func (tr *IpRestriction) SetObservation(obs map[string]any) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -130,16 +130,16 @@ func (tr *ProjectKubeIprestrictions) SetObservation(obs map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) GetID() string { +// GetID returns ID of underlying Terraform resource of this IpRestriction +func (tr *IpRestriction) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) GetParameters() (map[string]any, error) { +// GetParameters of this IpRestriction +func (tr *IpRestriction) GetParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -148,8 +148,8 @@ func (tr *ProjectKubeIprestrictions) GetParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) SetParameters(params map[string]any) error { +// SetParameters for this IpRestriction +func (tr *IpRestriction) SetParameters(params map[string]any) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -157,8 +157,8 @@ func (tr *ProjectKubeIprestrictions) SetParameters(params map[string]any) error return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// GetInitParameters of this ProjectKubeIprestrictions -func (tr *ProjectKubeIprestrictions) GetInitParameters() (map[string]any, error) { +// GetInitParameters of this IpRestriction +func (tr *IpRestriction) GetInitParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.InitProvider) if err != nil { return nil, err @@ -167,10 +167,10 @@ func (tr *ProjectKubeIprestrictions) GetInitParameters() (map[string]any, error) return base, json.TFParser.Unmarshal(p, &base) } -// LateInitialize this ProjectKubeIprestrictions using its observed tfState. +// LateInitialize this IpRestriction using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ProjectKubeIprestrictions) LateInitialize(attrs []byte) (bool, error) { - params := &ProjectKubeIprestrictionsParameters{} +func (tr *IpRestriction) LateInitialize(attrs []byte) (bool, error) { + params := &IpRestrictionParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -181,22 +181,22 @@ func (tr *ProjectKubeIprestrictions) LateInitialize(attrs []byte) (bool, error) } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ProjectKubeIprestrictions) GetTerraformSchemaVersion() int { +func (tr *IpRestriction) GetTerraformSchemaVersion() int { return 0 } -// GetTerraformResourceType returns Terraform resource type for this ProjectKubeNodepool -func (mg *ProjectKubeNodepool) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this NodePool +func (mg *NodePool) GetTerraformResourceType() string { return "ovh_cloud_project_kube_nodepool" } -// GetConnectionDetailsMapping for this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this NodePool +func (tr *NodePool) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) GetObservation() (map[string]any, error) { +// GetObservation of this NodePool +func (tr *NodePool) GetObservation() (map[string]any, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -205,8 +205,8 @@ func (tr *ProjectKubeNodepool) GetObservation() (map[string]any, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) SetObservation(obs map[string]any) error { +// SetObservation for this NodePool +func (tr *NodePool) SetObservation(obs map[string]any) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -214,16 +214,16 @@ func (tr *ProjectKubeNodepool) SetObservation(obs map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) GetID() string { +// GetID returns ID of underlying Terraform resource of this NodePool +func (tr *NodePool) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) GetParameters() (map[string]any, error) { +// GetParameters of this NodePool +func (tr *NodePool) GetParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -232,8 +232,8 @@ func (tr *ProjectKubeNodepool) GetParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) SetParameters(params map[string]any) error { +// SetParameters for this NodePool +func (tr *NodePool) SetParameters(params map[string]any) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -241,8 +241,8 @@ func (tr *ProjectKubeNodepool) SetParameters(params map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// GetInitParameters of this ProjectKubeNodepool -func (tr *ProjectKubeNodepool) GetInitParameters() (map[string]any, error) { +// GetInitParameters of this NodePool +func (tr *NodePool) GetInitParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.InitProvider) if err != nil { return nil, err @@ -251,10 +251,10 @@ func (tr *ProjectKubeNodepool) GetInitParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// LateInitialize this ProjectKubeNodepool using its observed tfState. +// LateInitialize this NodePool using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ProjectKubeNodepool) LateInitialize(attrs []byte) (bool, error) { - params := &ProjectKubeNodepoolParameters{} +func (tr *NodePool) LateInitialize(attrs []byte) (bool, error) { + params := &NodePoolParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -265,22 +265,22 @@ func (tr *ProjectKubeNodepool) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ProjectKubeNodepool) GetTerraformSchemaVersion() int { +func (tr *NodePool) GetTerraformSchemaVersion() int { return 0 } -// GetTerraformResourceType returns Terraform resource type for this ProjectKubeOidc -func (mg *ProjectKubeOidc) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this OIDCConfiguration +func (mg *OIDCConfiguration) GetTerraformResourceType() string { return "ovh_cloud_project_kube_oidc" } -// GetConnectionDetailsMapping for this ProjectKubeOidc -func (tr *ProjectKubeOidc) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this OIDCConfiguration +func (tr *OIDCConfiguration) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ProjectKubeOidc -func (tr *ProjectKubeOidc) GetObservation() (map[string]any, error) { +// GetObservation of this OIDCConfiguration +func (tr *OIDCConfiguration) GetObservation() (map[string]any, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -289,8 +289,8 @@ func (tr *ProjectKubeOidc) GetObservation() (map[string]any, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ProjectKubeOidc -func (tr *ProjectKubeOidc) SetObservation(obs map[string]any) error { +// SetObservation for this OIDCConfiguration +func (tr *OIDCConfiguration) SetObservation(obs map[string]any) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -298,16 +298,16 @@ func (tr *ProjectKubeOidc) SetObservation(obs map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ProjectKubeOidc -func (tr *ProjectKubeOidc) GetID() string { +// GetID returns ID of underlying Terraform resource of this OIDCConfiguration +func (tr *OIDCConfiguration) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ProjectKubeOidc -func (tr *ProjectKubeOidc) GetParameters() (map[string]any, error) { +// GetParameters of this OIDCConfiguration +func (tr *OIDCConfiguration) GetParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -316,8 +316,8 @@ func (tr *ProjectKubeOidc) GetParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ProjectKubeOidc -func (tr *ProjectKubeOidc) SetParameters(params map[string]any) error { +// SetParameters for this OIDCConfiguration +func (tr *OIDCConfiguration) SetParameters(params map[string]any) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -325,8 +325,8 @@ func (tr *ProjectKubeOidc) SetParameters(params map[string]any) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// GetInitParameters of this ProjectKubeOidc -func (tr *ProjectKubeOidc) GetInitParameters() (map[string]any, error) { +// GetInitParameters of this OIDCConfiguration +func (tr *OIDCConfiguration) GetInitParameters() (map[string]any, error) { p, err := json.TFParser.Marshal(tr.Spec.InitProvider) if err != nil { return nil, err @@ -335,10 +335,10 @@ func (tr *ProjectKubeOidc) GetInitParameters() (map[string]any, error) { return base, json.TFParser.Unmarshal(p, &base) } -// LateInitialize this ProjectKubeOidc using its observed tfState. +// LateInitialize this OIDCConfiguration using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ProjectKubeOidc) LateInitialize(attrs []byte) (bool, error) { - params := &ProjectKubeOidcParameters{} +func (tr *OIDCConfiguration) LateInitialize(attrs []byte) (bool, error) { + params := &OIDCConfigurationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -349,6 +349,6 @@ func (tr *ProjectKubeOidc) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ProjectKubeOidc) GetTerraformSchemaVersion() int { +func (tr *OIDCConfiguration) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/kube/v1alpha1/zz_projectkubeiprestrictions_types.go b/apis/kube/v1alpha1/zz_iprestriction_types.go similarity index 68% rename from apis/kube/v1alpha1/zz_projectkubeiprestrictions_types.go rename to apis/kube/v1alpha1/zz_iprestriction_types.go index 36e4df3..8504e32 100755 --- a/apis/kube/v1alpha1/zz_projectkubeiprestrictions_types.go +++ b/apis/kube/v1alpha1/zz_iprestriction_types.go @@ -17,7 +17,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ProjectKubeIprestrictionsInitParameters struct { +type IpRestrictionInitParameters struct { // List of IP restrictions for the cluster Ips []*string `json:"ips,omitempty" tf:"ips,omitempty"` @@ -26,7 +26,7 @@ type ProjectKubeIprestrictionsInitParameters struct { ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` } -type ProjectKubeIprestrictionsObservation struct { +type IpRestrictionObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` // List of IP restrictions for the cluster @@ -39,22 +39,22 @@ type ProjectKubeIprestrictionsObservation struct { ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` } -type ProjectKubeIprestrictionsParameters struct { +type IpRestrictionParameters struct { // List of IP restrictions for the cluster // +kubebuilder:validation:Optional Ips []*string `json:"ips,omitempty" tf:"ips,omitempty"` // Kube ID - // +crossplane:generate:reference:type=github.com/edixos/provider-ovh/apis/kube/v1alpha1.ProjectKube + // +crossplane:generate:reference:type=github.com/edixos/provider-ovh/apis/kube/v1alpha1.Cluster // +kubebuilder:validation:Optional KubeID *string `json:"kubeId,omitempty" tf:"kube_id,omitempty"` - // Reference to a ProjectKube in kube to populate kubeId. + // Reference to a Cluster in kube to populate kubeId. // +kubebuilder:validation:Optional KubeIDRef *v1.Reference `json:"kubeIdRef,omitempty" tf:"-"` - // Selector for a ProjectKube in kube to populate kubeId. + // Selector for a Cluster in kube to populate kubeId. // +kubebuilder:validation:Optional KubeIDSelector *v1.Selector `json:"kubeIdSelector,omitempty" tf:"-"` @@ -63,10 +63,10 @@ type ProjectKubeIprestrictionsParameters struct { ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` } -// ProjectKubeIprestrictionsSpec defines the desired state of ProjectKubeIprestrictions -type ProjectKubeIprestrictionsSpec struct { +// IpRestrictionSpec defines the desired state of IpRestriction +type IpRestrictionSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ProjectKubeIprestrictionsParameters `json:"forProvider"` + ForProvider IpRestrictionParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception @@ -77,50 +77,50 @@ type ProjectKubeIprestrictionsSpec struct { // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. - InitProvider ProjectKubeIprestrictionsInitParameters `json:"initProvider,omitempty"` + InitProvider IpRestrictionInitParameters `json:"initProvider,omitempty"` } -// ProjectKubeIprestrictionsStatus defines the observed state of ProjectKubeIprestrictions. -type ProjectKubeIprestrictionsStatus struct { +// IpRestrictionStatus defines the observed state of IpRestriction. +type IpRestrictionStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ProjectKubeIprestrictionsObservation `json:"atProvider,omitempty"` + AtProvider IpRestrictionObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeIprestrictions is the Schema for the ProjectKubeIprestrictionss API. +// IpRestriction is the Schema for the IpRestrictions API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ovh} -type ProjectKubeIprestrictions struct { +type IpRestriction struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ips) || (has(self.initProvider) && has(self.initProvider.ips))",message="spec.forProvider.ips is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - Spec ProjectKubeIprestrictionsSpec `json:"spec"` - Status ProjectKubeIprestrictionsStatus `json:"status,omitempty"` + Spec IpRestrictionSpec `json:"spec"` + Status IpRestrictionStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeIprestrictionsList contains a list of ProjectKubeIprestrictionss -type ProjectKubeIprestrictionsList struct { +// IpRestrictionList contains a list of IpRestrictions +type IpRestrictionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectKubeIprestrictions `json:"items"` + Items []IpRestriction `json:"items"` } // Repository type metadata. var ( - ProjectKubeIprestrictions_Kind = "ProjectKubeIprestrictions" - ProjectKubeIprestrictions_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectKubeIprestrictions_Kind}.String() - ProjectKubeIprestrictions_KindAPIVersion = ProjectKubeIprestrictions_Kind + "." + CRDGroupVersion.String() - ProjectKubeIprestrictions_GroupVersionKind = CRDGroupVersion.WithKind(ProjectKubeIprestrictions_Kind) + IpRestriction_Kind = "IpRestriction" + IpRestriction_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: IpRestriction_Kind}.String() + IpRestriction_KindAPIVersion = IpRestriction_Kind + "." + CRDGroupVersion.String() + IpRestriction_GroupVersionKind = CRDGroupVersion.WithKind(IpRestriction_Kind) ) func init() { - SchemeBuilder.Register(&ProjectKubeIprestrictions{}, &ProjectKubeIprestrictionsList{}) + SchemeBuilder.Register(&IpRestriction{}, &IpRestrictionList{}) } diff --git a/apis/kube/v1alpha1/zz_projectkubenodepool_types.go b/apis/kube/v1alpha1/zz_nodepool_types.go similarity index 86% rename from apis/kube/v1alpha1/zz_projectkubenodepool_types.go rename to apis/kube/v1alpha1/zz_nodepool_types.go index 44b90c3..48c31ec 100755 --- a/apis/kube/v1alpha1/zz_projectkubenodepool_types.go +++ b/apis/kube/v1alpha1/zz_nodepool_types.go @@ -56,7 +56,7 @@ type MetadataParameters struct { Labels map[string]*string `json:"labels" tf:"labels,omitempty"` } -type ProjectKubeNodepoolInitParameters struct { +type NodePoolInitParameters struct { // Enable anti affinity groups for nodes in the pool AntiAffinity *bool `json:"antiAffinity,omitempty" tf:"anti_affinity,omitempty"` @@ -89,7 +89,7 @@ type ProjectKubeNodepoolInitParameters struct { Template []TemplateInitParameters `json:"template,omitempty" tf:"template,omitempty"` } -type ProjectKubeNodepoolObservation struct { +type NodePoolObservation struct { // Enable anti affinity groups for nodes in the pool AntiAffinity *bool `json:"antiAffinity,omitempty" tf:"anti_affinity,omitempty"` @@ -154,7 +154,7 @@ type ProjectKubeNodepoolObservation struct { UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"` } -type ProjectKubeNodepoolParameters struct { +type NodePoolParameters struct { // Enable anti affinity groups for nodes in the pool // +kubebuilder:validation:Optional @@ -173,15 +173,15 @@ type ProjectKubeNodepoolParameters struct { FlavorName *string `json:"flavorName,omitempty" tf:"flavor_name,omitempty"` // Kube ID - // +crossplane:generate:reference:type=github.com/edixos/provider-ovh/apis/kube/v1alpha1.ProjectKube + // +crossplane:generate:reference:type=github.com/edixos/provider-ovh/apis/kube/v1alpha1.Cluster // +kubebuilder:validation:Optional KubeID *string `json:"kubeId,omitempty" tf:"kube_id,omitempty"` - // Reference to a ProjectKube in kube to populate kubeId. + // Reference to a Cluster in kube to populate kubeId. // +kubebuilder:validation:Optional KubeIDRef *v1.Reference `json:"kubeIdRef,omitempty" tf:"-"` - // Selector for a ProjectKube in kube to populate kubeId. + // Selector for a Cluster in kube to populate kubeId. // +kubebuilder:validation:Optional KubeIDSelector *v1.Selector `json:"kubeIdSelector,omitempty" tf:"-"` @@ -268,10 +268,10 @@ type TemplateParameters struct { Spec []SpecParameters `json:"spec" tf:"spec,omitempty"` } -// ProjectKubeNodepoolSpec defines the desired state of ProjectKubeNodepool -type ProjectKubeNodepoolSpec struct { +// NodePoolSpec defines the desired state of NodePool +type NodePoolSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ProjectKubeNodepoolParameters `json:"forProvider"` + ForProvider NodePoolParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception @@ -282,50 +282,50 @@ type ProjectKubeNodepoolSpec struct { // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. - InitProvider ProjectKubeNodepoolInitParameters `json:"initProvider,omitempty"` + InitProvider NodePoolInitParameters `json:"initProvider,omitempty"` } -// ProjectKubeNodepoolStatus defines the observed state of ProjectKubeNodepool. -type ProjectKubeNodepoolStatus struct { +// NodePoolStatus defines the observed state of NodePool. +type NodePoolStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ProjectKubeNodepoolObservation `json:"atProvider,omitempty"` + AtProvider NodePoolObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeNodepool is the Schema for the ProjectKubeNodepools API. +// NodePool is the Schema for the NodePools API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ovh} -type ProjectKubeNodepool struct { +type NodePool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.flavorName) || (has(self.initProvider) && has(self.initProvider.flavorName))",message="spec.forProvider.flavorName is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - Spec ProjectKubeNodepoolSpec `json:"spec"` - Status ProjectKubeNodepoolStatus `json:"status,omitempty"` + Spec NodePoolSpec `json:"spec"` + Status NodePoolStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeNodepoolList contains a list of ProjectKubeNodepools -type ProjectKubeNodepoolList struct { +// NodePoolList contains a list of NodePools +type NodePoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectKubeNodepool `json:"items"` + Items []NodePool `json:"items"` } // Repository type metadata. var ( - ProjectKubeNodepool_Kind = "ProjectKubeNodepool" - ProjectKubeNodepool_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectKubeNodepool_Kind}.String() - ProjectKubeNodepool_KindAPIVersion = ProjectKubeNodepool_Kind + "." + CRDGroupVersion.String() - ProjectKubeNodepool_GroupVersionKind = CRDGroupVersion.WithKind(ProjectKubeNodepool_Kind) + NodePool_Kind = "NodePool" + NodePool_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: NodePool_Kind}.String() + NodePool_KindAPIVersion = NodePool_Kind + "." + CRDGroupVersion.String() + NodePool_GroupVersionKind = CRDGroupVersion.WithKind(NodePool_Kind) ) func init() { - SchemeBuilder.Register(&ProjectKubeNodepool{}, &ProjectKubeNodepoolList{}) + SchemeBuilder.Register(&NodePool{}, &NodePoolList{}) } diff --git a/apis/kube/v1alpha1/zz_projectkubeoidc_types.go b/apis/kube/v1alpha1/zz_oidcconfiguration_types.go similarity index 81% rename from apis/kube/v1alpha1/zz_projectkubeoidc_types.go rename to apis/kube/v1alpha1/zz_oidcconfiguration_types.go index 5f76d16..72b3280 100755 --- a/apis/kube/v1alpha1/zz_projectkubeoidc_types.go +++ b/apis/kube/v1alpha1/zz_oidcconfiguration_types.go @@ -17,7 +17,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ProjectKubeOidcInitParameters struct { +type OIDCConfigurationInitParameters struct { ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` IssuerURL *string `json:"issuerUrl,omitempty" tf:"issuer_url,omitempty"` @@ -39,7 +39,7 @@ type ProjectKubeOidcInitParameters struct { ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` } -type ProjectKubeOidcObservation struct { +type OIDCConfigurationObservation struct { ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -65,7 +65,7 @@ type ProjectKubeOidcObservation struct { ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` } -type ProjectKubeOidcParameters struct { +type OIDCConfigurationParameters struct { // +kubebuilder:validation:Optional ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"` @@ -73,15 +73,15 @@ type ProjectKubeOidcParameters struct { // +kubebuilder:validation:Optional IssuerURL *string `json:"issuerUrl,omitempty" tf:"issuer_url,omitempty"` - // +crossplane:generate:reference:type=github.com/edixos/provider-ovh/apis/kube/v1alpha1.ProjectKube + // +crossplane:generate:reference:type=github.com/edixos/provider-ovh/apis/kube/v1alpha1.Cluster // +kubebuilder:validation:Optional KubeID *string `json:"kubeId,omitempty" tf:"kube_id,omitempty"` - // Reference to a ProjectKube in kube to populate kubeId. + // Reference to a Cluster in kube to populate kubeId. // +kubebuilder:validation:Optional KubeIDRef *v1.Reference `json:"kubeIdRef,omitempty" tf:"-"` - // Selector for a ProjectKube in kube to populate kubeId. + // Selector for a Cluster in kube to populate kubeId. // +kubebuilder:validation:Optional KubeIDSelector *v1.Selector `json:"kubeIdSelector,omitempty" tf:"-"` @@ -110,10 +110,10 @@ type ProjectKubeOidcParameters struct { ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` } -// ProjectKubeOidcSpec defines the desired state of ProjectKubeOidc -type ProjectKubeOidcSpec struct { +// OIDCConfigurationSpec defines the desired state of OIDCConfiguration +type OIDCConfigurationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ProjectKubeOidcParameters `json:"forProvider"` + ForProvider OIDCConfigurationParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception @@ -124,51 +124,51 @@ type ProjectKubeOidcSpec struct { // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. - InitProvider ProjectKubeOidcInitParameters `json:"initProvider,omitempty"` + InitProvider OIDCConfigurationInitParameters `json:"initProvider,omitempty"` } -// ProjectKubeOidcStatus defines the observed state of ProjectKubeOidc. -type ProjectKubeOidcStatus struct { +// OIDCConfigurationStatus defines the observed state of OIDCConfiguration. +type OIDCConfigurationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ProjectKubeOidcObservation `json:"atProvider,omitempty"` + AtProvider OIDCConfigurationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeOidc is the Schema for the ProjectKubeOidcs API. +// OIDCConfiguration is the Schema for the OIDCConfigurations API. // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" // +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" // +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,ovh} -type ProjectKubeOidc struct { +type OIDCConfiguration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.clientId) || (has(self.initProvider) && has(self.initProvider.clientId))",message="spec.forProvider.clientId is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.issuerUrl) || (has(self.initProvider) && has(self.initProvider.issuerUrl))",message="spec.forProvider.issuerUrl is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" - Spec ProjectKubeOidcSpec `json:"spec"` - Status ProjectKubeOidcStatus `json:"status,omitempty"` + Spec OIDCConfigurationSpec `json:"spec"` + Status OIDCConfigurationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ProjectKubeOidcList contains a list of ProjectKubeOidcs -type ProjectKubeOidcList struct { +// OIDCConfigurationList contains a list of OIDCConfigurations +type OIDCConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ProjectKubeOidc `json:"items"` + Items []OIDCConfiguration `json:"items"` } // Repository type metadata. var ( - ProjectKubeOidc_Kind = "ProjectKubeOidc" - ProjectKubeOidc_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectKubeOidc_Kind}.String() - ProjectKubeOidc_KindAPIVersion = ProjectKubeOidc_Kind + "." + CRDGroupVersion.String() - ProjectKubeOidc_GroupVersionKind = CRDGroupVersion.WithKind(ProjectKubeOidc_Kind) + OIDCConfiguration_Kind = "OIDCConfiguration" + OIDCConfiguration_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: OIDCConfiguration_Kind}.String() + OIDCConfiguration_KindAPIVersion = OIDCConfiguration_Kind + "." + CRDGroupVersion.String() + OIDCConfiguration_GroupVersionKind = CRDGroupVersion.WithKind(OIDCConfiguration_Kind) ) func init() { - SchemeBuilder.Register(&ProjectKubeOidc{}, &ProjectKubeOidcList{}) + SchemeBuilder.Register(&OIDCConfiguration{}, &OIDCConfigurationList{}) } diff --git a/config/kube/config.go b/config/kube/config.go index b5e4684..611033b 100644 --- a/config/kube/config.go +++ b/config/kube/config.go @@ -11,24 +11,28 @@ func Configure(p *config.Provider) { p.AddResourceConfigurator("ovh_cloud_project_kube", func(r *config.Resource) { r.ShortGroup = shortGroup r.UseAsync = true + r.Kind = "Cluster" }) p.AddResourceConfigurator("ovh_cloud_project_kube_iprestrictions", func(r *config.Resource) { r.ShortGroup = shortGroup r.References["kube_id"] = config.Reference{ - Type: "github.com/edixos/provider-ovh/apis/kube/v1alpha1.ProjectKube", + Type: "github.com/edixos/provider-ovh/apis/kube/v1alpha1.Cluster", } + r.Kind = "IpRestriction" }) p.AddResourceConfigurator("ovh_cloud_project_kube_nodepool", func(r *config.Resource) { r.ShortGroup = shortGroup r.UseAsync = true r.References["kube_id"] = config.Reference{ - Type: "github.com/edixos/provider-ovh/apis/kube/v1alpha1.ProjectKube", + Type: "github.com/edixos/provider-ovh/apis/kube/v1alpha1.Cluster", } + r.Kind = "NodePool" }) p.AddResourceConfigurator("ovh_cloud_project_kube_oidc", func(r *config.Resource) { r.ShortGroup = shortGroup r.References["kube_id"] = config.Reference{ - Type: "github.com/edixos/provider-ovh/apis/kube/v1alpha1.ProjectKube", + Type: "github.com/edixos/provider-ovh/apis/kube/v1alpha1.Cluster", } + r.Kind = "OIDCConfiguration" }) } diff --git a/examples/kubernetes/projectkube.yaml b/examples/kubernetes/cluster.yaml similarity index 93% rename from examples/kubernetes/projectkube.yaml rename to examples/kubernetes/cluster.yaml index 7bc7d41..68d52c1 100644 --- a/examples/kubernetes/projectkube.yaml +++ b/examples/kubernetes/cluster.yaml @@ -1,5 +1,5 @@ apiVersion: kube.ovh.edixos.io/v1alpha1 -kind: ProjectKube +kind: Cluster metadata: name: hello-edixos spec: diff --git a/examples/kubernetes/projectkubeiprestrictions.yaml b/examples/kubernetes/iprestriction.yaml similarity index 88% rename from examples/kubernetes/projectkubeiprestrictions.yaml rename to examples/kubernetes/iprestriction.yaml index bf7096f..829beef 100644 --- a/examples/kubernetes/projectkubeiprestrictions.yaml +++ b/examples/kubernetes/iprestriction.yaml @@ -1,5 +1,5 @@ apiVersion: kube.ovh.edixos.io/v1alpha1 -kind: ProjectKubeIprestrictions +kind: IpRestriction metadata: name: hello-edixos spec: diff --git a/examples/kubernetes/projectkubenodepool.yaml b/examples/kubernetes/nodepool.yaml similarity index 92% rename from examples/kubernetes/projectkubenodepool.yaml rename to examples/kubernetes/nodepool.yaml index 63d5759..07b32e6 100644 --- a/examples/kubernetes/projectkubenodepool.yaml +++ b/examples/kubernetes/nodepool.yaml @@ -1,5 +1,5 @@ apiVersion: kube.ovh.edixos.io/v1alpha1 -kind: ProjectKubeNodepool +kind: NodePool metadata: name: hello-edixos spec: diff --git a/internal/controller/kube/projectkube/zz_controller.go b/internal/controller/kube/cluster/zz_controller.go similarity index 86% rename from internal/controller/kube/projectkube/zz_controller.go rename to internal/controller/kube/cluster/zz_controller.go index 0d95208..cdb513a 100755 --- a/internal/controller/kube/projectkube/zz_controller.go +++ b/internal/controller/kube/cluster/zz_controller.go @@ -8,7 +8,7 @@ Copyright 2022 Upbound Inc. // Code generated by upjet. DO NOT EDIT. -package projectkube +package cluster import ( "time" @@ -27,16 +27,16 @@ import ( features "github.com/edixos/provider-ovh/internal/features" ) -// Setup adds a controller that reconciles ProjectKube managed resources. +// Setup adds a controller that reconciles Cluster managed resources. func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1alpha1.ProjectKube_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.Cluster_GroupVersionKind.String()) var initializers managed.InitializerChain cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) } - eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectKube_GroupVersionKind))) - ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectKube_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.Cluster_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.Cluster_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) opts := []managed.ReconcilerOption{ managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_kube"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), tjcontroller.WithCallbackProvider(ac), @@ -55,12 +55,12 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { if o.Features.Enabled(features.EnableBetaManagementPolicies) { opts = append(opts, managed.WithManagementPolicies()) } - r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectKube_GroupVersionKind), opts...) + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.Cluster_GroupVersionKind), opts...) return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(o.ForControllerRuntime()). WithEventFilter(xpresource.DesiredStateChanged()). - Watches(&v1alpha1.ProjectKube{}, eventHandler). + Watches(&v1alpha1.Cluster{}, eventHandler). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) } diff --git a/internal/controller/kube/projectkubeiprestrictions/zz_controller.go b/internal/controller/kube/iprestriction/zz_controller.go similarity index 83% rename from internal/controller/kube/projectkubeiprestrictions/zz_controller.go rename to internal/controller/kube/iprestriction/zz_controller.go index 939f394..c9cdd6c 100755 --- a/internal/controller/kube/projectkubeiprestrictions/zz_controller.go +++ b/internal/controller/kube/iprestriction/zz_controller.go @@ -8,7 +8,7 @@ Copyright 2022 Upbound Inc. // Code generated by upjet. DO NOT EDIT. -package projectkubeiprestrictions +package iprestriction import ( "time" @@ -27,16 +27,16 @@ import ( features "github.com/edixos/provider-ovh/internal/features" ) -// Setup adds a controller that reconciles ProjectKubeIprestrictions managed resources. +// Setup adds a controller that reconciles IpRestriction managed resources. func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1alpha1.ProjectKubeIprestrictions_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.IpRestriction_GroupVersionKind.String()) var initializers managed.InitializerChain cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) } - eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectKubeIprestrictions_GroupVersionKind))) - ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectKubeIprestrictions_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.IpRestriction_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.IpRestriction_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) opts := []managed.ReconcilerOption{ managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_kube_iprestrictions"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), tjcontroller.WithCallbackProvider(ac), @@ -55,12 +55,12 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { if o.Features.Enabled(features.EnableBetaManagementPolicies) { opts = append(opts, managed.WithManagementPolicies()) } - r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectKubeIprestrictions_GroupVersionKind), opts...) + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.IpRestriction_GroupVersionKind), opts...) return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(o.ForControllerRuntime()). WithEventFilter(xpresource.DesiredStateChanged()). - Watches(&v1alpha1.ProjectKubeIprestrictions{}, eventHandler). + Watches(&v1alpha1.IpRestriction{}, eventHandler). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) } diff --git a/internal/controller/kube/projectkubenodepool/zz_controller.go b/internal/controller/kube/nodepool/zz_controller.go similarity index 84% rename from internal/controller/kube/projectkubenodepool/zz_controller.go rename to internal/controller/kube/nodepool/zz_controller.go index 9170bc7..23f8248 100755 --- a/internal/controller/kube/projectkubenodepool/zz_controller.go +++ b/internal/controller/kube/nodepool/zz_controller.go @@ -8,7 +8,7 @@ Copyright 2022 Upbound Inc. // Code generated by upjet. DO NOT EDIT. -package projectkubenodepool +package nodepool import ( "time" @@ -27,16 +27,16 @@ import ( features "github.com/edixos/provider-ovh/internal/features" ) -// Setup adds a controller that reconciles ProjectKubeNodepool managed resources. +// Setup adds a controller that reconciles NodePool managed resources. func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1alpha1.ProjectKubeNodepool_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.NodePool_GroupVersionKind.String()) var initializers managed.InitializerChain cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) } - eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectKubeNodepool_GroupVersionKind))) - ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectKubeNodepool_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.NodePool_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.NodePool_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) opts := []managed.ReconcilerOption{ managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_kube_nodepool"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), tjcontroller.WithCallbackProvider(ac), @@ -55,12 +55,12 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { if o.Features.Enabled(features.EnableBetaManagementPolicies) { opts = append(opts, managed.WithManagementPolicies()) } - r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectKubeNodepool_GroupVersionKind), opts...) + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.NodePool_GroupVersionKind), opts...) return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(o.ForControllerRuntime()). WithEventFilter(xpresource.DesiredStateChanged()). - Watches(&v1alpha1.ProjectKubeNodepool{}, eventHandler). + Watches(&v1alpha1.NodePool{}, eventHandler). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) } diff --git a/internal/controller/kube/projectkubeoidc/zz_controller.go b/internal/controller/kube/oidcconfiguration/zz_controller.go similarity index 85% rename from internal/controller/kube/projectkubeoidc/zz_controller.go rename to internal/controller/kube/oidcconfiguration/zz_controller.go index b1e1a4e..08c52d9 100755 --- a/internal/controller/kube/projectkubeoidc/zz_controller.go +++ b/internal/controller/kube/oidcconfiguration/zz_controller.go @@ -8,7 +8,7 @@ Copyright 2022 Upbound Inc. // Code generated by upjet. DO NOT EDIT. -package projectkubeoidc +package oidcconfiguration import ( "time" @@ -27,16 +27,16 @@ import ( features "github.com/edixos/provider-ovh/internal/features" ) -// Setup adds a controller that reconciles ProjectKubeOidc managed resources. +// Setup adds a controller that reconciles OIDCConfiguration managed resources. func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1alpha1.ProjectKubeOidc_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.OIDCConfiguration_GroupVersionKind.String()) var initializers managed.InitializerChain cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} if o.SecretStoreConfigGVK != nil { cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) } - eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectKubeOidc_GroupVersionKind))) - ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectKubeOidc_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.OIDCConfiguration_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.OIDCConfiguration_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) opts := []managed.ReconcilerOption{ managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_kube_oidc"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), tjcontroller.WithCallbackProvider(ac), @@ -55,12 +55,12 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { if o.Features.Enabled(features.EnableBetaManagementPolicies) { opts = append(opts, managed.WithManagementPolicies()) } - r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectKubeOidc_GroupVersionKind), opts...) + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.OIDCConfiguration_GroupVersionKind), opts...) return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(o.ForControllerRuntime()). WithEventFilter(xpresource.DesiredStateChanged()). - Watches(&v1alpha1.ProjectKubeOidc{}, eventHandler). + Watches(&v1alpha1.OIDCConfiguration{}, eventHandler). Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) } diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index 58fde5d..ec496d9 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -48,10 +48,10 @@ import ( zone "github.com/edixos/provider-ovh/internal/controller/dns/zone" zonerecord "github.com/edixos/provider-ovh/internal/controller/dns/zonerecord" zoneredirection "github.com/edixos/provider-ovh/internal/controller/dns/zoneredirection" - projectkube "github.com/edixos/provider-ovh/internal/controller/kube/projectkube" - projectkubeiprestrictions "github.com/edixos/provider-ovh/internal/controller/kube/projectkubeiprestrictions" - projectkubenodepool "github.com/edixos/provider-ovh/internal/controller/kube/projectkubenodepool" - projectkubeoidc "github.com/edixos/provider-ovh/internal/controller/kube/projectkubeoidc" + cluster "github.com/edixos/provider-ovh/internal/controller/kube/cluster" + iprestriction "github.com/edixos/provider-ovh/internal/controller/kube/iprestriction" + nodepool "github.com/edixos/provider-ovh/internal/controller/kube/nodepool" + oidcconfiguration "github.com/edixos/provider-ovh/internal/controller/kube/oidcconfiguration" httpfarm "github.com/edixos/provider-ovh/internal/controller/lb/httpfarm" httpfarmserver "github.com/edixos/provider-ovh/internal/controller/lb/httpfarmserver" httpfrontend "github.com/edixos/provider-ovh/internal/controller/lb/httpfrontend" @@ -134,10 +134,10 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { zone.Setup, zonerecord.Setup, zoneredirection.Setup, - projectkube.Setup, - projectkubeiprestrictions.Setup, - projectkubenodepool.Setup, - projectkubeoidc.Setup, + cluster.Setup, + iprestriction.Setup, + nodepool.Setup, + oidcconfiguration.Setup, httpfarm.Setup, httpfarmserver.Setup, httpfrontend.Setup, diff --git a/package/crds/kube.ovh.edixos.io_projectkubes.yaml b/package/crds/kube.ovh.edixos.io_clusters.yaml similarity index 98% rename from package/crds/kube.ovh.edixos.io_projectkubes.yaml rename to package/crds/kube.ovh.edixos.io_clusters.yaml index b4e6805..cf4e309 100644 --- a/package/crds/kube.ovh.edixos.io_projectkubes.yaml +++ b/package/crds/kube.ovh.edixos.io_clusters.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.13.0 - name: projectkubes.kube.ovh.edixos.io + name: clusters.kube.ovh.edixos.io spec: group: kube.ovh.edixos.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - ovh - kind: ProjectKube - listKind: ProjectKubeList - plural: projectkubes - singular: projectkube + kind: Cluster + listKind: ClusterList + plural: clusters + singular: cluster scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ProjectKube is the Schema for the ProjectKubes API. + description: Cluster is the Schema for the Clusters API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: ProjectKubeSpec defines the desired state of ProjectKube + description: ClusterSpec defines the desired state of Cluster properties: deletionPolicy: default: Delete @@ -452,7 +452,7 @@ spec: || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))' status: - description: ProjectKubeStatus defines the observed state of ProjectKube. + description: ClusterStatus defines the observed state of Cluster. properties: atProvider: properties: diff --git a/package/crds/kube.ovh.edixos.io_projectkubeiprestrictions.yaml b/package/crds/kube.ovh.edixos.io_iprestrictions.yaml similarity index 96% rename from package/crds/kube.ovh.edixos.io_projectkubeiprestrictions.yaml rename to package/crds/kube.ovh.edixos.io_iprestrictions.yaml index 09d4ff8..6d41cbf 100644 --- a/package/crds/kube.ovh.edixos.io_projectkubeiprestrictions.yaml +++ b/package/crds/kube.ovh.edixos.io_iprestrictions.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.13.0 - name: projectkubeiprestrictions.kube.ovh.edixos.io + name: iprestrictions.kube.ovh.edixos.io spec: group: kube.ovh.edixos.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - ovh - kind: ProjectKubeIprestrictions - listKind: ProjectKubeIprestrictionsList - plural: projectkubeiprestrictions - singular: projectkubeiprestrictions + kind: IpRestriction + listKind: IpRestrictionList + plural: iprestrictions + singular: iprestriction scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ProjectKubeIprestrictions is the Schema for the ProjectKubeIprestrictionss - API. + description: IpRestriction is the Schema for the IpRestrictions API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,8 +49,7 @@ spec: metadata: type: object spec: - description: ProjectKubeIprestrictionsSpec defines the desired state of - ProjectKubeIprestrictions + description: IpRestrictionSpec defines the desired state of IpRestriction properties: deletionPolicy: default: Delete @@ -77,7 +75,7 @@ spec: description: Kube ID type: string kubeIdRef: - description: Reference to a ProjectKube in kube to populate kubeId. + description: Reference to a Cluster in kube to populate kubeId. properties: name: description: Name of the referenced object. @@ -111,7 +109,7 @@ spec: - name type: object kubeIdSelector: - description: Selector for a ProjectKube in kube to populate kubeId. + description: Selector for a Cluster in kube to populate kubeId. properties: matchControllerRef: description: MatchControllerRef ensures an object with the @@ -344,8 +342,7 @@ spec: || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))' status: - description: ProjectKubeIprestrictionsStatus defines the observed state - of ProjectKubeIprestrictions. + description: IpRestrictionStatus defines the observed state of IpRestriction. properties: atProvider: properties: diff --git a/package/crds/kube.ovh.edixos.io_projectkubenodepools.yaml b/package/crds/kube.ovh.edixos.io_nodepools.yaml similarity index 97% rename from package/crds/kube.ovh.edixos.io_projectkubenodepools.yaml rename to package/crds/kube.ovh.edixos.io_nodepools.yaml index 1e0aa53..8ae5489 100644 --- a/package/crds/kube.ovh.edixos.io_projectkubenodepools.yaml +++ b/package/crds/kube.ovh.edixos.io_nodepools.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.13.0 - name: projectkubenodepools.kube.ovh.edixos.io + name: nodepools.kube.ovh.edixos.io spec: group: kube.ovh.edixos.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - ovh - kind: ProjectKubeNodepool - listKind: ProjectKubeNodepoolList - plural: projectkubenodepools - singular: projectkubenodepool + kind: NodePool + listKind: NodePoolList + plural: nodepools + singular: nodepool scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ProjectKubeNodepool is the Schema for the ProjectKubeNodepools - API. + description: NodePool is the Schema for the NodePools API. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +49,7 @@ spec: metadata: type: object spec: - description: ProjectKubeNodepoolSpec defines the desired state of ProjectKubeNodepool + description: NodePoolSpec defines the desired state of NodePool properties: deletionPolicy: default: Delete @@ -83,7 +82,7 @@ spec: description: Kube ID type: string kubeIdRef: - description: Reference to a ProjectKube in kube to populate kubeId. + description: Reference to a Cluster in kube to populate kubeId. properties: name: description: Name of the referenced object. @@ -117,7 +116,7 @@ spec: - name type: object kubeIdSelector: - description: Selector for a ProjectKube in kube to populate kubeId. + description: Selector for a Cluster in kube to populate kubeId. properties: matchControllerRef: description: MatchControllerRef ensures an object with the @@ -467,7 +466,7 @@ spec: || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))' status: - description: ProjectKubeNodepoolStatus defines the observed state of ProjectKubeNodepool. + description: NodePoolStatus defines the observed state of NodePool. properties: atProvider: properties: diff --git a/package/crds/kube.ovh.edixos.io_projectkubeoidcs.yaml b/package/crds/kube.ovh.edixos.io_oidcconfigurations.yaml similarity index 97% rename from package/crds/kube.ovh.edixos.io_projectkubeoidcs.yaml rename to package/crds/kube.ovh.edixos.io_oidcconfigurations.yaml index d3789b7..e44704a 100644 --- a/package/crds/kube.ovh.edixos.io_projectkubeoidcs.yaml +++ b/package/crds/kube.ovh.edixos.io_oidcconfigurations.yaml @@ -4,7 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.13.0 - name: projectkubeoidcs.kube.ovh.edixos.io + name: oidcconfigurations.kube.ovh.edixos.io spec: group: kube.ovh.edixos.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - ovh - kind: ProjectKubeOidc - listKind: ProjectKubeOidcList - plural: projectkubeoidcs - singular: projectkubeoidc + kind: OIDCConfiguration + listKind: OIDCConfigurationList + plural: oidcconfigurations + singular: oidcconfiguration scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,8 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ProjectKubeOidc is the Schema for the ProjectKubeOidcs API. + description: OIDCConfiguration is the Schema for the OIDCConfigurations API. + properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +50,7 @@ spec: metadata: type: object spec: - description: ProjectKubeOidcSpec defines the desired state of ProjectKubeOidc + description: OIDCConfigurationSpec defines the desired state of OIDCConfiguration properties: deletionPolicy: default: Delete @@ -74,7 +74,7 @@ spec: kubeId: type: string kubeIdRef: - description: Reference to a ProjectKube in kube to populate kubeId. + description: Reference to a Cluster in kube to populate kubeId. properties: name: description: Name of the referenced object. @@ -108,7 +108,7 @@ spec: - name type: object kubeIdSelector: - description: Selector for a ProjectKube in kube to populate kubeId. + description: Selector for a Cluster in kube to populate kubeId. properties: matchControllerRef: description: MatchControllerRef ensures an object with the @@ -382,7 +382,7 @@ spec: || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))' status: - description: ProjectKubeOidcStatus defines the observed state of ProjectKubeOidc. + description: OIDCConfigurationStatus defines the observed state of OIDCConfiguration. properties: atProvider: properties: