chore: deprecate monitoring.enablePodMonitor in Cluster and Pooler#8753
chore: deprecate monitoring.enablePodMonitor in Cluster and Pooler#8753mnencia merged 8 commits intocloudnative-pg:mainfrom
monitoring.enablePodMonitor in Cluster and Pooler#8753Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
4f4469f to
c80ebc6
Compare
spec.monitoring.enablePodMonitor
spec.monitoring.enablePodMonitormonitoring.enablePodMonitor in Cluster and Pooler
|
I think we should backport this patch to give users more time to update. |
|
/test |
|
@gbartolini, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18280849444 |
|
while working on the helm chart PR, I noticed I missed deprecating a few other related fields, given that this is still in flight I'll update this pr. |
|
@phisco I have added a draft of documentation. However, could you please add a warning/notice to users that still set the option? |
|
@gbartolini, just to be sure, you mean through the validating webhook, right? |
|
I think a webhook now is fine, as long as when we decomission support for enable pod monitor, we remove the ownership from the cluster and detach the pod monitor resource (unless you have better ideas). In the meantime we will just start telling users to manually configure them. The important thing for us is that it is clear that we won't invest in this feature anymore as it is not our domain. |
6c55ce4 to
8215481
Compare
|
/test |
|
@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/18469731730 |
Mark the `enablePodMonitor` field as deprecated in both Cluster and Pooler monitoring configuration. This field will be removed in future releases, and users should create PodMonitor resources manually if needed. The deprecation notice has been added to: - API type definitions (cluster_types.go and pooler_types.go) - Generated CRD manifests for both Clusters and Poolers Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
…8753) Mark the `enablePodMonitor` field as deprecated in both `Cluster` and `Pooler` monitoring configuration. This field will be removed in future releases, and users should create `PodMonitor` resources manually if needed. The deprecation notice has been added to: - API type definitions (`cluster_types.go` and `pooler_types.go`) - Generated CRD manifests for both Clusters and Poolers Documentation has been updated accordingly. Closes #8075 Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> (cherry picked from commit 232979c)
…8753) Mark the `enablePodMonitor` field as deprecated in both `Cluster` and `Pooler` monitoring configuration. This field will be removed in future releases, and users should create `PodMonitor` resources manually if needed. The deprecation notice has been added to: - API type definitions (`cluster_types.go` and `pooler_types.go`) - Generated CRD manifests for both Clusters and Poolers Documentation has been updated accordingly. Closes #8075 Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> (cherry picked from commit 232979c)
…8753) Mark the `enablePodMonitor` field as deprecated in both `Cluster` and `Pooler` monitoring configuration. This field will be removed in future releases, and users should create `PodMonitor` resources manually if needed. The deprecation notice has been added to: - API type definitions (`cluster_types.go` and `pooler_types.go`) - Generated CRD manifests for both Clusters and Poolers Documentation has been updated accordingly. Closes #8075 Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> (cherry picked from commit 232979c)
Personally I would much rather that CNPG removes the pod monitor instead of detaching ownership so it becomes clear immediately during testing of the new operator that you missed something important instead of silently continuing to receive metrics for existing resources but having unmanaged podmonitors all of a sudden. |
…loudnative-pg#8753) Mark the `enablePodMonitor` field as deprecated in both `Cluster` and `Pooler` monitoring configuration. This field will be removed in future releases, and users should create `PodMonitor` resources manually if needed. The deprecation notice has been added to: - API type definitions (`cluster_types.go` and `pooler_types.go`) - Generated CRD manifests for both Clusters and Poolers Documentation has been updated accordingly. Closes cloudnative-pg#8075 Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
Mark the
enablePodMonitorfield as deprecated in bothClusterandPoolermonitoring configuration. This field will be removed in future releases, and users should createPodMonitorresources manually if needed.The deprecation notice has been added to:
cluster_types.goandpooler_types.go)Documentation has been updated accordingly.
Closes #8075