a65a7e155b
Relates-To: #524 Signed-off-by: Sean Eagan <seaneagan1@gmail.com> Change-Id: I7e811835ae1e5ab2cab65c398c53126f3a632405
24 lines
789 B
YAML
24 lines
789 B
YAML
# These rules inject host-specific information from the `host-catalogue`
|
|
# into the hostgenerator-m3 function's Template plugin config.
|
|
apiVersion: airshipit.org/v1alpha1
|
|
kind: ReplacementTransformer
|
|
metadata:
|
|
# NOTE: change this when copying this example
|
|
name: hardwareprofile-example-replacements
|
|
annotations:
|
|
config.kubernetes.io/function: |-
|
|
container:
|
|
image: localhost/replacement-transformer
|
|
replacements:
|
|
- source:
|
|
objref:
|
|
# NOTE: change this to match your hardwareProfile's metadata.name
|
|
name: hardwareprofile-example
|
|
fieldref: "{.hardwareProfile}"
|
|
target:
|
|
objref:
|
|
kind: Templater
|
|
name: m3-host-template
|
|
# NOTE: change "example" below when copying this example
|
|
fieldrefs: ["{.values.hardwareProfiles.example}"]
|