97377236ec
Transform stringData into base64-enc data manually so the annotation won't remain from the stringData. Closes: #424 Change-Id: I4bcfd57601d9199307c749e8e6deb5ee5445d821
21 lines
565 B
YAML
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"] |