Skip to content

WIP: Allow creation of users through a job#358

Draft
burmanm wants to merge 5 commits intok8ssandra:masterfrom
burmanm:user_external_secrets
Draft

WIP: Allow creation of users through a job#358
burmanm wants to merge 5 commits intok8ssandra:masterfrom
burmanm:user_external_secrets

Conversation

@burmanm
Copy link
Copy Markdown
Contributor

@burmanm burmanm commented Jun 30, 2022

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)
  • CLA Signed: DataStax CLA

@burmanm burmanm force-pushed the user_external_secrets branch from 5ba2985 to 992b0f8 Compare January 16, 2023 07:11
@github-actions
Copy link
Copy Markdown

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

@burmanm
Copy link
Copy Markdown
Contributor Author

burmanm commented Jan 19, 2023

The new test will not pass without k8ssandra/k8ssandra-client#4

@adejanovski adejanovski added blocked Issues in the state 'blocked' and removed zh:In-Progress labels Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Issues in the state 'blocked'

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants