radondb / radondb-mysql-kubernetes

Open Source,High Availability Cluster,based on MySQL
Apache License 2.0
353 stars 83 forks source link

[feature] Support webhook. #486

Closed runkecheng closed 2 years ago

runkecheng commented 2 years ago

Is your feature request related to a problem? Please describe.

Used for parameter validating.

Describe the solution you'd like

Provide configurable items on values.go.

...
manager:
  ...
    enabledWebhooks: true
  ...
webhook:
  certManager:
    # If true, make sure that cert-manager has been installed.
    enabled: false
  # If empty and disable certManager, Helm will auto-generate these fields.
  caBundlePEM: |

  crtPEM: |

  keyPEM: |

Describe alternatives you've considered

Additional context

K8s Dynamic Admission Control, see doc

Uses:

Use helm template functions to generate ca and cert, see doc

image

runkecheng commented 2 years ago

Steps of manual operation:

  1. install certManager or provide a cert.
  2. kubectl kustomize config/default | kubectl appy -f -
  3. modify operator and deploy.