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

[prometheus] Unable to Upgrade Prometheus Value Due to StatefulSet Validation Error #4333

Open
studentsignum opened this issue Mar 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@studentsignum
Copy link

studentsignum commented Mar 4, 2024

Describe the bug a clear and concise description of what the bug is.

The bug involves encountering an error while attempting to upgrade the Prometheus value using Helm. Despite meeting the documented compatibility requirements with Kubernetes version 1.19 or later, the upgrade process fails with a validation error related to the StatefulSet specification. Specifically, the error mentions an unknown field "minReadySeconds", indicating a discrepancy between the Helm chart and the Kubernetes version being used.

Upon further investigation, I found a recent commit update (Commit Link) in the Alertmanager chart (charts/alertmanager/values.yaml) introducing the minReadySeconds field. This field is referenced in the error message during the upgrade process but is not recognized, suggesting a discrepancy between the Helm chart and the Kubernetes version.

What's your helm version?

version.BuildInfo{Version:"v3.12.3", GitCommit:"3a31588ad33fe3b89af5a2a54ee1d25bfe6eaa5e", GitTreeState:"clean", GoVersion:"go1.20.7"}

What's your kubectl version?

Client Version: v1.21.1 Server Version: v1.21.14-eks-5e0fdde

Which chart?

prometheus

What's the chart version?

prometheus-25.8.2

How to reproduce it?

I get my current_values by this command

❯ helm show values prometheus-community/prometheus -n prometheus

After edit some configuration, I can't upgrade my helm

❯ helm upgrade prometheus prometheus-community/prometheus -n prometheus -f current_values.yaml
Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(StatefulSet.spec): unknown field "minReadySeconds" in io.k8s.api.apps.v1.StatefulSetSpec

Enter the command that you execute and failing/misfunctioning.

helm upgrade prometheus prometheus-community/prometheus -n prometheus -f current_values.yaml

@studentsignum studentsignum added the bug Something isn't working label Mar 4, 2024
@zeritti
Copy link
Member

zeritti commented Mar 4, 2024

The alertmanager chart should consider the k8s release at hand as minReadySeconds has been in beta since release 1.23 and GA since release 1.25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants