From: Krisztian Lengyel Date: Fri, 7 Jun 2019 12:42:38 +0000 (+0200) Subject: Add RBAC config for CPU webhookcfg-controller X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F962%2F2;hp=9fbb49ee59c7ca0fd50025fc36172157fe0c3dc2;p=ta%2Fcaas-security.git Add RBAC config for CPU webhookcfg-controller Change-Id: I2c6a1f33cd4b06d1b3f41b3db3935c83fdabed7b Signed-off-by: Krisztian Lengyel --- 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}