cass-operator
cass-operator copied to clipboard
WIP: Allow creation of users through a job
What this PR does: This is WIP of the job approach to creating users, allowing external secrets resources. The CRDs will change, this is just to show it could be done without disabling the original behavior (SuperuserSecretname can now be left empty, if UserInfo is provided and it won't be generated).
There are other secrets in the project also, this PR will not touch those (that will be next PRs) - but instead only move the users creation (currently only superusers) towards a job, using modifications in the k8ssandra-client.
Also, fixes a bug that causes CreateUsers and upsertUsers to be called against Cassandra instance on every reconcile invocation.
Which issue(s) this PR fixes:
Fixes #
Checklist
- [ ] Changes manually tested
- [ ] Automated Tests added/updated
- [ ] Documentation added/updated
- [ ] CHANGELOG.md updated (not required for documentation PRs)
- [x] CLA Signed: DataStax CLA
No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged
The new test will not pass without https://github.com/k8ssandra/k8ssandra-client/pull/4