Kubernetes PreUpGrade (Checker)
KubePug/Deprecations is intended to be a kubectl plugin, which:
Just run kubectl krew install deprecations
If you want to verify the generated manifests by Helm, you can run the program as following:
helm template -f values.yaml .0 | kubepug --k8s-version v1.22.0 --input-file=-Change the arguments in kubepug program (and Helm template!) as desired!
Download the correct version from Releases page.
After that, the command can be used just as kubectl, but with the following flags:
…$ go install github.com/kubepug/kubepug@latestYou can check the status of a running cluster with the following command.
…You can verify files with the following:
$ kubepug --input-file=./deployment/ --error-on-deleted --error-on-deprecatedWith the command above
https://kubepug.xyz/data/data.json will be usedThis happens when you have a secure environment that does not have an internet connectivity.
The data.json file is generated every hour, based on the latest stable version of Kubernetes API.
You can download it from https://kubepug.xyz/data/data.json and move it to a safe location.
Then run kubepug pointing to the location of this file:
kubepug --k8s-version=v1.22 --database=location/of/your/data.jsonSteps to follow:
generator/ directorygit clone https://github.com/kubepug/kubepug
docker build -t generator -f generator/Dockerfile generatordocker run generator > data.jsonGenerator uses the latest stable Kubernetes API version, if you want the latest dev version you should run as:
docker run -e VERSION=master generator > data.jsonSecurely move the json file to your Air-Gapped environment, to the folder of your choosing. This folder will be used by kubepug.
Execute kubepug with the option database, like this
kubepug --k8s-version=v1.22 --database=location/of/your/data.json…As I've used this project to learn Go and also some Kubernetes client-go some parts of this plugin are based in Caio Begotti's Pod-Tree, Ahmet Balkan kubectl-tree and Bitnami Kubecfg
Logo based in Mão vetor criado por freepik - br.freepik.com
No open issues yet, or sync has not completed.