
* fix(argo-rollouts): Use annotation cont metrics Signed-off-by: Artur Mudrykh <a.mudrykh@uzum.com> * fix(argo-rollouts): add changes and bump version Signed-off-by: Artur Mudrykh <a.mudrykh@uzum.com> * fix chart.yaml Signed-off-by: Artur Mudrykh <a.mudrykh@uzum.com> --------- Signed-off-by: Artur Mudrykh <a.mudrykh@uzum.com> Co-authored-by: Artur Mudrykh <a.mudrykh@uzum.com>
26 lines
856 B
YAML
26 lines
856 B
YAML
{{- if .Values.controller.metrics.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "argo-rollouts.fullname" . }}-metrics
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- with .Values.serviceAnnotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.controller.metrics.service.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ports:
|
|
- name: {{ .Values.controller.metrics.service.portName }}
|
|
protocol: TCP
|
|
port: {{ .Values.controller.metrics.service.port }}
|
|
targetPort: metrics
|
|
selector:
|
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|