Skip to content

Commit

Permalink
Merge pull request #1116 from rabi/preprovNetwork
Browse files Browse the repository at this point in the history
Remove PreprovisioningNetworkDataName
  • Loading branch information
openshift-merge-bot[bot] authored Oct 5, 2024
2 parents cb82998 + 0d03aea commit 7ce7b6a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1197,8 +1197,6 @@ spec:
- subnetName
type: object
type: array
preprovisioningNetworkDataName:
type: string
userData:
properties:
name:
Expand Down
4 changes: 0 additions & 4 deletions apis/dataplane/v1beta1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ type NodeSection struct {
// ManagementNetwork - Name of network to use for management (SSH/Ansible)
// +kubebuilder:validation:Optional
ManagementNetwork string `json:"managementNetwork,omitempty"`

// +kubebuilder:validation:Optional
// PreprovisioningNetworkDataName - NetworkData secret name in the local namespace for pre-provisioing
PreprovisioningNetworkDataName string `json:"preprovisioningNetworkDataName,omitempty"`
}

// NodeTemplate is a specification of the node attributes that override top level attributes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (spec *OpenStackDataPlaneNodeSetSpec) Default() {
instanceSpec.BmhLabelSelector = node.BmhLabelSelector
instanceSpec.UserData = node.UserData
instanceSpec.NetworkData = node.NetworkData
instanceSpec.PreprovisioningNetworkDataName = node.PreprovisioningNetworkDataName
nodeSetHostMap[node.HostName] = instanceSpec
}
spec.BaremetalSetTemplate.BaremetalHosts = nodeSetHostMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1197,8 +1197,6 @@ spec:
- subnetName
type: object
type: array
preprovisioningNetworkDataName:
type: string
userData:
properties:
name:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ var _ = Describe("Dataplane NodeSet Test", func() {
BaremetalSetTemplate: baremetalv1.OpenStackBaremetalSetSpec{
BaremetalHosts: nil,
OSImage: "",
UserData: nil,
NetworkData: nil,
AutomatedCleaningMode: "metadata",
ProvisionServerName: "",
ProvisioningInterface: "",
Expand Down Expand Up @@ -294,8 +292,6 @@ var _ = Describe("Dataplane NodeSet Test", func() {
AnsibleVars: nil,
},
ExtraMounts: nil,
UserData: nil,
NetworkData: nil,
Networks: []infrav1.IPSetNetwork{{
Name: "ctlplane",
SubnetName: "subnet1",
Expand Down Expand Up @@ -393,8 +389,6 @@ var _ = Describe("Dataplane NodeSet Test", func() {
BaremetalSetTemplate: baremetalv1.OpenStackBaremetalSetSpec{
BaremetalHosts: nil,
OSImage: "",
UserData: nil,
NetworkData: nil,
AutomatedCleaningMode: "metadata",
ProvisionServerName: "",
ProvisioningInterface: "",
Expand Down Expand Up @@ -437,8 +431,6 @@ var _ = Describe("Dataplane NodeSet Test", func() {
AnsibleVars: nil,
},
ExtraMounts: nil,
UserData: nil,
NetworkData: nil,
},
Env: nil,
PreProvisioned: true,
Expand Down Expand Up @@ -839,8 +831,6 @@ var _ = Describe("Dataplane NodeSet Test", func() {
BaremetalSetTemplate: baremetalv1.OpenStackBaremetalSetSpec{
BaremetalHosts: nil,
OSImage: "",
UserData: nil,
NetworkData: nil,
AutomatedCleaningMode: "metadata",
ProvisionServerName: "",
ProvisioningInterface: "",
Expand Down

0 comments on commit 7ce7b6a

Please sign in to comment.