Skip to content

Simple CLI that displays the owning top-level Kubernetes resources (e.g. Deployments, StatefulSets, ...) of PodDisruptionBudgets.

License

Notifications You must be signed in to change notification settings

oboukili/pdb-pods-owners-discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDB Pods Owners Discovery

Simple CLI that displays the owning top-level Kubernetes resources (e.g. Deployments, StatefulSets, ...) of PodDisruptionBudgets.

Usage

The CLI will use your usual .kubeconfig file to authenticate against a Kubernetes cluster.

$ ./pdb-pods-owners-discovery
+-----------------------------------------------------------------------------+
| Kubernetes resources impacted by active PodDisruptionBudgets                |
+-------------------------------+-----------+---------------------+-----------+
| NAME                          | NAMESPACE | GROUP VERSION KIND  | PDB       |
+-------------------------------+-----------+---------------------+-----------+
| argocd-dex-server             | argocd    | apps/v1/Deployment  | test-aac2 |
| argocd-redis                  | argocd    | apps/v1/Deployment  | test-aac2 |
| argocd-repo-server            | argocd    | apps/v1/Deployment  | test-aac2 |
| argocd-server                 | argocd    | apps/v1/Deployment  | test-aac2 |
| private-git-repository        | argocd    | apps/v1/Deployment  | test-aac2 |
| argocd-application-controller | argocd    | apps/v1/StatefulSet | test-aac2 |
+-------------------------------+-----------+---------------------+-----------+

Building

Clone the repository within your GOPATH

mkdir -p $GOPATH/src/github.com/oboukili; cd $GOPATH/src/github.com/oboukili
git clone [email protected]:oboukili/pdb-pods-owners-discovery

Then build the CLI

cd $GOPATH/src/github.com/oboukili/pdb-pods-owners-discovery
go build

About

Simple CLI that displays the owning top-level Kubernetes resources (e.g. Deployments, StatefulSets, ...) of PodDisruptionBudgets.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages