@@ -75,7 +75,7 @@ type AWSClusterConfigSpec struct {
7575 // +kubebuilder:validation:Optional
7676 AWS * AWSSpec `json:"aws,omitempty"`
7777
78- GenericClusterConfigResource `json:",inline"`
78+ GenericClusterConfigSpec `json:",inline"`
7979
8080 // +kubebuilder:validation:Optional
8181 Addons * AWSAddons `json:"addons,omitempty"`
@@ -112,7 +112,7 @@ type DockerClusterConfigSpec struct {
112112 // +kubebuilder:validation:Optional
113113 Docker * DockerSpec `json:"docker,omitempty"`
114114
115- GenericClusterConfigResource `json:",inline"`
115+ GenericClusterConfigSpec `json:",inline"`
116116
117117 // +kubebuilder:validation:Optional
118118 Addons * DockerAddons `json:"addons,omitempty"`
@@ -154,7 +154,7 @@ type NutanixClusterConfigSpec struct {
154154 // +kubebuilder:validation:Optional
155155 Nutanix * NutanixSpec `json:"nutanix,omitempty"`
156156
157- GenericClusterConfigResource `json:",inline"`
157+ GenericClusterConfigSpec `json:",inline"`
158158
159159 // +kubebuilder:validation:Optional
160160 Addons * NutanixAddons `json:"addons,omitempty"`
@@ -200,13 +200,6 @@ func (s GenericClusterConfig) VariableSchema() clusterv1.VariableSchema { //noli
200200
201201// GenericClusterConfigSpec defines the desired state of GenericClusterConfig.
202202type GenericClusterConfigSpec struct {
203- GenericClusterConfigResource `json:",inline"`
204-
205- // +kubebuilder:validation:Optional
206- Addons * GenericAddons `json:"addons,omitempty"`
207- }
208-
209- type GenericClusterConfigResource struct {
210203 // Sets the Kubernetes image repository used for the KubeadmControlPlane.
211204 // +kubebuilder:validation:Optional
212205 // +kubebuilder:validation:Pattern=`^((?:[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*|\[(?:[a-fA-F0-9:]+)\])(:[0-9]+)?/)?[a-z0-9]+((?:[._]|__|[-]+)[a-z0-9]+)*(/[a-z0-9]+((?:[._]|__|[-]+)[a-z0-9]+)*)*$`
0 commit comments