Skip to content

Commit 3601882

Browse files
committed
Add Metal3 specific config items to BareMetalPlatformStatus
Adding config items required for a Baremetal IPI deployment to the BareMetalPlatformStatus CR. Based on enhancement request: openshift/enhancements#90
1 parent 59d6ba0 commit 3601882

File tree

3 files changed

+63
-4
lines changed

3 files changed

+63
-4
lines changed

config/v1/0000_10_config-operator_01_infrastructure.crd.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ spec:
123123
points to. It is the IP for a self-hosted load balancer in
124124
front of the API servers.
125125
type: string
126+
cacheURL:
127+
description: cacheURL is the location where images have been
128+
previously downloaded and available for faster image downloads
129+
within the cluster.
130+
type: string
131+
dhcpRange:
132+
description: dhcpRange is the IP address range on the provisioning
133+
subnet from which baremetal hosts can be assigned an IP address.
134+
type: string
126135
ingressIP:
127136
description: ingressIP is an external IP which routes to the
128137
default ingress controller. The IP is a suitable target of
@@ -137,6 +146,26 @@ spec:
137146
a DNS service is hosted as a static pod to serve those hostnames
138147
to the nodes in the cluster.
139148
type: string
149+
provisioningIP:
150+
description: provisioningIP is the IP address assigned to the
151+
provisioningInterface for provisioning the baremetal node.
152+
This IP address should be within the provisioning subnet,
153+
and outside of the DHCP range.
154+
type: string
155+
provisioningInterface:
156+
description: provisioningInterface is the name of the network
157+
interface on a Baremetal server connected to the provisioning
158+
network.
159+
type: string
160+
provisioningNetworkCIDR:
161+
description: provisioningNetworkCIDR is the network on which
162+
the baremetal nodes are provisioned. The provisioningIP and
163+
the IPs in the dhcpRange all come from within this network.
164+
type: string
165+
rhcosImageURL:
166+
description: rhcosImageURL is the URL for RHCOS Image for deploying
167+
new nodes in the cluster.
168+
type: string
140169
gcp:
141170
description: GCP contains settings specific to the Google Cloud
142171
Platform infrastructure provider.

config/v1/types_infrastructure.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,30 @@ type BareMetalPlatformStatus struct {
182182
// datacenter DNS, a DNS service is hosted as a static pod to serve those hostnames
183183
// to the nodes in the cluster.
184184
NodeDNSIP string `json:"nodeDNSIP,omitempty"`
185+
186+
// provisioningInterface is the name of the network interface on a Baremetal server connected
187+
// to the provisioning network.
188+
ProvisioningInterface string `json:"provisioningInterface"`
189+
190+
// provisioningIP is the IP address assigned to the provisioningInterface for provisioning
191+
// the baremetal node. This IP address should be within the provisioning subnet, and
192+
// outside of the DHCP range.
193+
ProvisioningIP string `json:"provisioningIP"`
194+
195+
// provisioningNetworkCIDR is the network on which the baremetal nodes are provisioned.
196+
// The provisioningIP and the IPs in the dhcpRange all come from within this network.
197+
ProvisioningNetworkCIDR string `json:"provisioningNetworkCIDR"`
198+
199+
// dhcpRange is the IP address range on the provisioning subnet from which baremetal hosts
200+
// can be assigned an IP address.
201+
DHCPRange string `json:"dhcpRange"`
202+
203+
// cacheURL is the location where images have been previously downloaded and available
204+
// for faster image downloads within the cluster.
205+
CacheURL string `json:"cacheURL,omitempty"`
206+
207+
// rhcosImageURL is the URL for RHCOS Image for deploying new nodes in the cluster.
208+
RHCOSImageURL string `json:"rhcosImageURL"`
185209
}
186210

187211
// OpenStackPlatformStatus holds the current status of the OpenStack infrastructure provider.

config/v1/zz_generated.swagger_doc_generated.go

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

0 commit comments

Comments
 (0)