Skip to content

equinix/deprapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeprAPI

Interrogates your tiller for deprecated resources

Usage

  1. Setup python3 vend: python3 -m venv venv
  2. Activate venv: . venv/bin/activate
  3. Install requirements: pip install -r requirements.txt
  4. Switch to your favorite kubectl context: kubectl config use-context mycontext
  5. Run the tool: python deprapi.py --namespace mytillernamespace

Example output

INFO:deprapi:Release taiga has deprecated apps/v1beta2.Deployment events
INFO:deprapi:Release taiga has deprecated apps/v1beta2.Deployment postgres
INFO:deprapi:Release taiga has deprecated apps/v1beta2.Deployment rabbitmq
INFO:deprapi:Release taiga has deprecated apps/v1beta2.Deployment redis
INFO:deprapi:Release taiga has deprecated apps/v1beta2.Deployment taiga
ERROR:deprapi:Release taiga uses deprecated APIs

This means that you have a release named taiga in your tiller, which uses (several) deprecated apps/v1beta2 Deployments.

How to fix

Upgrade your releases using charts which carry the right API Versions.

What if you don't

The resources will probably survive a k8s upgrade, but Helm will not be able to manage (ie, upgrade) these resources, as it will try to query for the deprecated API groups, which will fail. You will need to upgrade these resources before upgrading to newer k8s.

About

Find Helm releases using deprecated APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages