diff --git a/cloud/skeleton/providerconfig/register.go b/cloud/skeleton/providerconfig/register.go index 7e34b93a89d7..b4140e4652a6 100644 --- a/cloud/skeleton/providerconfig/register.go +++ b/cloud/skeleton/providerconfig/register.go @@ -42,16 +42,16 @@ func Resource(resource string) schema.GroupResource { func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &AWSMachineProviderConfig{}, + &SkeletonMachineProviderConfig{}, ) scheme.AddKnownTypes(SchemeGroupVersion, - &AWSClusterProviderConfig{}, + &SkeletonClusterProviderConfig{}, ) scheme.AddKnownTypes(SchemeGroupVersion, - &AWSMachineProviderStatus{}, + &SkeletonMachineProviderStatus{}, ) scheme.AddKnownTypes(SchemeGroupVersion, - &AWSClusterProviderStatus{}, + &SkeletonClusterProviderStatus{}, ) return nil } diff --git a/cloud/skeleton/providerconfig/types.go b/cloud/skeleton/providerconfig/types.go index 5b9070213ad8..eedda2c980a1 100644 --- a/cloud/skeleton/providerconfig/types.go +++ b/cloud/skeleton/providerconfig/types.go @@ -18,21 +18,21 @@ import ( ) // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSMachineProviderConfig struct { +type SkeletonMachineProviderConfig struct { metav1.TypeMeta `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSClusterProviderConfig struct { +type SkeletonClusterProviderConfig struct { metav1.TypeMeta `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSMachineProviderStatus struct { +type SkeletonMachineProviderStatus struct { metav1.TypeMeta `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSClusterProviderStatus struct { +type SkeletonClusterProviderStatus struct { metav1.TypeMeta `json:",inline"` } diff --git a/cloud/skeleton/providerconfig/v1alpha1/register.go b/cloud/skeleton/providerconfig/v1alpha1/register.go index 3978fda04dfa..d460b0527e3d 100644 --- a/cloud/skeleton/providerconfig/v1alpha1/register.go +++ b/cloud/skeleton/providerconfig/v1alpha1/register.go @@ -26,7 +26,7 @@ import ( ) // +k8s:deepcopy-gen=false -type AWSProviderConfigCodec struct { +type SkeletonProviderConfigCodec struct { encoder runtime.Encoder decoder runtime.Decoder } @@ -47,16 +47,16 @@ func init() { func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, - &AWSMachineProviderConfig{}, + &SkeletonMachineProviderConfig{}, ) scheme.AddKnownTypes(SchemeGroupVersion, - &AWSClusterProviderConfig{}, + &SkeletonClusterProviderConfig{}, ) scheme.AddKnownTypes(SchemeGroupVersion, - &AWSMachineProviderStatus{}, + &SkeletonMachineProviderStatus{}, ) scheme.AddKnownTypes(SchemeGroupVersion, - &AWSClusterProviderStatus{}, + &SkeletonClusterProviderStatus{}, ) return nil } @@ -72,7 +72,7 @@ func NewScheme() (*runtime.Scheme, error) { return scheme, nil } -func NewCodec() (*AWSProviderConfigCodec, error) { +func NewCodec() (*SkeletonProviderConfigCodec, error) { scheme, err := NewScheme() if err != nil { return nil, err @@ -82,14 +82,14 @@ func NewCodec() (*AWSProviderConfigCodec, error) { if err != nil { return nil, err } - codec := AWSProviderConfigCodec{ + codec := SkeletonProviderConfigCodec{ encoder: encoder, decoder: codecFactory.UniversalDecoder(SchemeGroupVersion), } return &codec, nil } -func (codec *AWSProviderConfigCodec) DecodeFromProviderConfig(providerConfig clusterv1.ProviderConfig, out runtime.Object) error { +func (codec *SkeletonProviderConfigCodec) DecodeFromProviderConfig(providerConfig clusterv1.ProviderConfig, out runtime.Object) error { if providerConfig.Value != nil { _, _, err := codec.decoder.Decode(providerConfig.Value.Raw, nil, out) if err != nil { @@ -99,7 +99,7 @@ func (codec *AWSProviderConfigCodec) DecodeFromProviderConfig(providerConfig clu return nil } -func (codec *AWSProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) (*clusterv1.ProviderConfig, error) { +func (codec *SkeletonProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) (*clusterv1.ProviderConfig, error) { var buf bytes.Buffer if err := codec.encoder.Encode(in, &buf); err != nil { return nil, fmt.Errorf("encoding failed: %v", err) @@ -109,7 +109,7 @@ func (codec *AWSProviderConfigCodec) EncodeToProviderConfig(in runtime.Object) ( }, nil } -func (codec *AWSProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*runtime.RawExtension, error) { +func (codec *SkeletonProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*runtime.RawExtension, error) { var buf bytes.Buffer if err := codec.encoder.Encode(in, &buf); err != nil { return nil, fmt.Errorf("encoding failed: %v", err) @@ -118,7 +118,7 @@ func (codec *AWSProviderConfigCodec) EncodeProviderStatus(in runtime.Object) (*r return &runtime.RawExtension{Raw: buf.Bytes()}, nil } -func (codec *AWSProviderConfigCodec) DecodeProviderStatus(providerStatus *runtime.RawExtension, out runtime.Object) error { +func (codec *SkeletonProviderConfigCodec) DecodeProviderStatus(providerStatus *runtime.RawExtension, out runtime.Object) error { if providerStatus != nil { _, _, err := codec.decoder.Decode(providerStatus.Raw, nil, out) if err != nil { diff --git a/cloud/skeleton/providerconfig/v1alpha1/types.go b/cloud/skeleton/providerconfig/v1alpha1/types.go index 343f423d3d95..c3530b32a656 100644 --- a/cloud/skeleton/providerconfig/v1alpha1/types.go +++ b/cloud/skeleton/providerconfig/v1alpha1/types.go @@ -18,21 +18,21 @@ import ( ) // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSMachineProviderConfig struct { +type SkeletonMachineProviderConfig struct { metav1.TypeMeta `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSClusterProviderConfig struct { +type SkeletonClusterProviderConfig struct { metav1.TypeMeta `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSMachineProviderStatus struct { +type SkeletonMachineProviderStatus struct { metav1.TypeMeta `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type AWSClusterProviderStatus struct { +type SkeletonClusterProviderStatus struct { metav1.TypeMeta `json:",inline"` } diff --git a/cloud/skeleton/providerconfig/v1alpha1/zz_generated.deepcopy.go b/cloud/skeleton/providerconfig/v1alpha1/zz_generated.deepcopy.go index 4e8c53dfb9cf..e9afc7daad23 100644 --- a/cloud/skeleton/providerconfig/v1alpha1/zz_generated.deepcopy.go +++ b/cloud/skeleton/providerconfig/v1alpha1/zz_generated.deepcopy.go @@ -22,24 +22,24 @@ import ( ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSClusterProviderConfig) DeepCopyInto(out *AWSClusterProviderConfig) { +func (in *SkeletonClusterProviderConfig) DeepCopyInto(out *SkeletonClusterProviderConfig) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSClusterProviderConfig. -func (in *AWSClusterProviderConfig) DeepCopy() *AWSClusterProviderConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonClusterProviderConfig. +func (in *SkeletonClusterProviderConfig) DeepCopy() *SkeletonClusterProviderConfig { if in == nil { return nil } - out := new(AWSClusterProviderConfig) + out := new(SkeletonClusterProviderConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSClusterProviderConfig) DeepCopyObject() runtime.Object { +func (in *SkeletonClusterProviderConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { @@ -48,24 +48,24 @@ func (in *AWSClusterProviderConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSClusterProviderStatus) DeepCopyInto(out *AWSClusterProviderStatus) { +func (in *SkeletonClusterProviderStatus) DeepCopyInto(out *SkeletonClusterProviderStatus) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSClusterProviderStatus. -func (in *AWSClusterProviderStatus) DeepCopy() *AWSClusterProviderStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonClusterProviderStatus. +func (in *SkeletonClusterProviderStatus) DeepCopy() *SkeletonClusterProviderStatus { if in == nil { return nil } - out := new(AWSClusterProviderStatus) + out := new(SkeletonClusterProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSClusterProviderStatus) DeepCopyObject() runtime.Object { +func (in *SkeletonClusterProviderStatus) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { @@ -74,24 +74,24 @@ func (in *AWSClusterProviderStatus) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachineProviderConfig) DeepCopyInto(out *AWSMachineProviderConfig) { +func (in *SkeletonMachineProviderConfig) DeepCopyInto(out *SkeletonMachineProviderConfig) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachineProviderConfig. -func (in *AWSMachineProviderConfig) DeepCopy() *AWSMachineProviderConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonMachineProviderConfig. +func (in *SkeletonMachineProviderConfig) DeepCopy() *SkeletonMachineProviderConfig { if in == nil { return nil } - out := new(AWSMachineProviderConfig) + out := new(SkeletonMachineProviderConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSMachineProviderConfig) DeepCopyObject() runtime.Object { +func (in *SkeletonMachineProviderConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { @@ -100,24 +100,24 @@ func (in *AWSMachineProviderConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachineProviderStatus) DeepCopyInto(out *AWSMachineProviderStatus) { +func (in *SkeletonMachineProviderStatus) DeepCopyInto(out *SkeletonMachineProviderStatus) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachineProviderStatus. -func (in *AWSMachineProviderStatus) DeepCopy() *AWSMachineProviderStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonMachineProviderStatus. +func (in *SkeletonMachineProviderStatus) DeepCopy() *SkeletonMachineProviderStatus { if in == nil { return nil } - out := new(AWSMachineProviderStatus) + out := new(SkeletonMachineProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSMachineProviderStatus) DeepCopyObject() runtime.Object { +func (in *SkeletonMachineProviderStatus) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { diff --git a/cloud/skeleton/providerconfig/zz_generated.deepcopy.go b/cloud/skeleton/providerconfig/zz_generated.deepcopy.go index 086d344ac288..afec415f1506 100644 --- a/cloud/skeleton/providerconfig/zz_generated.deepcopy.go +++ b/cloud/skeleton/providerconfig/zz_generated.deepcopy.go @@ -22,24 +22,24 @@ import ( ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSClusterProviderConfig) DeepCopyInto(out *AWSClusterProviderConfig) { +func (in *SkeletonClusterProviderConfig) DeepCopyInto(out *SkeletonClusterProviderConfig) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSClusterProviderConfig. -func (in *AWSClusterProviderConfig) DeepCopy() *AWSClusterProviderConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonClusterProviderConfig. +func (in *SkeletonClusterProviderConfig) DeepCopy() *SkeletonClusterProviderConfig { if in == nil { return nil } - out := new(AWSClusterProviderConfig) + out := new(SkeletonClusterProviderConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSClusterProviderConfig) DeepCopyObject() runtime.Object { +func (in *SkeletonClusterProviderConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { @@ -48,24 +48,24 @@ func (in *AWSClusterProviderConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSClusterProviderStatus) DeepCopyInto(out *AWSClusterProviderStatus) { +func (in *SkeletonClusterProviderStatus) DeepCopyInto(out *SkeletonClusterProviderStatus) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSClusterProviderStatus. -func (in *AWSClusterProviderStatus) DeepCopy() *AWSClusterProviderStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonClusterProviderStatus. +func (in *SkeletonClusterProviderStatus) DeepCopy() *SkeletonClusterProviderStatus { if in == nil { return nil } - out := new(AWSClusterProviderStatus) + out := new(SkeletonClusterProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSClusterProviderStatus) DeepCopyObject() runtime.Object { +func (in *SkeletonClusterProviderStatus) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { @@ -74,24 +74,24 @@ func (in *AWSClusterProviderStatus) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachineProviderConfig) DeepCopyInto(out *AWSMachineProviderConfig) { +func (in *SkeletonMachineProviderConfig) DeepCopyInto(out *SkeletonMachineProviderConfig) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachineProviderConfig. -func (in *AWSMachineProviderConfig) DeepCopy() *AWSMachineProviderConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonMachineProviderConfig. +func (in *SkeletonMachineProviderConfig) DeepCopy() *SkeletonMachineProviderConfig { if in == nil { return nil } - out := new(AWSMachineProviderConfig) + out := new(SkeletonMachineProviderConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSMachineProviderConfig) DeepCopyObject() runtime.Object { +func (in *SkeletonMachineProviderConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { @@ -100,24 +100,24 @@ func (in *AWSMachineProviderConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AWSMachineProviderStatus) DeepCopyInto(out *AWSMachineProviderStatus) { +func (in *SkeletonMachineProviderStatus) DeepCopyInto(out *SkeletonMachineProviderStatus) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSMachineProviderStatus. -func (in *AWSMachineProviderStatus) DeepCopy() *AWSMachineProviderStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkeletonMachineProviderStatus. +func (in *SkeletonMachineProviderStatus) DeepCopy() *SkeletonMachineProviderStatus { if in == nil { return nil } - out := new(AWSMachineProviderStatus) + out := new(SkeletonMachineProviderStatus) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *AWSMachineProviderStatus) DeepCopyObject() runtime.Object { +func (in *SkeletonMachineProviderStatus) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } else { diff --git a/clusterctl/examples/skeleton/cluster.yaml.template b/clusterctl/examples/skeleton/cluster.yaml.template index 54aa5556af5f..9497a08569c8 100644 --- a/clusterctl/examples/skeleton/cluster.yaml.template +++ b/clusterctl/examples/skeleton/cluster.yaml.template @@ -12,5 +12,5 @@ spec: providerConfig: value: apiVersion: "skeletonproviderconfig/v1alpha1" - kind: "AWSClusterProviderConfig" + kind: "SkeletonClusterProviderConfig"