From 28568d9bed0c739d5cdd353c9507b929a46e54d2 Mon Sep 17 00:00:00 2001 From: i331134 Date: Tue, 9 Oct 2018 18:58:01 +0530 Subject: [PATCH] Autogenerated files --- config/crds/cluster_v1alpha1_cluster.yaml | 6 ++ config/crds/cluster_v1alpha1_machine.yaml | 6 ++ .../crds/cluster_v1alpha1_machineclass.yaml | 37 ++++++++ .../cluster_v1alpha1_machinedeployment.yaml | 6 ++ config/crds/cluster_v1alpha1_machineset.yaml | 6 ++ .../cluster/v1alpha1/zz_generated.deepcopy.go | 89 ++++++++++++++++++- 6 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 config/crds/cluster_v1alpha1_machineclass.yaml diff --git a/config/crds/cluster_v1alpha1_cluster.yaml b/config/crds/cluster_v1alpha1_cluster.yaml index d60fd49b431c..5d510f025c0f 100644 --- a/config/crds/cluster_v1alpha1_cluster.yaml +++ b/config/crds/cluster_v1alpha1_cluster.yaml @@ -56,6 +56,12 @@ spec: value: type: object valueFrom: + properties: + machineClass: + properties: + provider: + type: string + type: object type: object type: object required: diff --git a/config/crds/cluster_v1alpha1_machine.yaml b/config/crds/cluster_v1alpha1_machine.yaml index 937e44650193..ee1d3bed4347 100644 --- a/config/crds/cluster_v1alpha1_machine.yaml +++ b/config/crds/cluster_v1alpha1_machine.yaml @@ -33,6 +33,12 @@ spec: value: type: object valueFrom: + properties: + machineClass: + properties: + provider: + type: string + type: object type: object type: object taints: diff --git a/config/crds/cluster_v1alpha1_machineclass.yaml b/config/crds/cluster_v1alpha1_machineclass.yaml new file mode 100644 index 000000000000..511bfa7d3935 --- /dev/null +++ b/config/crds/cluster_v1alpha1_machineclass.yaml @@ -0,0 +1,37 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + creationTimestamp: null + labels: + controller-tools.k8s.io: "1.0" + name: machineclasses.cluster.k8s.io +spec: + group: cluster.k8s.io + names: + kind: MachineClass + plural: machineclasses + scope: Namespaced + validation: + openAPIV3Schema: + properties: + apiVersion: + type: string + kind: + type: string + metadata: + type: object + providerConfig: + type: object + spec: + type: object + status: + type: object + required: + - providerConfig + version: v1alpha1 +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/config/crds/cluster_v1alpha1_machinedeployment.yaml b/config/crds/cluster_v1alpha1_machinedeployment.yaml index f0646ad61421..f243415219b9 100644 --- a/config/crds/cluster_v1alpha1_machinedeployment.yaml +++ b/config/crds/cluster_v1alpha1_machinedeployment.yaml @@ -67,6 +67,12 @@ spec: value: type: object valueFrom: + properties: + machineClass: + properties: + provider: + type: string + type: object type: object type: object taints: diff --git a/config/crds/cluster_v1alpha1_machineset.yaml b/config/crds/cluster_v1alpha1_machineset.yaml index 04cd83584513..7522abc3cd65 100644 --- a/config/crds/cluster_v1alpha1_machineset.yaml +++ b/config/crds/cluster_v1alpha1_machineset.yaml @@ -47,6 +47,12 @@ spec: value: type: object valueFrom: + properties: + machineClass: + properties: + provider: + type: string + type: object type: object type: object taints: diff --git a/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go index 24c00b0cde03..dcb2de80f658 100644 --- a/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go @@ -194,6 +194,88 @@ func (in *Machine) DeepCopyObject() runtime.Object { return nil } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MachineClass) DeepCopyInto(out *MachineClass) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.ProviderConfig.DeepCopyInto(&out.ProviderConfig) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClass. +func (in *MachineClass) DeepCopy() *MachineClass { + if in == nil { + return nil + } + out := new(MachineClass) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MachineClass) 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 *MachineClassRef) DeepCopyInto(out *MachineClassRef) { + *out = *in + if in.ObjectReference != nil { + in, out := &in.ObjectReference, &out.ObjectReference + *out = new(v1.ObjectReference) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassRef. +func (in *MachineClassRef) DeepCopy() *MachineClassRef { + if in == nil { + return nil + } + out := new(MachineClassRef) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MachineClassSpec) DeepCopyInto(out *MachineClassSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassSpec. +func (in *MachineClassSpec) DeepCopy() *MachineClassSpec { + if in == nil { + return nil + } + out := new(MachineClassSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MachineClassStatus) DeepCopyInto(out *MachineClassStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineClassStatus. +func (in *MachineClassStatus) DeepCopy() *MachineClassStatus { + if in == nil { + return nil + } + out := new(MachineClassStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MachineDeployment) DeepCopyInto(out *MachineDeployment) { *out = *in @@ -654,7 +736,7 @@ func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig) { if in.ValueFrom != nil { in, out := &in.ValueFrom, &out.ValueFrom *out = new(ProviderConfigSource) - **out = **in + (*in).DeepCopyInto(*out) } return } @@ -672,6 +754,11 @@ func (in *ProviderConfig) DeepCopy() *ProviderConfig { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProviderConfigSource) DeepCopyInto(out *ProviderConfigSource) { *out = *in + if in.MachineClass != nil { + in, out := &in.MachineClass, &out.MachineClass + *out = new(MachineClassRef) + (*in).DeepCopyInto(*out) + } return }