conversion-webhook

command module
v0.0.0-...-5ee3db7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 11 Imported by: 0

README

conversion-webhook

This is minimal Kubernetes CRD conversion webhook sample.

What's in it

It will install a CRD called NetworkAddress with two versions v1 and v2 into your cluster.

It will also install a conversion webhook for the CRD, the conversion logic can be found in api/v2/networkaddress_conversion.go.

No controller logic will be installed.

How to install

  1. Make sure your Kubernetes cluster has cert-manager v1.x installed (for webhook cert auto signing)
  2. Run make install deploy

Other notes

If you don't trust or cannot pull my pre-built image in Makefile, you can run make docker-build to build your own from source and replace the IMG in Makefile.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the conversion-webhook v1 API group +kubebuilder:object:generate=true +groupName=conversion-webhook.example.zqzten.io
Package v1 contains API Schema definitions for the conversion-webhook v1 API group +kubebuilder:object:generate=true +groupName=conversion-webhook.example.zqzten.io
v2
Package v2 contains API Schema definitions for the conversion-webhook v2 API group +kubebuilder:object:generate=true +groupName=conversion-webhook.example.zqzten.io
Package v2 contains API Schema definitions for the conversion-webhook v2 API group +kubebuilder:object:generate=true +groupName=conversion-webhook.example.zqzten.io

Jump to

Keyboard shortcuts

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