Hello,
even in version 0.5.0, I can see:
{"level":"debug","ts":"2025-06-11T11:14:59.487243677Z","logger":"plugin-barman-cloud-lifecycle","msg":"generated patch","podName":"redmine-postgres-prod-test-1","caller":"/workspace/internal/cnpgi/operator/lifecycle.go:266","content":"[{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/limits/cpu\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/limits/memory\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/requests/cpu\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/requests/memory\"},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/startupProbe/periodSeconds\",\"value\":0},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/startupProbe/successThreshold\",\"value\":0},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/terminationMessagePath\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/terminationMessagePolicy\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/imagePullPolicy\"}]"}
{"level":"info","ts":"2025-06-11T11:14:59.876031308Z","msg":"Pre hook reconciliation start"}
or case with injected envs:
{"level":"debug","ts":"2025-06-11T11:18:35.482768894Z","logger":"plugin-barman-cloud-lifecycle","msg":"generated patch","podName":"redmine-postgres-prod-test-1","caller":"/workspace/internal/cnpgi/operator/lifecycle.go:266","content":"[{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/env/8/name\",\"value\":\"OMP_NUM_THREADS\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/env/8/value\"},{\"op\":\"add\",\"path\":\"/spec/initContainers/1/env/8/valueFrom\",\"value\":{\"resourceFieldRef\":{\"resource\":\"limits.cpu\",\"divisor\":\"0\"}}},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/env/9/name\",\"value\":\"SPOOL_DIRECTORY\"},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/env/9/value\",\"value\":\"/controller/wal-restore-spool\"},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/env/10/name\",\"value\":\"CUSTOM_CNPG_GROUP\"},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/env/10/value\",\"value\":\"postgresql.cnpg.io\"},{\"op\":\"add\",\"path\":\"/spec/initContainers/1/env/11\",\"value\":{\"name\":\"CUSTOM_CNPG_VERSION\",\"value\":\"v1\"}},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/limits/cpu\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/limits/memory\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/requests/cpu\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/resources/requests/memory\"},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/startupProbe/periodSeconds\",\"value\":0},{\"op\":\"replace\",\"path\":\"/spec/initContainers/1/startupProbe/successThreshold\",\"value\":0},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/terminationMessagePath\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/terminationMessagePolicy\"},{\"op\":\"remove\",\"path\":\"/spec/initContainers/1/imagePullPolicy\"}]"}
messages in plugin-barman-cloud preventing replicas to start. Despite it should be fixed by #378, it is not.
the env case can be workarounded by setting the env explicitly in cluster config. No idea how to deal with the others. Thanks.
Hello,
even in version 0.5.0, I can see:
or case with injected envs:
messages in plugin-barman-cloud preventing replicas to start. Despite it should be fixed by #378, it is not.
the env case can be workarounded by setting the env explicitly in cluster config. No idea how to deal with the others. Thanks.