Skip to content

codeandcode0x/helm-checkcrds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm Checkcrd

Checkcrd in Helm to check k8s crd whether if it's working.

Support resource

  • pod ( deployment, statefulset, controller pod )
  • configmap
  • service
  • job
  • secret
  • pv / pvc
  • crd ( nedd binding clusterRole ServiceAccount )

Install

➜ helm plugin install https://github.com/codeandcode0x/helm-checkcrds
Installed plugin: checkcrd

Usage

➜ helm checkcrd [OPTIONS]
Options:
  --crd      crd type (pod,configmap,crd,pv,pvc,secret)
  --name     crd name

when crd is pod, the name is k,v , eq label selector

Example

  • cli
➜ helm checkcrd --crd pod --name app=mysql
➜ helm checkcrd --crd configmap --name nginx-config
➜ helm checkcrd --crd secret --name db-token
...
  • shell script

infra.sh

#!/usr/bin/env sh
helm upgrade --install mariadb
helm upgrade --install nginx

app.sh

#!/usr/bin/env sh
helm checkcrd --crd pod --name app=mariadb
helm checkcrd --crd pod --name app=nginx
helm upgrade --install myapp

run.sh

./infra.sh &
./app.sh &

Maintainer

About

k8s crds check hook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages