Преглед изворни кода

add the resourceNames(git commit -s) (#3822)

* add the resourceNames

Signed-off-by: younaman <952508578@qq.com>

* fixed

Signed-off-by: younaman <952508578@qq.com>

* make helm.test.update

Signed-off-by: younaman <952508578@qq.com>

---------

Signed-off-by: younaman <952508578@qq.com>
Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
younaman пре 1 година
родитељ
комит
428a452fd2

+ 9 - 1
deploy/charts/external-secrets/templates/cert-controller-rbac.yaml

@@ -21,8 +21,16 @@ rules:
     resources:
     resources:
     - "validatingwebhookconfigurations"
     - "validatingwebhookconfigurations"
     verbs:
     verbs:
-    - "get"
     - "list"
     - "list"
+  - apiGroups:
+    - "admissionregistration.k8s.io"
+    resources:
+    - "validatingwebhookconfigurations"
+    resourceNames:
+    - "secretstore-validate"
+    - "externalsecret-validate"
+    verbs:
+    - "get"
     - "watch"
     - "watch"
     - "update"
     - "update"
     - "patch"
     - "patch"

+ 1 - 1
deploy/charts/external-secrets/tests/__snapshot__/crds_test.yaml.snap

@@ -4,7 +4,7 @@ should match snapshot of default values:
     kind: CustomResourceDefinition
     kind: CustomResourceDefinition
     metadata:
     metadata:
       annotations:
       annotations:
-        controller-gen.kubebuilder.io/version: v0.15.0
+        controller-gen.kubebuilder.io/version: v0.16.1
       labels:
       labels:
         external-secrets.io/component: controller
         external-secrets.io/component: controller
       name: secretstores.external-secrets.io
       name: secretstores.external-secrets.io