-
Notifications
You must be signed in to change notification settings - Fork 261
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
feat: Add ability to hide certain annotations on secret resources #577
Conversation
Quality Gate passedIssues Measures |
@CodiumAI-Agent /review |
PR Reviewer Guide 🔍
|
Hi @pasha-codefresh, sorry for the nudge 👉 😅. Did you get a chance to review it again? |
@svghadi sorry, had urgent work to do, i will review it tomorrow |
Hey @pasha-codefresh, were you able to review it again by any chance? thanks in advance. |
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
d98e37a
to
2dd3ac2
Compare
pkg/diff/diff.go
Outdated
@@ -969,10 +969,10 @@ func CreateTwoWayMergePatch(orig, new, dataStruct interface{}) ([]byte, bool, er | |||
return patch, string(patch) != "{}", nil | |||
} | |||
|
|||
// HideSecretData replaces secret data values in specified target, live secrets and in last applied configuration of live secret with stars. Also preserves differences between | |||
// HideSecretData replaces secret data & optional annotations values in specified target, live secrets and in last applied configuration of live secret with stars. Also preserves differences between |
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.
I kinda object to Hide
as a verb, this appears to be closer to Mask
than Hide
.
That appears to be a preexisting condition, but if I inherited this code, I'd want to change it.
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Signed-off-by: Siddhesh Ghadi <sghadi1203@gmail.com>
Quality Gate passedIssues Measures |
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
Taking one more day for manual testing, but overall LGTM to me |
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, thank you a lot
Related to argoproj/argo-cd#15693.
This PR implements core logic from argoproj/argo-cd#hide-annotations.md proposal to hide annotations on secret resources.
This change will be integrated with Argo CD via argoproj/argo-cd#18216.
Integration results:
mask-annotations.mov