-
Notifications
You must be signed in to change notification settings - Fork 5
development
Naka Masato edited this page Dec 27, 2021
·
5 revisions
Version: v1.15.0
Used commands:
-
Initialize the project.
operator-sdk init --domain nakamasato.com --repo github.com/nakamasato/mysql-operator
-
Create API resources and their controllers.
operator-sdk create api --group mysql --version v1alpha1 --kind MySQL --resource --controller operator-sdk create api --group mysql --version v1alpha1 --kind MySQLUser --resource --controller
-
Create admission webhook.
-
--defaulting
(not used) -
--conversion
operator-sdk create webhook --group mysql --version v1alpha1 --kind MySQL --conversion --programmatic-validation
-
- https://book.kubebuilder.io/reference/using-finalizers.html
- https://zdyxry.github.io/2019/09/13/Kubernetes-%E5%AE%9E%E6%88%98-Operator-Finalizers/
- https://sdk.operatorframework.io/docs/building-operators/golang/advanced-topics/
- https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/
- https://docs.giantswarm.io/advanced/custom-admission-controller/
- https://sdk.operatorframework.io/docs/building-operators/golang/webhook
- https://zoetrope.github.io/kubebuilder-training/controller-runtime/webhook.html