From 960eaa819931ccbc6665c6a7f006a7836c6e42ad Mon Sep 17 00:00:00 2001 From: jbarfield Date: Mon, 15 Jan 2024 18:33:46 -0600 Subject: [PATCH] Update `cert-manager/plugin.yaml`; applying RBAC rules addressing github issue #42 opened by myself. Applied `yamllint` updates to address syntax errors. Including converting the array from `["bracketed format"]` to `- itemized per line` ` to eliminate `line length exceeds 80 characters` errors. --- cert-manager-plugin/plugin.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/cert-manager-plugin/plugin.yaml b/cert-manager-plugin/plugin.yaml index 0473223a..787b8b46 100644 --- a/cert-manager-plugin/plugin.yaml +++ b/cert-manager-plugin/plugin.yaml @@ -1,5 +1,7 @@ -# Plugin Definition below. This is essentially a valid helm values file that will be merged -# with the other vcluster values during vcluster create or helm install. +--- +# Plugin Definition below. This is essentially a valid helm values file that +# will be merged # with the other vcluster values during vcluster create or +# helm install. plugin: cert-manager-plugin: image: ghcr.io/loft-sh/vcluster-plugins/cert-manager-plugin:0.3.0 @@ -9,9 +11,22 @@ plugin: extraRules: - apiGroups: ["cert-manager.io"] resources: ["issuers", "certificates"] - verbs: ["create", "delete", "patch", "update", "get", "list", "watch"] + verbs: + - "create" + - "delete" + - "patch" + - "update" + - "get" + - "list" + - "watch" clusterRole: extraRules: - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] verbs: ["get", "list", "watch"] + - apiGroups: ["cert-manager.io"] + resources: ["certificates", "issuers"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["secrets"] + verbs: ["get", "list", "watch"]