From 02e23749917b535e7b22da2b6fe0a8281e631590 Mon Sep 17 00:00:00 2001 From: Prakash Divy Date: Thu, 16 Sep 2021 00:07:02 +0700 Subject: [PATCH] Fix Role and ConfigMap --- templates/dkron-worker-agent-cm.yaml | 2 +- templates/role.yaml | 2 +- templates/rolebinding.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/dkron-worker-agent-cm.yaml b/templates/dkron-worker-agent-cm.yaml index 89b4e45..1d976da 100644 --- a/templates/dkron-worker-agent-cm.yaml +++ b/templates/dkron-worker-agent-cm.yaml @@ -6,7 +6,7 @@ metadata: data: dkron.yml: |- kubernetes: true - retry-join: ["provider=k8s label_selector=\"app=dkron-server\""] + retry-join: ["provider=k8s namespace={{.Values.namespace}} label_selector=\"app={{.Values.statefulSetName}}\""] # Uncomment below to set a tag for a worker tags: worker: cron diff --git a/templates/role.yaml b/templates/role.yaml index f89ad40..a1b7171 100644 --- a/templates/role.yaml +++ b/templates/role.yaml @@ -1,7 +1,7 @@ kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: dkron + name: dkron-server namespace: {{.Values.namespace}} labels: app: dkron diff --git a/templates/rolebinding.yaml b/templates/rolebinding.yaml index 975ba97..c8661fc 100644 --- a/templates/rolebinding.yaml +++ b/templates/rolebinding.yaml @@ -10,6 +10,6 @@ subjects: name: dkron namespace: {{.Values.namespace}} roleRef: - kind: ClusterRole + kind: Role name: dkron-server apiGroup: rbac.authorization.k8s.io