FairwindsOps / pluto

A cli tool to help discover deprecated apiVersions in Kubernetes
https://fairwinds.com
Apache License 2.0
2.14k stars 124 forks source link

CLI --option to silence the footer "Want more? Automate Pluto for free with Fairwinds Insights! 🚀 https://fairwinds.com/insights-signup/pluto 🚀" #460

Closed HariSekhon closed 1 year ago

HariSekhon commented 1 year ago

Is your feature request related to a problem? Please describe.

I am using this script to scan the files in various kustomizations throughout my work repo (itself a workaround to #444):

https://github.com/HariSekhon/DevOps-Bash-tools/blob/master/kubernetes/pluto_detect_kustomize_materialize.sh

which results in output like:

========================================
./jenkins-dev/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/jenkins-dev/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.

Want more? Automate Pluto for free with Fairwinds Insights!
 🚀 https://fairwinds.com/insights-signup/pluto 🚀

========================================
./ingress-nginx/uk-production/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/ingress-nginx/uk-production/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.

Want more? Automate Pluto for free with Fairwinds Insights!
 🚀 https://fairwinds.com/insights-signup/pluto 🚀

========================================
./ingress-nginx/us-staging/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/ingress-nginx/us-staging/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.

Want more? Automate Pluto for free with Fairwinds Insights!
 🚀 https://fairwinds.com/insights-signup/pluto 🚀

========================================
./ingress-nginx/us-dev/kustomization.yaml
Materialized YAML -> /Users/hari/github/work/k8s/ingress-nginx/us-dev/kustomization.materialized.yaml
There were no resources found with known deprecated apiVersions.

Want more? Automate Pluto for free with Fairwinds Insights!
 🚀 https://fairwinds.com/insights-signup/pluto 🚀

with lots of redundant advertising footers cluttering up the output.

Feature request for a CLI --switch to silence the footer than appears at the end of every pluto run:

Want more? Automate Pluto for free with Fairwinds Insights!
 🚀 https://fairwinds.com/insights-signup/pluto 🚀

Describe the solution you'd like

pluto detect-files --no-footer

or

pluto detect-files --quiet

Describe alternatives you've considered

I've tried without luck:

pluto detect-files -v 0

Even if I wasn't running multiple pluto commands it'd still be nice to be able to quiet the footer instead of seeing it every time.

It looks like 2>/dev/null will stop the footer being shown but I'd rather not throw the errors out with the bath water if it can be avoided.