cockroachdb / cockroach-operator

k8s operator for CRDB
Apache License 2.0
282 stars 94 forks source link

How to define users via configuration? #896

Open ahgraber opened 2 years ago

ahgraber commented 2 years ago

I am using the gitops tool flux to manage my kubernetes cluster. I have installed the cockroach operator and deployed a cluster based on the example manifest.

The cockroach operator documentation suggests manually adding users via the command line. Given that the k8s cluster is gitops-managed, I would prefer to provide a configMap/Secret or hack something using an initContainer to provision users.
Is this possible?

nick4fake commented 1 year ago

There should probably be a custom resource for User creation