299b2833b2
This pins krm function calls to version `v2` which represents [0] [1] the latest 2.x.x semantic version. If we need to make breaking changes to any krm functions, that can now be done by incrementing their major version and thus not breaking these references. [0]: https://review.opendev.org/c/airship/airshipctl/+/762924 [1]: https://review.opendev.org/c/airship/airshipctl/+/780875 Closes: #419 Change-Id: I6cf6519511c77da6cac7e46a6b56ea338bcf150c
66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
# These rules inject env vars into the baremetal-operator function.
|
|
apiVersion: airshipit.org/v1alpha1
|
|
kind: ReplacementTransformer
|
|
metadata:
|
|
name: baremetal-operator-env-vars-replacements
|
|
annotations:
|
|
config.kubernetes.io/function: |-
|
|
container:
|
|
image: quay.io/airshipit/replacement-transformer:v2
|
|
replacements:
|
|
# Replace the proxy vars
|
|
- source:
|
|
objref:
|
|
name: env-vars-catalogue
|
|
fieldref: env.HTTP_PROXY
|
|
target:
|
|
objref:
|
|
kind: ConfigMap
|
|
name: ironic-vars
|
|
fieldrefs: ["data.HTTP_PROXY"]
|
|
- source:
|
|
objref:
|
|
name: env-vars-catalogue
|
|
fieldref: env.HTTPS_PROXY
|
|
target:
|
|
objref:
|
|
kind: ConfigMap
|
|
name: ironic-vars
|
|
fieldrefs: ["data.HTTPS_PROXY"]
|
|
- source:
|
|
objref:
|
|
name: env-vars-catalogue
|
|
fieldref: env.http_proxy
|
|
target:
|
|
objref:
|
|
kind: ConfigMap
|
|
name: ironic-vars
|
|
fieldrefs: ["data.http_proxy"]
|
|
- source:
|
|
objref:
|
|
name: env-vars-catalogue
|
|
fieldref: env.https_proxy
|
|
target:
|
|
objref:
|
|
kind: ConfigMap
|
|
name: ironic-vars
|
|
fieldrefs: ["data.https_proxy"]
|
|
- source:
|
|
objref:
|
|
name: env-vars-catalogue
|
|
fieldref: env.NO_PROXY
|
|
target:
|
|
objref:
|
|
kind: ConfigMap
|
|
name: ironic-vars
|
|
fieldrefs: ["data.NO_PROXY"]
|
|
- source:
|
|
objref:
|
|
name: env-vars-catalogue
|
|
fieldref: env.no_proxy
|
|
target:
|
|
objref:
|
|
kind: ConfigMap
|
|
name: ironic-vars
|
|
fieldrefs: ["data.no_proxy"]
|