Skip to content

Commit

Permalink
Omit ctlPlaneIP if empty
Browse files Browse the repository at this point in the history
It's possible that user provides `networkData` or `preprovisioningNetworkDataName`
that would have the network configuration to be used for the nodes
rather than what we configure with cloud-init.

Let's ignore if empty to avoid errors.

Signed-off-by: rabi <[email protected]>
  • Loading branch information
rabi committed Sep 11, 2024
1 parent 1717887 commit 5c6bbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/openstackbaremetalset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type AutomatedCleaningMode string
type InstanceSpec struct {
// +kubebuilder:validation:Optional
// CtlPlaneIP - Control Plane IP in CIDR notation
CtlPlaneIP string `json:"ctlPlaneIP"`
CtlPlaneIP string `json:"ctlPlaneIP,omitempty"`
// +kubebuilder:validation:Optional
// UserData - Host User Data
UserData *corev1.SecretReference `json:"userData,omitempty"`
Expand Down

0 comments on commit 5c6bbf6

Please sign in to comment.