Bug 1838122 - Add admission webhooks to must-gather for kas-o
Summary: Add admission webhooks to must-gather for kas-o
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-apiserver
Version: 4.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.5.0
Assignee: David Eads
QA Contact: Ke Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-20 13:45 UTC by Michal Fojtik
Modified: 2020-07-13 17:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:40:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-kube-apiserver-operator pull 865 0 None closed Bug 1838122: add admission webhooks to must-gather for kas-o 2021-02-20 01:52:17 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:40:43 UTC

Description Michal Fojtik 2020-05-20 13:45:42 UTC
Description of problem:

The must-gather should include the admission configuration for the KAS, that will help us debugging hooks which are misconfigured.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Ke Wang 2020-05-25 07:18:08 UTC
A refresh OCP cluster with build 4.5.0-0.nightly-2020-05-24-223848 without any mutatingwebhookconfigurations, so we need to add one, see below,

$ cat mutating-admission.yaml 
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: demo-webhook
webhooks:
- admissionReviewVersions:
  - v1beta1
  clientConfig:
    caBundle: <$BUNDERkey>
    service:
      name: webhook-server
      namespace: webhook-demo
      path: /mutate
  failurePolicy: Ignore
  matchPolicy: Exact
  name: webhook-server.webhook-demo.svc
  namespaceSelector: {}
  objectSelector: {}
  rules:
  - apiGroups:
    - k8s.cni.cncf.io
    apiVersions:
    - v1
    operations:
    - CREATE
    - UPDATE
    resources:
    - network-attachment-definitions
    scope: '*'
  sideEffects: NoneOnDryRun
  timeoutSeconds: 30
  
$ oc create -f mutating-admission.yaml

$ oc get mutatingwebhookconfigurations.admissionregistration.k8s.io
NAME           WEBHOOKS   AGE
demo-webhook   1          70s

$ oc adm must-gather

$ ls admissionregistration.k8s.io/*
admissionregistration.k8s.io/mutatingwebhookconfigurations:
demo-webhook.yaml

admissionregistration.k8s.io/validatingwebhookconfigurations:
autoscaling.openshift.io.yaml  multus.openshift.io.yaml

The expected admissionregistration has been gathered, move the bug to verified.

Comment 4 errata-xmlrpc 2020-07-13 17:40:29 UTC
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:2409


Note You need to log in before you can comment on or make changes to this bug.