-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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] - Include v1beta1 AlertmanagerConfig crd #3938
Conversation
Hi @Allex1! Thanks for the PR. I have a couple of questions:
|
Good point, done
It will not (I tested) . Not sure how to approach this. Will a minor version bump on the crd chart and warning in the NOTES.txt (to delete the crd manually from 1 ver to the next) be enough to get this to new users at least ? |
Actually, I totally forgot that there are more moving parts regarding this:
This is going to be lost next time we run a sync if we don't do the right process now. Asking for help regarding this process to @jkroepke 🙏 |
@GMartinez-Sisti I created a follow-up issue #3941 to unblock this PR |
|
This is because the helm maintainer are unable to integrate CRD handing into Helm. kube-prometheus-stack has the CRDs inside the
Nothing needs to be decided in this PR, follow up discussion is in #3941. Please continue discussion around CRD handing there. Thanks |
It seems like v1beta1 is not released yet. |
b42f298
to
4ac9d19
Compare
@GMartinez-Sisti @jkroepke any idea about the reasons for not being officially released? Why is the crd included in the operator examples/crds then? We're using v1beta1 for a while now and would like to streamline the upgrade process. |
Where did you see this? Looking at https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/main/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml there is only v1alpha1 |
Ref: prometheus-operator/prometheus-operator@582c845
I'm fine to include v1beta1, but atm I'm not sure how to configure the conversion webhook which seems mandatory. |
@jkroepke Thanks, that provides more context. |
Signed-off-by: birca <[email protected]>
This is not supported in Kubernetes. Only one version is supported for storage. # One and only one version must be marked as the storage version.
storage: true Looking at its defined that v1alpha1 is marked a Did you ever test, if you can create v1beta1 AlertmanagerConfigs? I have the feeling that the web converation webhook is mandory for v1beta1. At the current state, its expected that v1beta1 objects are converted into v1alpha1 unless its "released".
|
@jkroepke thanks for the context:
Also present in the official docs
We're using this exact setup and have created multiple |
@GMartinez-Sisti Whats your opinion here? There is no official statement about the v1beta1 Alertmanager CRD yet (prometheus-operator/prometheus-operator#4677) nor its included in the in the prometheus-operator-crd, only in prometheus-operator-crd-full as preview. I have the feeling that its not ready to use for everyone. Additionally, one one is blocked here. If someone wants to test v1beta1 CRD, it can be installed manually. |
Adds the v1beta1 AlertmanagerConfig crd to kps crds chart. Currently we need to sideload it
Checklist
[prometheus-couchdb-exporter]
)