diff --git a/templates/argo-additional-rbac.yaml b/templates/argo-additional-rbac.yaml index 0b290f9..4ab1151 100644 --- a/templates/argo-additional-rbac.yaml +++ b/templates/argo-additional-rbac.yaml @@ -54,4 +54,13 @@ rules: - delete - list - patch - +- apiGroups: + - bitnami.com + resources: + - sealedsecrets + verbs: + - create + - get + - delete + - list + - patch diff --git a/templates/argo-cd/prepare-argocd-wftpl.yaml b/templates/argo-cd/prepare-argocd-wftpl.yaml index 68926f0..c742dde 100644 --- a/templates/argo-cd/prepare-argocd-wftpl.yaml +++ b/templates/argo-cd/prepare-argocd-wftpl.yaml @@ -69,6 +69,11 @@ spec: if [[ $? != 0 ]]; then ./argocd proj create openstack --dest "*,*" --src "*" --allow-cluster-resource "*/*" fi + + ./argocd proj get sealed-secrets + if [[ $? != 0 ]]; then + ./argocd proj create sealed-secrets --dest "*,*" --src "*" --allow-cluster-resource "*/*" + fi env: - name: ARGO_SERVER value: '{{workflow.parameters.argo_server}}'