-
Bug
-
Resolution: Done
-
Normal
-
None
-
GitOps Tangerine Sprint 17, GitOps Tangerine Sprint 18
Description of Problem
- SourceNamespaces with long project name causing Reconciler error
error reconciling roleBinding for "argocd-server": RoleBinding.rbac.authorization.k8s.io "<instance-name>_<project-name>" is invalid: metadata.labels: Invalid value: "<instance-name>_<project-name>": must be no more than 63 characters
Reproducibility
- Always
Prerequisites/Environment
- RHOCP `v4.14.33`
- GitOps 1.16
Steps to Reproduce
- Update ArgoCD CR, add SourceNamespaces with value like `grp-*`
- Create a project prefix `grp-` with a long name so that the generated rolebinding label would be >63 characters. example `grp-bk-time-deposit-servicing-activity-topic-streaming`
- Check operator pod logs:
error reconciling roleBinding for "argocd-server": RoleBinding.rbac.authorization.k8s.io "<instance-name>_<project-name>" is invalid: metadata.labels: Invalid value: "<instance-name>_<project-name>": must be no more than 63 characters
Expected Results
- SourceNamespace creates role and rolebinding successfully.
Actual Results
- Rolebinding creation failed with error.
Problem Analysis
- The label issue itself is Kubernetes-centric in a manner, since k8s has a limit on characters for label keys and values.
Root Cause
- Every resource gets a label of kubernetes with value same as resource name.
Workaround (If Possible)
- use short project name
Fix Approaches
- <If we decide to fix this bug, how will we do it?>
Acceptance Criteria
- ...
Definition of Done
- Code Complete:
- All code has been written, reviewed, and approved.
- Tested:
- Unit tests have been written and passed.
- Ensure code coverage is not reduced with the changes.
- Integration tests have been automated.
- System tests have been conducted, and all critical bugs have been fixed.
- Tested and merged on OpenShift either upstream or downstream on a local build.
- Documentation:
- User documentation or release notes have been written (if applicable).
- Build:
- Code has been successfully built and integrated into the main repository / project.
- Midstream changes (if applicable) are done, reviewed, approved and merged.
- Review:
- Code has been peer-reviewed and meets coding standards.
- All acceptance criteria defined in the user story have been met.
- Tested by reviewer on OpenShift.
- Deployment:
- The feature has been deployed on OpenShift cluster for testing.
- is related to
-
GITOPS-6707 Host name error for ApplicationSet Webhook Server route
-
- Closed
-