Update DANM RBAC roles for version 4.0 04/1204/2
authorKrisztian Lengyel <krisztian.lengyel@nokia.com>
Tue, 16 Jul 2019 12:59:17 +0000 (14:59 +0200)
committerKrisztian Lengyel <krisztian.lengyel@nokia.com>
Wed, 17 Jul 2019 12:41:34 +0000 (14:41 +0200)
Change-Id: I1dbc5f6acf73ed735a5c91aef728ea6d1ef17d82
Signed-off-by: Krisztian Lengyel <krisztian.lengyel@nokia.com>
rbac_manifests/danm-rbac-config.yaml
rbac_manifests/danm-webhook.yaml [new file with mode: 0644]
rbac_manifests/netwatcher-rbac-config.yml
rbac_manifests/svcwatcher-rbac-config.yml
rbac_manifests/tiller-rbac-config.yaml
rpmbuild.spec

index a08796f..1851910 100644 (file)
@@ -21,8 +21,9 @@ rules:
   - apiGroups:
     - danm.k8s.io
     resources:
-    - danmnets
     - danmeps
+    - tenantnetworks
+    - clusternetworks
     verbs: [ "*" ]
   - apiGroups: [ "" ]
     resources: [ "pods" ]
diff --git a/rbac_manifests/danm-webhook.yaml b/rbac_manifests/danm-webhook.yaml
new file mode 100644 (file)
index 0000000..356321b
--- /dev/null
@@ -0,0 +1,44 @@
+---
+# Copyright 2019 Nokia
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: danm-webhook
+  namespace: kube-system
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+  name: caas:danm-webhook
+rules:
+- apiGroups:
+  - danm.k8s.io
+  resources:
+  - tenantconfigs
+  verbs: [ "*" ]
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: caas:danm-webhook
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: caas:danm-webhook
+subjects:
+- kind: ServiceAccount
+  name: danm-webhook
+  namespace: kube-system
index fae1c23..c626e3a 100644 (file)
@@ -29,7 +29,8 @@ rules:
 - apiGroups:
   - "danm.k8s.io"
   resources:
-  - danmnets
+  - tenantnetworks
+  - clusternetworks
   verbs:
   - get
   - list
index d827b72..e3b589e 100644 (file)
@@ -49,7 +49,6 @@ rules:
 - apiGroups:
   - "danm.k8s.io"
   resources:
-  - danmnets
   - danmeps
   verbs:
   - get
index 40715eb..3b457ab 100644 (file)
@@ -204,7 +204,7 @@ rules:
   - apiGroups:
     - danm.k8s.io
     resources:
-    - danmnets
+    - tenantnetworks
     verbs:
     - create
     - delete
@@ -228,7 +228,7 @@ rules:
     - patch
     - update
     - watch
-     
+
 ---
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
index 56a927d..b9b37f3 100644 (file)
@@ -15,7 +15,7 @@
 %define COMPONENT security
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 1.0.0
-%define RPM_MINOR_VERSION 2
+%define RPM_MINOR_VERSION 3
 
 Name:           %{RPM_NAME}
 Version:        %{RPM_MAJOR_VERSION}