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