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

admissionController-failurePolicy does not take effect in cluster #311

Open
FloatXD opened this issue Sep 23, 2024 · 0 comments
Open

admissionController-failurePolicy does not take effect in cluster #311

FloatXD opened this issue Sep 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@FloatXD
Copy link
Member

FloatXD commented Sep 23, 2024

‘’‘
[root@k8s-master ~]# kubectl get MutatingWebhookconfiguration -o yaml
apiVersion: v1
items:

  • apiVersion: admissionregistration.k8s.io/v1
    kind: MutatingWebhookConfiguration
    metadata:
    creationTimestamp: "2024-09-23T02:45:54Z"
    generation: 1
    name: hwameistor-admission-mutate
    resourceVersion: "12656"
    uid: 5a2b8346-d6b4-4af2-a667-f13ef519a228
    webhooks:
    • admissionReviewVersions:
      • v1
      • v1beta1
        clientConfig:
        caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZzVENDQTVtZ0F3SUJBZ0lDQm5vd0RRWUpLb1pJaHZjTkFRRUxCUUF3R0RFV01CUUdBMVVFQ2hNTmFIZGgKYldWcGMzUnZjaTVwYnpBZUZ3MHlOREE1TWpNd01qUXdNVGxhRncweU5UQTVNak13TWpRd01UbGFNRkV4RmpBVQpCZ05WQkFvVERXaDNZVzFsYVhOMGIzSXVhVzh4TnpBMUJnTlZCQU1UTG1oM1lXMWxhWE4wYjNJdFlXUnRhWE56CmFXOXVMV052Ym5SeWIyeHNaWEl1YUhkaGJXVnBjM1J2Y2k1emRtTXdnZ0lpTUEwR0NTcUdTSWIzRFFFQkFRVUEKQTRJQ0R3QXdnZ0lLQW9JQ0FRRERiWHJqaXg3NldPZ3NqOElIMDB2YVdGT2N0VnNXSThnQUcwZ1MyVGFwbXUvSwpZVWJpejVFL0xnMUpYMEJnWnB5cmRlNkFPVDQ3L0NNM1I3aXZl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Y1dDCmR3NHdTMFhobUFVWllzSSsyZVBEUHo0Y0ozUCsKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
        service:
        name: hwameistor-admission-controller
        namespace: hwameistor
        path: /mutate
        port: 443
        failurePolicy: Ignore
        matchPolicy: Equivalent
        name: hwameistor.io.mutate-hook
        namespaceSelector:
        matchExpressions:
        • key: hwameistor.io/webhook
          operator: NotIn
          values:
          • ignore
            objectSelector: {}
            reinvocationPolicy: Never
            rules:
      • apiGroups:
        • apps
        • ""
          apiVersions:
        • v1
          operations:
        • CREATE
          resources:
        • pods
          scope: '*'
          sideEffects: None
          timeoutSeconds: 10
          kind: List
          metadata:
          resourceVersion: ""
          ’‘’

’‘’
[root@k8s-master ~]# kubectl get cluster hwameistor-cluster -o yaml
apiVersion: hwameistor.io/v1alpha1
kind: Cluster
metadata:
annotations:
meta.helm.sh/release-name: hwameistor-operator
meta.helm.sh/release-namespace: hwameistor
creationTimestamp: "2024-09-23T02:37:35Z"
generation: 2
labels:
app.kubernetes.io/managed-by: Helm
name: hwameistor-cluster
resourceVersion: "20064"
uid: 9afe3750-0fa5-40d5-bd1e-8351199b6ea7
spec:
admissionController:
controller:
image:
registry: ghcr.io
repository: hwameistor/admission
tag: v0.14.7
disable: false
failurePolicy: Fail
replicas: 1
’‘’

@FloatXD FloatXD added the enhancement New feature or request label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant