
* feat(argo-cd): add support for dual stack clusters Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: add suggested change Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: metric template & add suggested change Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: remove changelog in README.md.gotmpl Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: applicationset metric template Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: add changelog as annotation Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * feat: use a global setting to enable dual stack Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> --------- Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Signed-off-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com> Co-authored-by: Aikawa <yu.croco@gmail.com> Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
{{- if .Values.dex.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "argo-cd.dex.fullname" . }}
|
|
namespace: {{ include "argo-cd.namespace" . }}
|
|
{{- if .Values.dex.metrics.service.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.dex.metrics.service.annotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.dex.name "name" .Values.dex.name) | nindent 4 }}
|
|
{{- if .Values.dex.metrics.service.labels }}
|
|
{{- toYaml .Values.dex.metrics.service.labels | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- include "argo-cd.dualStack" . | indent 2 }}
|
|
ports:
|
|
- name: {{ .Values.dex.servicePortHttpName }}
|
|
protocol: TCP
|
|
port: {{ .Values.dex.servicePortHttp }}
|
|
targetPort: http
|
|
- name: {{ .Values.dex.servicePortGrpcName }}
|
|
protocol: TCP
|
|
port: {{ .Values.dex.servicePortGrpc }}
|
|
targetPort: grpc
|
|
{{- if .Values.dex.metrics.enabled }}
|
|
- name: {{ .Values.dex.metrics.service.portName }}
|
|
protocol: TCP
|
|
port: {{ .Values.dex.servicePortMetrics }}
|
|
targetPort: metrics
|
|
{{- end }}
|
|
selector:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.dex.name) | nindent 4 }}
|
|
{{- end }}
|