Simple CLI that displays the owning top-level Kubernetes resources (e.g. Deployments, StatefulSets, ...) of PodDisruptionBudgets.
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 |
+-------------------------------+-----------+---------------------+-----------+
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