Skip to content

Commit 18b81dc

Browse files
authored
Merge pull request #865 from Daimler/schloc/remove-v1alpha4-UserDataSecret
✨ api/v1alpha4 remove obsolete UserDataSecret field
2 parents c3779d3 + a08f1b1 commit 18b81dc

7 files changed

+74
-65
lines changed

api/v1alpha3/conversion.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,9 @@ func (r *OpenStackMachineTemplateList) ConvertFrom(srcRaw ctrlconversion.Hub) er
112112
func Convert_v1alpha3_OpenStackClusterSpec_To_v1alpha4_OpenStackClusterSpec(in *OpenStackClusterSpec, out *v1alpha4.OpenStackClusterSpec, s conversion.Scope) error {
113113
return autoConvert_v1alpha3_OpenStackClusterSpec_To_v1alpha4_OpenStackClusterSpec(in, out, s)
114114
}
115+
116+
// Convert_v1alpha3_OpenStackMachineSpec_To_v1alpha4_OpenStackMachineSpec is an autogenerated conversion function.
117+
// v1alpha4 drops the field .UserDataSecret which is why we reuqire to define the function here.
118+
func Convert_v1alpha3_OpenStackMachineSpec_To_v1alpha4_OpenStackMachineSpec(in *OpenStackMachineSpec, out *v1alpha4.OpenStackMachineSpec, s conversion.Scope) error {
119+
return autoConvert_v1alpha3_OpenStackMachineSpec_To_v1alpha4_OpenStackMachineSpec(in, out, s)
120+
}

api/v1alpha3/zz_generated.conversion.go

Lines changed: 68 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha4/openstackmachine_types.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ type OpenStackMachineSpec struct {
6868
// The names of the security groups to assign to the instance
6969
SecurityGroups []SecurityGroupParam `json:"securityGroups,omitempty"`
7070

71-
// The name of the secret containing the user data (startup script in most cases)
72-
UserDataSecret *corev1.SecretReference `json:"userDataSecret,omitempty"`
73-
7471
// Whether the server instance is created on a trunk port or not.
7572
Trunk bool `json:"trunk,omitempty"`
7673

api/v1alpha4/zz_generated.deepcopy.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,19 +1326,6 @@ spec:
13261326
description: Whether the server instance is created on a trunk
13271327
port or not.
13281328
type: boolean
1329-
userDataSecret:
1330-
description: The name of the secret containing the user data
1331-
(startup script in most cases)
1332-
properties:
1333-
name:
1334-
description: Name is unique within a namespace to reference
1335-
a secret resource.
1336-
type: string
1337-
namespace:
1338-
description: Namespace defines the space within which
1339-
the secret name must be unique.
1340-
type: string
1341-
type: object
13421329
required:
13431330
- flavor
13441331
type: object

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -619,19 +619,6 @@ spec:
619619
description: Whether the server instance is created on a trunk port
620620
or not.
621621
type: boolean
622-
userDataSecret:
623-
description: The name of the secret containing the user data (startup
624-
script in most cases)
625-
properties:
626-
name:
627-
description: Name is unique within a namespace to reference a
628-
secret resource.
629-
type: string
630-
namespace:
631-
description: Namespace defines the space within which the secret
632-
name must be unique.
633-
type: string
634-
type: object
635622
required:
636623
- flavor
637624
type: object

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -565,19 +565,6 @@ spec:
565565
description: Whether the server instance is created on a trunk
566566
port or not.
567567
type: boolean
568-
userDataSecret:
569-
description: The name of the secret containing the user data
570-
(startup script in most cases)
571-
properties:
572-
name:
573-
description: Name is unique within a namespace to reference
574-
a secret resource.
575-
type: string
576-
namespace:
577-
description: Namespace defines the space within which
578-
the secret name must be unique.
579-
type: string
580-
type: object
581568
required:
582569
- flavor
583570
type: object

0 commit comments

Comments
 (0)