airshipctl/manifests/function/ephemeral/replacements/stringData-encode.yaml
Graham Steffaniak 97377236ec Update ephemeral-bmc-secret to use base64 data
Transform stringData into base64-enc data manually so the
annotation won't remain from the stringData.

Closes: #424
Change-Id: I4bcfd57601d9199307c749e8e6deb5ee5445d821
2021-06-07 15:17:17 -05:00

21 lines
565 B
YAML

# These rules inject networking info artifacts into the ephemeral function.
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: secret-encode
annotations:
config.kubernetes.io/function: |-
container:
image: localhost/replacement-transformer
replacements:
# converts and moves stringData to data field
- source:
objref:
kind: Secret
name: ephemeral-bmc-secret
fieldref: stringData.userData
target:
objref:
name: ephemeral-bmc-secret
kind: Secret
fieldrefs: ["data.userData"]