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-server/grpcroute.yaml | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 astroshop-platform/argocd-helmchart/templates/argocd-server/grpcroute.yaml (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-server/grpcroute.yaml') diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-server/grpcroute.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-server/grpcroute.yaml new file mode 100644 index 0000000..a88537f --- /dev/null +++ b/astroshop-platform/argocd-helmchart/templates/argocd-server/grpcroute.yaml @@ -0,0 +1,43 @@ +{{- if .Values.server.grpcroute.enabled -}} +{{- $fullName := include "argo-cd.server.fullname" . -}} +{{- $insecure := index .Values.configs.params "server.insecure" | toString -}} +{{- $servicePort := eq $insecure "true" | ternary .Values.server.service.servicePortHttp .Values.server.service.servicePortHttps -}} +apiVersion: gateway.networking.k8s.io/v1 +kind: GRPCRoute +metadata: + name: {{ $fullName }}-grpc + namespace: {{ include "argo-cd.namespace" . }} + labels: + {{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }} + {{- with .Values.server.grpcroute.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.server.grpcroute.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + parentRefs: + {{- with .Values.server.grpcroute.parentRefs }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.server.grpcroute.hostnames }} + hostnames: + {{- toYaml . | nindent 4 }} + {{- end }} + rules: + {{- range .Values.server.grpcroute.rules }} + {{- with .matches }} + - matches: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .filters }} + filters: + {{- toYaml . | nindent 8 }} + {{- end }} + backendRefs: + - name: {{ $fullName }} + port: {{ $servicePort }} + weight: 1 + {{- end }} +{{- end }} -- cgit v1.2.3