github.com/aquasecurity/trivy-iac@v0.8.1-0.20240127024015-3d8e412cf0ab/pkg/scanners/helm/test/mysql/templates/secondary/svc-headless.yaml (about) 1 {{- if eq .Values.architecture "replication" }} 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: {{ include "mysql.secondary.fullname" . }}-headless 6 namespace: {{ .Release.Namespace }} 7 labels: {{- include "common.labels.standard" . | nindent 4 }} 8 app.kubernetes.io/component: secondary 9 {{- if .Values.commonLabels }} 10 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 11 {{- end }} 12 annotations: 13 {{- if .Values.commonAnnotations }} 14 {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 15 {{- end }} 16 spec: 17 type: ClusterIP 18 clusterIP: None 19 publishNotReadyAddresses: true 20 ports: 21 - name: mysql 22 port: {{ .Values.secondary.service.port }} 23 targetPort: mysql 24 selector: {{ include "common.labels.matchLabels" . | nindent 4 }} 25 app.kubernetes.io/component: secondary 26 {{- end }}