Skip to content

Conversation

@akash-gautam
Copy link

Created a CRD named dummyDB, the CRD has four inputs:

  1. Replicas : to specify how many instances of db should run, used by controller to set replicas statefulset/deployment spec.
  2. Size: to specify the size of the db's storage, used by controller to create a pvc.
  3. AdminPassword: to specify the admin password, used by controller to create secret.
  4. GVK: to specify whether we should create a deployment or statefulset for the db, the controller acts accordingly.

The CR is made owner of all the resources using controllerutil.SetControllerReference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant