-
Notifications
You must be signed in to change notification settings - Fork 3
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
BC-7024-migration-to-ionos-postgres-dev #834
Conversation
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.
it's a great idea but, the looping part for the ansible task it's not so great and it's also violating the part that at least the creating of thing should be in the ansible role where it's needed.
For example the creating and initzialising of the Postgres DB for the calendar shoud be in the calendar ansible role.
Putting that part in each role would result in many redundancies. The role is more of a replacement for dof_postgres, which previously created the database deployment needed for the applications (and a schema specific for erwinidm). The specific initialization parts are still in the roles. |
…est-merge-and-restore
kubeconfig: ~/.kube/config | ||
namespace: "{{ NAMESPACE }}" | ||
template: secret-database.yml.j2 | ||
when: db_secret_present.resources|length == 0 |
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.
does that really work if the operator is not fast enough?
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.
You probably mean the onepassword-operator, right? The secret checked here is not managed by it. There are two separate secrets: One coming from 1Password with the credentials for the whole Postgres cluster and one with the branch/database specific credentials that is created directly with a random password.
Description
Switch to IONOS Postgres Cluster for the dev stage. Automatically create and delete branch- and application-specific databases and users for calendar, hydra and erwinidm.
WITH_DATABASES
intoWITH_MONGO_DATABASES
andWITH_POSTGRES_DATABASES
to control them individuallyWITH_POSTGRES_DATABASES
and activate newWITH_BRANCH_POSTGRES_DB_MANAGEMENT
WITH_BRANCH_POSTGRES_DB_MANAGEMENT
) overwrite the database config/credentials for erwinidm, calendar (see PR BC-7024-migration-to-ionos-postgres-dev schulcloud-calendar#160) and hydraclean_workflow
for triggering the suspended job and waiting for it's completion (=deletion)Links to Tickets or other pull requests
OPS-6241
hpi-schul-cloud/schulcloud-calendar#160
Changes
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Screenshots of UI changes
Approval for review