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

jsonnet: allow rollout-operator to be used as webhook endpoint #8743

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

56quarters
Copy link
Contributor

@56quarters 56quarters commented Jul 16, 2024

What this PR does

This change adds jsonnet configuration that allows the rollout-operator to be used as a validating or mutating webhook for changes to statefulsets. This is required to use the no-downscale or prepare-downscale labels on stateful components.

This doesn't make any changes to the functionality used internally at Grafana or make anything more configurable. For example, this jsonnet still has the rollout-operator create self-signed certificates for the HTTPS webhook endpoints.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@56quarters 56quarters force-pushed the 56quarters/oss-rollout-webhooks branch 2 times, most recently from de4935a to fd54482 Compare July 16, 2024 16:16
@56quarters 56quarters added enhancement New feature or request jsonnet helm labels Jul 16, 2024
This change adds jsonnet configuration that allows the rollout-operator to be
used as a validating or mutating webhook for changes to statefulsets. This is
required to use the `no-downscale` or `prepare-downscale` labels on stateful
components.

This doesn't make any changes to the functionality used internally at Grafana
or make anything more configurable. For example, this jsonnet still has the
rollout-operator create self-signed certificates for the HTTPS webhook
endpoints.

Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
@56quarters 56quarters force-pushed the 56quarters/oss-rollout-webhooks branch from f622e14 to 832f587 Compare July 16, 2024 16:54
@56quarters
Copy link
Contributor Author

56quarters commented Jul 16, 2024

Note that the test changes required for this seem to have uncovered a bug with the helm metamonitoring setup: namespaces set on objects that should not have namespaces.

@56quarters 56quarters marked this pull request as ready for review July 16, 2024 17:43
@56quarters 56quarters requested a review from a team as a code owner July 16, 2024 17:43
Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
Copy link
Contributor

@seizethedave seizethedave left a comment

Choose a reason for hiding this comment

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

It looks good to me.

@56quarters 56quarters merged commit 0e8c09f into main Jul 17, 2024
31 checks passed
@56quarters 56quarters deleted the 56quarters/oss-rollout-webhooks branch July 17, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request helm jsonnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants