You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do we have to define the input parameters instead of getting all the k=v pairs from the secret loaded ?
# Dummy examplegenerators:
- plugin:
configMapRef:
name: secret-var-plugin-generator# No input parameters is defined here as we would like to get all of them template:
metadata:
name: github-app-secretsspec:
destination:
server: "https://kubernetes.default.svc"namespace: jobssource:
repoURL: cnoe://manifestspath: "."kustomize:
patches:
- target:
kind: Jobname: github-app-secretspatch: |- - op: add path: /spec/template/spec/containers/0/env/- value: name: GITHUB_APP_ID value: '{{ .github_app_id | b64dec | trim }}' - op: add path: /spec/template/spec/containers/0/env/- value: name: GITHUB_WEBHOOK_SECRET value: '{{ .github_webhook_secret | b64dec | trim }}'
The text was updated successfully, but these errors were encountered:
This was to allow you to do a bit of namespacing on which parameters you get, even if you're using one instance of appset-secret-plugin for your whole cluster. In this repo, small-hack/argocd-apps you can see in my example of home-assistant I am grabbing only the parameters related to home assistant.
I'm quickly replying for heading out to work today, but what kind of solution would you be open to? Can you give me an example? (also thanks for all your other helpful Issues you've opened!)
I'm quickly replying for heading out to work today, but what kind of solution would you be open to?
After playing a bit with the Argocd Secret Plugin successfully (see an example here), I'm inclined to think that we should keep the code as such as declaring the parameters par tof the YAML generator section better document what we want to do ;-)
Note: Instead of passing all the parameters (aka this ticket), we could perhaps think about to improve what we have and to pass as parameter the name of the secret from where such k=v are stored. Why ? To be able to create several secrets containing k=v used for different ApplicationSet
Question
Why do we have to define the input parameters instead of getting all the k=v pairs from the secret loaded ?
The text was updated successfully, but these errors were encountered: