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

22 lines
569 B
YAML

# These rules inject env vars into the k8scontrol function.
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: hco-generated-ssh-key-replacements
annotations:
config.kubernetes.io/function: |-
container:
image: localhost/replacement-transformer
replacements:
- source:
objref:
kind: VariableCatalogue
name: generated-secrets
fieldref: "{.sshKeys.privateKey}"
target:
objref:
kind: Secret
name: hco-ssh-auth
fieldrefs:
- "data.ssh-privatekey%REPLACEMENT_SSH_PRIVATEKEY%"