Given I need to automate secrets for GitOps
When I add a new secret to the secrets folder
Then I want the GitHub action to generate and commit it without hardcoding
AC:
Do it in Bash
iterate through secrets folder and create sealed secrets and commit
get namespace out of secret
first two words are folders in kustomize and eg secret name servicemesh-linkerd-secret-here
Given I need to automate secrets for GitOps When I add a new secret to the secrets folder Then I want the GitHub action to generate and commit it without hardcoding
AC:
.github/workflows/secrets
`kubeseal <secrets/tap-injector-k8s-tls.yaml >kube-infra/kustomize/service-mesh/linkerd/overlays/demo/tap-injector-k8s-tls.yaml --format yaml --controller-namespace security
git add kube-infra/kustomize/dns-infra/external-dns-aws/overlays/demo/aws-dns-creds-sealed.yaml`