PostgreSQL operator upgrade 1.x to 2.x ability to specify tolerations for data move jobs
General
Escalation
General
Escalation
Description
Currently the operator creates two jobs cluster1-move-pgdata-dir and cluster1-move-pgbackrest-repo-dir for moving data directory and backrest repo to correct directories.
Unfortunately these jobs are not able to work in environments with dedicated kubernetes worker nodes protected by taints
Hi, the following options were added: .spec.dataSource.volumes.*.tolerations, .spec.dataSource.volumes.*.annotations, .spec.dataSource.volumes.*.labels These jobs are used in
Currently the operator creates two jobs
cluster1-move-pgdata-dir and cluster1-move-pgbackrest-repo-dir for moving data directory and backrest repo to correct directories.
Unfortunately these jobs are not able to work in environments with dedicated kubernetes worker nodes protected by taints
https://docs.percona.com/percona-operator-for-postgresql/2.0/update-data-volumes.html
We should have ability to specify tolerations, additional labels and annotations for such jobs:
https://github.com/percona/percona-postgresql-operator/blob/v2.2.0/internal/controller/postgrescluster/volumes.go#L478