pdb-pods-owners-discovery

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 12 Imported by: 0

README

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 git@github.com:oboukili/pdb-pods-owners-discovery

Then build the CLI

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL