You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened?
When I setup a MutatingWebhookConfiguration or a ValidatingWebhookConfiguration against the prometheusrule webhook paths with v0.40.0 or v0.41.1 of the operator, it does not return the appropriate output to the Kubernetes API Server. The output is missing the apiVersion=admission.k8s.io/v1 and kind=AdmissionReview when returning data from the web call. Kubernetes fails to create prometheusrules with the error Error from server (InternalError): error when creating "test.yaml": Internal error occurred: failed calling webhook "prometheusrulemutate.monitoring.coreos.com": expected webhook response of admission.k8s.io/v1, Kind=AdmissionReview, got /, Kind=.
Did you expect to see something different?
The webhooks should appropriately respond to the API server when attempting to create or update prometheus rules.
How to reproduce it (as minimally and precisely as possible):
Deploy the prometheus operator with tls enabled
Configure Validating and Mutating Webhook configurations against the deployed operator
Anything else we need to know?:
I have been trying to create an Operator Lifecycle Manager Cluster Service Version for the prometheus operator for v0.40.0 or v0.41.1 that might help to reproduce this issue but I don't have it publicly available. If it would help, I can look into making that resource publicly available.
The text was updated successfully, but these errors were encountered:
What happened?
When I setup a MutatingWebhookConfiguration or a ValidatingWebhookConfiguration against the prometheusrule webhook paths with v0.40.0 or v0.41.1 of the operator, it does not return the appropriate output to the Kubernetes API Server. The output is missing the apiVersion=admission.k8s.io/v1 and kind=AdmissionReview when returning data from the web call. Kubernetes fails to create prometheusrules with the error
Error from server (InternalError): error when creating "test.yaml": Internal error occurred: failed calling webhook "prometheusrulemutate.monitoring.coreos.com": expected webhook response of admission.k8s.io/v1, Kind=AdmissionReview, got /, Kind=
.Did you expect to see something different?
The webhooks should appropriately respond to the API server when attempting to create or update prometheus rules.
How to reproduce it (as minimally and precisely as possible):
Environment
Prometheus Operator version:
quay.io/prometheus-operator/prometheus-operator:v0.41.1
Kubernetes version information:
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.11", GitCommit:"ea5f00d93211b7c80247bf607cfa422ad6fb5347", GitTreeState:"clean", BuildDate:"2020-08-13T15:20:25Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.11", GitCommit:"ea5f00d93211b7c80247bf607cfa422ad6fb5347", GitTreeState:"clean", BuildDate:"2020-08-13T15:11:47Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
Kubernetes cluster kind:
kubeadm
Manifests:
Anything else we need to know?:
I have been trying to create an Operator Lifecycle Manager Cluster Service Version for the prometheus operator for v0.40.0 or v0.41.1 that might help to reproduce this issue but I don't have it publicly available. If it would help, I can look into making that resource publicly available.
The text was updated successfully, but these errors were encountered: