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

[kube-prometheus-stack] fix failure-policy on patch-webhook job #4102

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jonasbadstuebner
Copy link
Contributor

@GMartinez-Sisti

What this PR does / why we need it

This PR fixes the following error message on the admission-patch:

kube-prometheus-stack-admission-patch-nsmmw {"level":"fatal","msg":"patch-failure-policy IgnoreOnInstallOnly is not valid","source":"cmd/patch.go:106","time":"2023-12-20T09:52:44Z"}

by not directly using the value from the HelmRelease-Values.
This error occurs, if you set .Values.prometheusOperator.admissionWebhooks.failurePolicy to IgnoreOnInstallOnly in the current version of the Chart.

It also adds a new helper function for determining the correct failurePolicy based on the values.

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Signed-off-by: Jonas Badstübner <jonas.badstuebner@hetzner-cloud.de>
@jkroepke
Copy link
Member

Pleas bump the chart version, thanks!

@Xtigyro
Copy link
Member

Xtigyro commented Jan 22, 2024

@DrBu7cher Please resolve the conflicts.

Signed-off-by: Jonas Badstübner <jonas.badstuebner@hetzner-cloud.de>
jonasbadstuebner and others added 3 commits January 22, 2024 10:20
Signed-off-by: Jonas Badstübner <jonas.badstuebner@hetzner-cloud.de>
Signed-off-by: Miroslav Hadzhiev <miroslav.hadzhiev@gmail.com>
Copy link

stale bot commented Mar 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

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.

None yet

3 participants