-
Bug
-
Resolution: Done
-
Major
-
1.6.2
-
3
-
False
-
None
-
False
-
-
-
-
GITOPS Sprint 227, GITOPS Sprint 231
Description of problem:
Environment variable "ARGOCD_GIT_MODULES_ENABLED" can only be set on pod "openshift-gitops-repo-server" and not on the "ApplicationSet controller pod".
As a result, when using the Git Generator, Git submodules are cloned during the generation of child applications because the variable is missing from the ApplicationSet controller environment.
Prerequisites (if any, like setup, operators/versions):
Openshift 4.10.21
Red Hat OpenShift GitOps 1.6.2
Steps to Reproduce
1. Initialize a Git repository and create one or more sub-modules inside.
2. Create an ApplicationSet using the Git generator to automatically create application parameters from Yaml/JSON files hosted in the repository
3. Deploy that ApplicationSet to the cluster
Actual results:
The Git generator will clone recursively the repository with all submodules.
If credentials required to clone these submodules were not configured in ArgoCD, the application generation will fail.
Expected results:
When variable ARGOCD_GIT_MODULES_ENABLED is set, the ApplicationSet controller should successfully generate child applications from the cloned repository. No submodule should be cloned in the process.