Add advanced support to skip reconciliation cycle
Basic support to skip reconciliation cycle is provided by #658 (closed). There are more advanced scenario where a user would like to skip reconciliation cycle for configuration CRDs.
The proposal is to have the annotation stackgres.io/reconciliation-pause
with value true
on the object such that, if present, the controller will not perform the reconciliation cycle on this object and change behaviour. This annotation may be present on:
: like sginstanceprofile, sgbackupconfig, sgpgconfig and sgpoolingconfig
-
sginstanceprofile
CR resources: the operator will not modify the value of statefulset fields.spec.template.spec.containers.<index>.resources
in the reconciliation cycle for thosesgcluster
that uses suchsginstanceprofile
. -
sgpgconfig
CR resources: the operator will not modify the config annotation of patroni config endpoint in the reconciliation cycle for thosesgcluster
that uses suchsgpgconfig
. -
sgpoolingconfig
CR resources: the operator will not modify the pooling configmap in the reconciliation cycle for thosesgcluster
that uses suchsgpoolingconfig
. -
sgbackupconfig
CR resources: the operator will not modify the backup cronjob and any environment variable in the cluster statefulset for patroni container in the reconciliation cycle for thosesgcluster
that uses suchsgbackupconfig
. -
sgbackup
CR resources: the operator will not modify the backup job created in the reconciliation cycle for thosesgcluster
to which suchsgbackup
points to.
Edited by Matteo Melli