Skip to content

If I have ExternalSecretsOperator running in the management cluster, can Sveltos take secrets created in the management cluster by ESO and deploy those to managed cluster? #572

Answered by gianlucam76
gianlucam76 asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer is yes.

Let's say this is the secret External Secrets Operator created in the management cluster

apiVersion: v1
data:
  key1: dmFsdWUx
  key2: dmFsdWUy
kind: Secret
metadata:
  creationTimestamp: "2024-05-27T13:51:00Z"
  name: external-secret-operator
  namespace: default
  resourceVersion: "28731"
  uid: 99411506-8f5e-4846-9628-58f82b3d01be
type: Opaque

we can create a ConfigMap whose data section is a template

apiVersion: v1
kind: ConfigMap
metadata:
  name: replicate-external-secret-operator-secret
  namespace: default
  annotations:
    projectsveltos.io/template: "true"  # add annotation to indicate Sveltos content is a template
data:
  secret.yaml: |
    # ESOSecret no…

Replies: 1 comment

Comment options

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