-
Notifications
You must be signed in to change notification settings - Fork 691
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
Strip strategic merge patch annotations #228
Conversation
} | ||
keys := []string{ | ||
"kubectl.kubernetes.io/last-applied-configuration", | ||
"kubecfg.ksonnet.io/last-applied-configuration", |
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.
Good catch!
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.
do you know any other tool that does something similar?
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.
Not that I know of.
Perhaps make a regex on *last-applied-configuration
?
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 suspect I'd regret that choice when somebody would report bewilderment at a stripped annotation with a similar name but with a different semantics.
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.
Perhaps check all annotations and strip anything that contains original plain text?
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.
that wouldn't work with "kubecfg.ksonnet.io/last-applied-configuration
since it's gzip compressed
} | ||
keys := []string{ | ||
"kubectl.kubernetes.io/last-applied-configuration", | ||
"kubecfg.ksonnet.io/last-applied-configuration", |
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.
Perhaps check all annotations and strip anything that contains original plain text?
bors r+ |
Build succeeded |
Closes #227