-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K8SPG-634: Auto schema creation #966
base: main
Are you sure you want to change the base?
Conversation
commit: 00ffb42 |
if cr.Spec.AutoCreateUserSchema != nil && *cr.Spec.AutoCreateUserSchema { | ||
annotations[naming.AutoCreateUserSchemaAnnotation] = "true" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need here check for operator version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, don't think so.
description: |- | ||
Whether or not the cluster has schemas automatically created for the user | ||
defined in `spec.users` for all of the databases listed for that user. | ||
type: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an example into cr.yaml
CHANGE DESCRIPTION
Problem:
Currently when users are created, you can't start using them right away, as they don't have permissions to use
public
schema. This breaks a lot of declarative flows. We want to automatically create schemas for users defined inspec.users
.Solution:
Utilize Crunchy feature to create schemas automatically by setting
postgres-operator.crunchydata.com/autoCreateUserSchema=true
annotation.CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
Config/Logging/Testability