In Argo - ApplicationSet Controller there is a "Pull Request Generator".
I would like to get the pull request number, git sha - "{{number}}" {{head_sha}} in a configMap. I am using kustomize. and I am trying to use the configMapGenerator
cat <<EOF >.env
PULL_REQUEST_NUMBER
GIT_SHA
cat <<EOF >./kustomization.yaml
configMapGenerator:
- name: example-configmap-1
envs:
- .env
EOF
But am not sure how to link from the applicationSet to get in environment variables to get in kustomize and finaly in the configMap