Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addon/podsecuritypolicies: Add projected volumes permission #1572

Merged
merged 1 commit into from
Jan 4, 2022
Merged

addon/podsecuritypolicies: Add projected volumes permission #1572

merged 1 commit into from
Jan 4, 2022

Conversation

ArthurSens
Copy link
Member

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

The operator started using projected volumes for Prometheus and Alertmanager(See prometheus-operator/prometheus-operator#4427 and prometheus-operator/prometheus-operator#4449). This PR updates the podsecuritypolicy addon, adding the new required permissions

Type of change

What type of changes does your code introduce to the kube-prometheus? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

Please put a one-line changelog entry below. Later this will be copied to the changelog file.

Add projected volumes permissions to podsecuritypolicies addon

name: 'alertmanager-psp',
},
spec+: {
volumes+: ['projected'],
Copy link
Member

Choose a reason for hiding this comment

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

Why not just add it into restrictedPodSecurityPolicy.spec.volumes (L15-L21)?

Copy link
Member Author

Choose a reason for hiding this comment

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

It would give permission to other components that don't use projected volumes, but yeah... I think that is not a big deal.

I'll change this again

@paulfantom paulfantom merged commit 529739d into prometheus-operator:main Jan 4, 2022
@ArthurSens ArthurSens deleted the as/projected-psp branch January 4, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants