Skip to content

fix: make automountServiceAccountToken configurable #6497

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

Conversation

stefan-caraiman
Copy link
Contributor

Description

Fixes #6270

Type of change

What type of changes does your code introduce to the Prometheus operator? 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.)

Verification

Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

Make `automountServiceAccountToken` configurable for the Prometheus Operator StatefulSet

@stefan-caraiman stefan-caraiman requested a review from a team as a code owner April 10, 2024 09:06
@stefan-caraiman
Copy link
Contributor Author

@simonpasquier let me know if you want me to update anything else 👍

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Ideally I'd like to see new unit tests in pkg/prometheus/server/statefulset_test.go and pkg/prometheus/agent/statefulset_test.go.
If it's too much burden for you, I can add them for you but we'd have to wait a bit.

@pull-request-size pull-request-size bot added size/L and removed size/S labels Apr 16, 2024
@stefan-caraiman
Copy link
Contributor Author

Ideally I'd like to see new unit tests in pkg/prometheus/server/statefulset_test.go and pkg/prometheus/agent/statefulset_test.go. If it's too much burden for you, I can add them for you but we'd have to wait a bit.

unit tests added 👍 tried following the same pattern as with other unit tests, hopefully it makes sense

@simonpasquier
Copy link
Contributor

You'd need to run make --always-make format generate and commit the changes too.

@stefan-caraiman stefan-caraiman force-pushed the fix/configurable-automountServiceAccountToken branch 3 times, most recently from 3f2644b to 91996c2 Compare April 16, 2024 14:25
@stefan-caraiman stefan-caraiman force-pushed the fix/configurable-automountServiceAccountToken branch from 91996c2 to 733d2fe Compare April 16, 2024 14:26
@stefan-caraiman
Copy link
Contributor Author

done ✅

Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

Thanks!

@simonpasquier simonpasquier merged commit 3e7eb79 into prometheus-operator:main Apr 18, 2024
@stefan-caraiman stefan-caraiman deleted the fix/configurable-automountServiceAccountToken branch April 18, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow turning off automountServiceAccountToken for Prometheus SA
2 participants