d89a247ee1
Bringing from TM since with [0] TM types inherit directly from airshipctl workers-capm3. [0] https://review.opendev.org/c/airship/treasuremap/+/794678 Change-Id: Ib9b3e899efecd5c8c6b70237cb4935000215ba6b Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
22 lines
617 B
YAML
22 lines
617 B
YAML
# These rules inject env vars into the workers.
|
|
apiVersion: airshipit.org/v1alpha1
|
|
kind: ReplacementTransformer
|
|
metadata:
|
|
name: metal3machientemplate-replacements
|
|
annotations:
|
|
config.kubernetes.io/function: |-
|
|
container:
|
|
image: localhost/replacement-transformer
|
|
replacements:
|
|
- source:
|
|
objref:
|
|
name: networking
|
|
fieldref: spec.ironic.provisioningIp
|
|
target:
|
|
objref:
|
|
kind: Metal3MachineTemplate
|
|
name: worker-1
|
|
fieldrefs:
|
|
- "spec.template.spec.image.url%REPLACEMENT_PROVISIONING_IP%"
|
|
- "spec.template.spec.image.checksum%REPLACEMENT_PROVISIONING_IP%"
|