Merge "Add support for extra BMO replacements"

This commit is contained in:
Zuul 2021-02-27 02:05:56 +00:00 committed by Gerrit Code Review
commit c0fcc8c37f
4 changed files with 102 additions and 0 deletions

View File

@ -23,6 +23,13 @@ spec:
provisioningInterface: "pxe"
provisioningIp: "10.23.25.102"
dhcpRange: "10.23.25.200,10.23.25.250"
ironicAutomatedClean: ""
httpPort: ""
ironicFastTrack: ""
deployKernelUrl: ""
deployRamdiskUrl: ""
ironicEndpoint: ""
ironicInspectorEndpoint: ""
# This section is only relevant when using Metal3 BareMetalHosts, and
# is consumed by the `hostgenerator-m3` function.

View File

@ -119,3 +119,18 @@ spec:
dhcpRange:
# TODO(mfuller): should this be enforced with a pattern?
type: string
ironicAutomatedClean:
type: boolean
httpPort:
type: integer
maximum: 65535
ironicFastTrack:
type: boolean
deployKernelUrl:
type: string
deployRamdiskUrl:
type: string
ironicEndpoint:
type: string
ironicInspectorEndpoint:
type: string

View File

@ -27,3 +27,13 @@ data:
IRONIC_VOLUME_CAPACITY: "10Gi"
IRONIC_STORAGE_CLASS_NAME: "default"
IRONIC_HOST_PATH: "/opt/metal3-dev-env/ironic/"
# Additional Baremetal Operator values overridable via the `replacements` entrypoint
# and networking catalogue
# IRONIC_AUTOMATED_CLEAN: “false”
# HTTP_PORT: "80"
# IRONIC_FAST_TRACK: "false"
# DEPLOY_KERNEL_URL: http://172.30.0.140:80/images/ipa-ubuntu-master.kernel
# DEPLOY_RAMDISK_URL: http://172.30.0.140:80/images/ipa-ubuntu-master.initramfs
# IRONIC_ENDPOINT: http://172.30.0.140:6385/v1/
# IRONIC_INSPECTOR_ENDPOINT: http://172.30.0.140:5050/v1/

View File

@ -39,3 +39,73 @@ replacements:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.DHCP_RANGE"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.ironicAutomatedClean
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.IRONIC_AUTOMATED_CLEAN"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.httpPort
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.HTTP_PORT"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.ironicFastTrack
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.IRONIC_FAST_TRACK"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.deployKernelUrl
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.DEPLOY_KERNEL_URL"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.deployRamdiskUrl
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.DEPLOY_RAMDISK_URL"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.ironicEndpoint
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.IRONIC_ENDPOINT"]
- source:
objref:
kind: NetworkCatalogue
name: networking
fieldref: spec.ironic.ironicInspectorEndpoint
target:
objref:
kind: ConfigMap
name: ironic-vars
fieldrefs: ["data.IRONIC_INSPECTOR_ENDPOINT"]