Skip to content

external secrets operator json to yaml conversion #1

Discussion options

You must be logged in to vote
kind: ExternalSecret
metadata:
  name: my-infra-operator-config
  namespace: my-infra
spec:
  refreshInterval: 1m
  secretStoreRef:
    name: secretstore-my-infra
    kind: SecretStore
  target:
    name: config-test
    creationPolicy: Owner
    template:
      data:
        bmuConfig: "{{ .config }}"
        config.yaml: "{{ .config | fromJson | toYaml }}"
  data:
  - secretKey: config
    remoteRef:
      key: config-secrets

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marcincubernews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants