diff --git a/charts/kubechecks/Chart.yaml b/charts/kubechecks/Chart.yaml index e7466ea6..5a1e1a85 100644 --- a/charts/kubechecks/Chart.yaml +++ b/charts/kubechecks/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: kubechecks description: A Helm chart for kubechecks -version: 0.4.5 +version: 0.5.0 type: application maintainers: - name: zapier diff --git a/charts/kubechecks/templates/role.yaml b/charts/kubechecks/templates/role.yaml new file mode 100644 index 00000000..c20fb37b --- /dev/null +++ b/charts/kubechecks/templates/role.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: kubechecks + namespace: {{ .Values.argocd.namespace }} +rules: + - apiGroups: + - "" + resources: + - configmaps + - secrets + verbs: + - get + - list + - watch diff --git a/charts/kubechecks/templates/rolebinding.yaml b/charts/kubechecks/templates/rolebinding.yaml new file mode 100644 index 00000000..41a0b33f --- /dev/null +++ b/charts/kubechecks/templates/rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: kubechecks + namespace: {{ .Values.argocd.namespace }} +roleRef: + kind: Role + name: kubechecks + apiGroup: rbac.authorization.k8s.io +subjects: + - kind: ServiceAccount + name: {{ include "kubechecks.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} diff --git a/charts/kubechecks/values.yaml b/charts/kubechecks/values.yaml index 9e996252..aadae07a 100644 --- a/charts/kubechecks/values.yaml +++ b/charts/kubechecks/values.yaml @@ -1,4 +1,7 @@ # Labels to apply to all resources created by this Helm chart +argocd: + namespace: argocd + commonLabels: {} configMap: