-
Notifications
You must be signed in to change notification settings - Fork 102
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
How to ignore deployment revision and restartedat #74
Comments
Hi, what do you mean by "ignoring" the paths? Do you want to keep them in the resulting yaml? |
I want to build a kubectl-neat that removes these properties. Currently I do it manually with grep. |
Hi, |
As a user of kubectl-neat-diff I think there's good reason for a general feature, like @AssafKatz3 suggests. My preference would be to configure additional fields to filter out of the resulting YAML through a config file like In my use case, I have some auto-generated annotations of SHASUMs that I'd like to exclude. |
Thanks for the suggestions! sounds like a useful feature. If anyone wants to implement it, I'm happy to help |
How to implement this feature, please give some suggestions |
@jialechan I think what we're describing here is a configuration file for kubectl-neat that contains a list of paths to remove. currently the metadata cleaning is hardcoded here: https://github.com/itaysk/kubectl-neat/blob/master/cmd/neat.go#L93 |
hi,
how can I extend the code so that it ignores the following k8s Deployments properties
metatdata.annotations.deployment.kubernetes.io/revision
spec.template.metadata.annotations.kubectl.kubernetes.io/restartedAt
If you point me in the right direction I can do the change myself.
Thank you.
The text was updated successfully, but these errors were encountered: