Update ResourceBundleState CRD and monitor-deploy 99/113399/2
authorIgor D.C <igor.duarte.cardoso@intel.com>
Wed, 30 Sep 2020 19:37:51 +0000 (19:37 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Wed, 30 Sep 2020 22:51:03 +0000 (22:51 +0000)
Update ResourceBundleState CRD and monitor-deploy.yaml with
csrStatuses.

This was missing from the previous patch implementing CSR support
in Monitor. Depending on how the environment was brought up, attempting
to read the CSR would result in forbidden access.

Issue-ID: MULTICLOUD-1143
Change-Id: I86ffb8df8faa045e57fd553e5784d308e1900ee4
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
deployments/kubernetes/monitor-deploy.yaml
src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml

index 29bb1eb..ef8e5ec 100644 (file)
@@ -77,6 +77,10 @@ spec:
               items:
                 type: object
               type: array
+            csrStatuses:
+              items:
+                type: object
+              type: array
           required:
           - ready
           - resourceCount
@@ -89,6 +93,7 @@ spec:
           - ingressStatuses
           - jobStatuses
           - statefulSetStatuses
+          - csrStatuses
           type: object
   version: v1alpha1
   versions:
@@ -169,6 +174,12 @@ rules:
   - '*'
   verbs:
   - '*'
+- apiGroups:
+  - certificates.k8s.io
+  resources:
+  - '*'
+  verbs:
+  - '*'
 
 ---
 apiVersion: rbac.authorization.k8s.io/v1
index 9ca95a3..25197f0 100644 (file)
@@ -77,6 +77,10 @@ spec:
               items:
                 type: object
               type: array
+            csrStatuses:
+              items:
+                type: object
+              type: array
           required:
           - ready
           - resourceCount
@@ -89,6 +93,7 @@ spec:
           - ingressStatuses
           - jobStatuses
           - statefulSetStatuses
+          - csrStatuses
           type: object
   version: v1alpha1
   versions: