Skip to content

ROX-14485: update monitoring psp#4655

Merged
Maddosaurus merged 3 commits intomasterfrom
mm/ROX-14485-fix-monitoring-psp
Feb 2, 2023
Merged

ROX-14485: update monitoring psp#4655
Maddosaurus merged 3 commits intomasterfrom
mm/ROX-14485-fix-monitoring-psp

Conversation

@Maddosaurus
Copy link
Contributor

@Maddosaurus Maddosaurus commented Feb 1, 2023

Description

Kubernetes 1.25 deprecated PSP (PodSecurityPolicies) altogether.
We had previously introduced switches to decide whether PSPs are generated for our deployments (see #3230 and #1747).
We did not introduce this change to our Monitoring setup, which this PR fixes.

I introduced a new env var, MONITORING_ENABLE_PSP, which decides whether PSPs are generated or not.
The env var defaults to false and needs to be explicitly enabled (e.g. for k8s < 1.25).
The ClusterRole was kept, as it is needed for Prometheus discovery features to work (more information). I only removed the PSP-relevant parts.

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

Most of the PR items don't apply as the monitoring charts are internal eng use only.

Testing Performed

Tested on Colima 1.25 and 1.24 locally, as well as an OpenShift 4.12 cluster.
In all cases, I deployed with and without generated PSPs and checked function of Prometheus.

@ghost
Copy link

ghost commented Feb 1, 2023

Images are ready for the commit at 9a264fe.

To use with deploy scripts, first export MAIN_IMAGE_TAG=3.73.x-601-g9a264feaac.

@Maddosaurus Maddosaurus requested a review from a team February 1, 2023 17:05
Copy link
Contributor

@vikin91 vikin91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good, but I am afraid that we will need to provide manual upgrade steps if this is used by customers.

Copy link
Contributor

@vikin91 vikin91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating based on the answer from the standup. Thanks!

@Maddosaurus Maddosaurus merged commit 0804d11 into master Feb 2, 2023
@Maddosaurus Maddosaurus deleted the mm/ROX-14485-fix-monitoring-psp branch February 2, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants