cass-operator icon indicating copy to clipboard operation
cass-operator copied to clipboard

WIP: Allow creation of users through a job

Open burmanm opened this issue 3 years ago • 2 comments

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

burmanm avatar Jun 30 '22 10:06 burmanm

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

github-actions[bot] avatar Jan 16 '23 07:01 github-actions[bot]

The new test will not pass without https://github.com/k8ssandra/k8ssandra-client/pull/4

burmanm avatar Jan 19 '23 15:01 burmanm