* feat(argo-cd) Adding applicationSet.enable and notifications.enable to allow to disable them Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Fixing Chart version and redudant ifs Signed-off-by: Eric Durand eric_p_durand@yahoo.com Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Detail the change Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Drop one more redundant if Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
25 lines
965 B
YAML
25 lines
965 B
YAML
{{- if and .Values.applicationSet.enabled .Values.applicationSet.metrics.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
{{- if .Values.applicationSet.metrics.service.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.applicationSet.metrics.service.annotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.applicationSet.name "name" "metrics") | nindent 4 }}
|
|
{{- if .Values.applicationSet.metrics.service.labels }}
|
|
{{- toYaml .Values.applicationSet.metrics.service.labels | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ template "argo-cd.applicationSet.fullname" . }}-metrics
|
|
spec:
|
|
ports:
|
|
- name: metrics
|
|
protocol: TCP
|
|
port: {{ .Values.applicationSet.metrics.service.servicePort }}
|
|
targetPort: metrics
|
|
selector:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.applicationSet.name) | nindent 4 }}
|
|
{{- end }}
|