Sean Eagan 8a8b3e3d72 Externalize KRM function versions
This integrates the airshipctl change to externalize KRM
function versions [0].

The KRM function versions used in the manifests are updated to those
which the airshipctl deployment scripts now resolve to the "in tree"
locally built images, as both sourced via AIRSHIPCTL_REF.

[0]: https://review.opendev.org/c/airship/airshipctl/+/790507

Depends-On: https://review.opendev.org/c/airship/airshipctl/+/790507
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I61b29fda93b9d70c47612ebd1bfdcd348cc63a0f
2021-06-03 14:07:21 -05:00

42 lines
1.2 KiB
YAML

# These rules inject env vars into the workers.
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: workers-env-vars-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: localhost/replacement-transformer
replacements:
# Replace the proxy vars
- source:
objref:
name: env-vars-catalogue
fieldref: env.HTTP_PROXY
target:
objref:
kind: KubeadmConfigTemplate
name: worker-1
fieldrefs:
- "spec.template.spec.files[path=/etc/systemd/system/docker.service.d/http-proxy.conf].content%REPLACEMENT_HTTP_PROXY%"
- source:
objref:
name: env-vars-catalogue
fieldref: env.HTTPS_PROXY
target:
objref:
kind: KubeadmConfigTemplate
name: worker-1
fieldrefs:
- "spec.template.spec.files[path=/etc/systemd/system/docker.service.d/http-proxy.conf].content%REPLACEMENT_HTTPS_PROXY%"
- source:
objref:
name: env-vars-catalogue
fieldref: env.NO_PROXY
target:
objref:
kind: KubeadmConfigTemplate
name: worker-1
fieldrefs:
- "spec.template.spec.files[path=/etc/systemd/system/docker.service.d/http-proxy.conf].content%REPLACEMENT_NO_PROXY%"