PostgreSQL operator upgrade 1.x to 2.x ability to specify tolerations for data move jobs

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

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

Environment

None

AFFECTED CS IDs

CS0042233

Activity

Slava Sarzhan May 22, 2024 at 6:48 AM

Hi, the following options were added:
.spec.dataSource.volumes.*.tolerations, .spec.dataSource.volumes.*.annotations,
.spec.dataSource.volumes.*.labels
These jobs are used in

Done

Details

Assignee

Reporter

Needs QA

Yes

Needs Doc

Yes

Story Points

Fix versions

Affects versions

Priority

Smart Checklist

Created November 29, 2023 at 12:21 PM
Updated July 1, 2024 at 1:36 PM
Resolved June 28, 2024 at 10:18 PM