Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

👀 ‼️ This projects aims to visualize critical parts of the admission webhook configuration resource

License

Notifications You must be signed in to change notification settings

Trendyol/kubectl-view-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubectl-view-webhook

GitHub go.mod Go version GitHub tag (latest SemVer) GitHub Workflow Status goreleaser Go Report Card GitHub

Visualize your webhook configurations in Kubernetes.

asciicast

Table of Contents

Installation

Go binaries are automatically built with each release by GoReleaser. These can be accessed on the GitHub releases page for this project.

There are several ways to install view-webhook. The recommended installation method is via krew.

Via Go

$ go get https://github.com/Trendyol/kubectl-view-webhook

Via source code

Option 1 (if you have a Go compiler and want to tweak the code):

$ git clone https://github.com/Trendyol/kubectl-view-webhook
$ cd kubectl-view-webhook
$ go build .

Via krew

Krew is a kubectl plugin manager. If you have not yet installed krew, get it at kubernetes-sigs/krew. Then installation is as simple as :

$ kubectl krew install view-webhook
$ kubectl view-webhook --help

Usage

By default, view-webhook will display all the Validating&Mutating Admission webhooks that available on your cluster.Also, you can get the detail of each one of them by giving its name.

$ kubectl view-webhook [flags]
$ kubectl view-webhook NAME [flags]

Table details

| Kind                                      | Name                       | Webhook             | Service                    | Resources                                    | Operations                                  | Remaing Day        | Active Namespaces    |
|-------------------------------------------|----------------------------|---------------------|----------------------------|----------------------------------------------|---------------------------------------------|--------------------|----------------------|
| Type of the webhook (Mutating/Validating) | Name of the webhook config | Name of the webhook | service details of webhook | Kubernetes Resources which webhook interests | Kubernetes Operations(CREATE/UPDATE/DELETE) | Cert Remaining Day | Activated namespaces |

License

This repository is available under the Apache License 2.0.