# 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: combined-target-secrets fieldref: ".secretGroups.[name=targetSshSecrets].values.[name=privateKey].data" target: objref: kind: Secret name: hco-ssh-auth fieldrefs: - "data.ssh-privatekey%REPLACEMENT_SSH_PRIVATEKEY%"