Skip to content

Commit

Permalink
allow kubechecks to access argocd settings
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Nov 9, 2024
1 parent 0598e32 commit 2b224e0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kubechecks/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions charts/kubechecks/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions charts/kubechecks/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions charts/kubechecks/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Labels to apply to all resources created by this Helm chart
argocd:
namespace: argocd

commonLabels: {}

configMap:
Expand Down

0 comments on commit 2b224e0

Please sign in to comment.