From ab06369952ca256e012266a8f2d6ff009cc21c6e Mon Sep 17 00:00:00 2001 From: Krisztian Lengyel Date: Fri, 7 Jun 2019 14:42:38 +0200 Subject: [PATCH] Add RBAC config for CPU webhookcfg-controller Change-Id: I2c6a1f33cd4b06d1b3f41b3db3935c83fdabed7b Signed-off-by: Krisztian Lengyel --- rbac_manifests/webhook-conf-controller-config.yaml | 30 ++++++++++++++++++++++ rpmbuild.spec | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 rbac_manifests/webhook-conf-controller-config.yaml diff --git a/rbac_manifests/webhook-conf-controller-config.yaml b/rbac_manifests/webhook-conf-controller-config.yaml new file mode 100644 index 0000000..307df88 --- /dev/null +++ b/rbac_manifests/webhook-conf-controller-config.yaml @@ -0,0 +1,30 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: webhookcfg-controller + namespace: kube-system +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: caas:webhookcfg-controller + namespace: kube-system +rules: +- apiGroups: + - admissionregistration.k8s.io + resources: + - mutatingwebhookconfigurations + verbs: ["get", "update"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: caas:webhookcfg-controller +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: caas:webhookcfg-controller +subjects: +- kind: ServiceAccount + name: webhookcfg-controller + namespace: kube-system \ No newline at end of file diff --git a/rpmbuild.spec b/rpmbuild.spec index d6a7a70..56a927d 100644 --- a/rpmbuild.spec +++ b/rpmbuild.spec @@ -15,7 +15,7 @@ %define COMPONENT security %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 1.0.0 -%define RPM_MINOR_VERSION 1 +%define RPM_MINOR_VERSION 2 Name: %{RPM_NAME} Version: %{RPM_MAJOR_VERSION} -- 2.16.6