aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2022-05-12 15:53:26 +0100
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>2022-06-14 10:26:46 +0000
commitafc5b66cb87984d94217962e0e1c68e4dc5a4c6d (patch)
treebce5513dce40a781a336fd59625c3bd18cd9a888 /kubernetes
parent56b8db227af43c0698eb877dc723f93ad5a0d812 (diff)
[POLICY] Fix cluster role binding name in k8s ppnt
Updated cluster role binding name and service account name to acm terminology Issue-ID: POLICY-4170 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: I1b52d6a5d01921d70fce53884558a3ce58f98e19 (cherry picked from commit 4aafc9f52cb725fe1a347982e0cb7f632394a8a5)
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/service.yaml10
1 files changed, 2 insertions, 8 deletions
diff --git a/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/service.yaml b/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/service.yaml
index 73381c9e3b..2439223192 100644
--- a/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/service.yaml
+++ b/kubernetes/policy/components/policy-clamp-ac-k8s-ppnt/templates/service.yaml
@@ -18,16 +18,10 @@
# ============LICENSE_END=========================================================
*/}}
-apiVersion: v1
-kind: ServiceAccount
-metadata:
- name: policy-clamp-cl-k8s-ppnt
- namespace: {{ include "common.namespace" . }}
----
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
- name: {{ include "common.namespace" . }}-policy-clamp-cl-k8s-ppnt-binding
+ name: {{ include "common.namespace" . }}-policy-clamp-ac-k8s-ppnt-binding
namespace: {{ include "common.namespace" . }}
labels:
app: {{ include "common.name" . }}
@@ -40,6 +34,6 @@ roleRef:
name: cluster-admin
subjects:
- kind: ServiceAccount
- name: policy-clamp-cl-k8s-ppnt
+ name: {{ include "common.fullname" (dict "suffix" "create" "dot" . )}}
namespace: {{ include "common.namespace" . }}