-
Story
-
Resolution: Done
-
Undefined
-
None
-
5
-
False
-
-
False
-
-
-
GitOps Scarlet Sprint 19, GitOps Scarlet Sprint 20, GitOps Scarlet Sprint 21
Background and Approach (Required)
- Namespace management feature was contributed by https://github.com/argoproj-labs/argocd-operator/pull/1687 and https://issues.redhat.com/browse/GITOPS-6179
- However, we were unable to add E2E tests to that repo, because this feature requires modifying the operator subscription (which is not supported via argocd-operator E2E tests)
- We should thus contribute comprehensive E2E tests for this feature to gitops-operator Ginkgo tests
- Tests should cover all aspects of feature
- Some example tests:
- Enable/disable namespace management and ensure that appropriate roles/bindings are added/removed from namespace
- Ensure that glob filter matching is supported
- Ensure that when the feature is disabled, or managedBy or modified, that roles/bindings are always cleaned up
- Security tests:
- Ensure that feature only works when namespace management env var is set
- Ensure that if ArgoCD CR does not have managedby, that roles are NOT added
- etc