ContainerSolutions / kubernetes-examples

Minimal self-contained examples of standard Kubernetes features and patterns in YAML
https://k8s-examples.container-solutions.com/
MIT License
1.4k stars 299 forks source link

really simple and inefficient script for checking api deprecation #8

Closed knelasevero closed 4 years ago

knelasevero commented 4 years ago

Also checks api deletion.

Using https://github.com/rikatz/kubepug

You need to install krew and then install kubepug.

Right now it does not support List kind for the templates, so it reports it as "api deleted" (Happens for our ResourceQuotas examples). There is an issue opened for that.

ianmiell commented 4 years ago

I made some changes, lmk what you think.

knelasevero commented 4 years ago

lgtm :)

knelasevero commented 4 years ago

@ianmiell I tested it locally and it fails if you don't have a valid k8s context setup. So I added a valid input file for the deprecations test in the script so it can work without necessarily pointing to a existing cluster.