Skip to content
/ patch Public

Kubernetes patch operator. Fork from redhat-cop/patch-operator.

License

Notifications You must be signed in to change notification settings

hb-chen/patch

Repository files navigation

Patch Operator

Kubernetes patch operator, fork from redhat-cop/patch-operator.

Install

cert-manager

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml

patch-operator

make deploy IMG=registry.cn-hangzhou.aliyuncs.com/hb-chen/patch-operator:latest@sha256:3ff7d9b62b6f8a9a9ef12ce49ebbb2050236bd71d214f7efc8d33ae6eb9d44c0

samples

# apply inject webhook
kubectl apply -n patch-system -f config/samples/01_webhook_inject.yaml

kubectl apply -n patch-system -k config/samples
source-object-name-0=patch-controller-manager
source-object-name-1=patch-system
source-object-name-2=patch-controller-manager

Kubebuilder

kubebuilder init --domain hbchen.com --repo github.com/hb-chen/patch --plugins=go/v4-alpha
kubebuilder create api --group patch --version v1alpha1 --kind Patch
kubebuilder create webhook --group patch --version v1alpha1 --kind Patch  --conversion --defaulting --programmatic-validation
make manifests

make install 

make run
make docker-build docker-push IMG=registry.cn-hangzhou.aliyuncs.com/hb-chen/patch-operator:latest

make deploy IMG=registry.cn-hangzhou.aliyuncs.com/hb-chen/patch-operator:latest

About

Kubernetes patch operator. Fork from redhat-cop/patch-operator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published