Description of problem: error "expected type *v1.ValidatingWebhookConfiguration, but watch event object had type *v1beta1.ValidatingWebhookConfiguration" in kube-state-metrics, and checked the version should be v1 # oc -n openshift-monitoring logs kube-state-metrics-bd8f6d6cf-twnw7 -c kube-state-metrics ...... E0207 02:29:59.868343 1 reflector.go:368] k8s.io/kube-state-metrics/internal/store/builder.go:346: expected type *v1.ValidatingWebhookConfiguration, but watch event object had type *v1beta1.ValidatingWebhookConfiguration E0207 02:29:59.910091 1 reflector.go:368] k8s.io/kube-state-metrics/internal/store/builder.go:346: expected type *v1.ValidatingWebhookConfiguration, but watch event object had type *v1beta1.ValidatingWebhookConfiguration E0207 02:30:49.573248 1 reflector.go:368] k8s.io/kube-state-metrics/internal/store/builder.go:346: expected type *v1.ValidatingWebhookConfiguration, but watch event object had type *v1beta1.ValidatingWebhookConfiguration ........ # oc explain ValidatingWebhookConfiguration KIND: ValidatingWebhookConfiguration VERSION: admissionregistration.k8s.io/v1 DESCRIPTION: ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. FIELDS: apiVersion <string> APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind <string> Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds metadata <Object> Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. webhooks <[]Object> Webhooks is a list of webhooks and the affected resources and operations. Version-Release number of selected component (if applicable): 4.4.0-0.nightly-2020-02-06-230833 How reproducible: always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Thanks for catching this! I could reproduce this in fork and upstream, will do a PR in upstream to fix it.
The issue is still there for openshift version: 4.4.0-0.nightly-2020-03-02-081928
the issue is fixed in 4.4.0-0.nightly-2020-03-02-201804 and later build
The issue is fixed in payload 4.4.0-0.nightly-2020-03-02-214541
Set up environment with payload 4.4.0-0.nightly-2020-03-02-214541 Execute “oc -n openshift-monitoring logs kube-state-metrics-95445d6d7-kmkpc -c kube-state-metrics" There is no error message of the bug.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581