From 88a326bacdffde9e065b08ba893a17149584e72e Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 11 Oct 2025 02:34:38 +0530 Subject: platform: Adding argocd helm chart --- .../templates/argocd-repo-server/clusterrole.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 astroshop-platform/argocd-helmchart/templates/argocd-repo-server/clusterrole.yaml (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-repo-server/clusterrole.yaml') diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-repo-server/clusterrole.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-repo-server/clusterrole.yaml new file mode 100644 index 0000000..23439b1 --- /dev/null +++ b/astroshop-platform/argocd-helmchart/templates/argocd-repo-server/clusterrole.yaml @@ -0,0 +1,23 @@ +{{- if and .Values.createClusterRoles .Values.repoServer.clusterRoleRules.enabled }} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "argo-cd.repoServer.fullname" . }} + labels: + {{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }} +rules: + {{- with .Values.repoServer.clusterRoleRules.rules }} + {{- toYaml . | nindent 2 }} + {{- else }} + - apiGroups: + - '*' + resources: + - '*' + verbs: + - '*' + - nonResourceURLs: + - '*' + verbs: + - '*' + {{- end }} +{{- end }} -- cgit v1.2.3