diff options
Diffstat (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-commit-server/service.yaml')
| -rw-r--r-- | astroshop-platform/argocd-helmchart/templates/argocd-commit-server/service.yaml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-commit-server/service.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-commit-server/service.yaml new file mode 100644 index 0000000..d4cca0e --- /dev/null +++ b/astroshop-platform/argocd-helmchart/templates/argocd-commit-server/service.yaml @@ -0,0 +1,26 @@ +{{- if .Values.commitServer.enabled }} +apiVersion: v1 +kind: Service +metadata: + name: {{ template "argo-cd.commitServer.fullname" . }} + namespace: {{ include "argo-cd.namespace" . }} + labels: + {{- include "argo-cd.labels" (dict "context" . "component" .Values.commitServer.name "name" .Values.commitServer.name) | nindent 4 }} + {{- with .Values.commitServer.service.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.commitServer.service.annotations }} + annotations: + {{- range $key, $value := . }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} +spec: + ports: + - name: {{ .Values.commitServer.service.portName }} + protocol: TCP + port: {{ .Values.commitServer.service.port }} + targetPort: server + selector: + {{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.commitServer.name) | nindent 4 }} +{{- end }} |
