-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Validation webhook to reject invalid SSO configs in ArgoCD CR #2032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: Validation webhook to reject invalid SSO configs in ArgoCD CR #2032
Conversation
…goCD CR Signed-off-by: akhil nittala <nakhil@redhat.com>
📝 WalkthroughWalkthroughAdds declarative validation to the ArgoCD CRD and source marker to forbid setting Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…goCD CR Signed-off-by: akhil nittala <nakhil@redhat.com>
anandf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validation logic looks good to me. Please add E2E tests to confirm that the validation works as expected.
|
Looks good to me aswell. Let’s add some tests and merge it. |
…goCD CR Signed-off-by: akhil nittala <nakhil@redhat.com>
svghadi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks
What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
When both sso and oidc config is provided in argocd, we are not rejecting the request. so with this pr changes, we have implemented validation which rejects the request with argocd CR having both sso and oidc configuration.
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
https://issues.redhat.com/browse/GITOPS-8560
Fixes #?
https://issues.redhat.com/browse/GITOPS-8560
How to test changes / Special notes to the reviewer:
Summary by CodeRabbit
Bug Fixes
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.