feat: initialize Harbor Helm chart with full component templates and configuration values
This commit is contained in:
23
manifest/harbor/templates/trivy/trivy-svc.yaml
Normal file
23
manifest/harbor/templates/trivy/trivy-svc.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{ if .Values.trivy.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "{{ template "harbor.trivy" . }}"
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
labels:
|
||||
{{ include "harbor.labels" . | indent 4 }}
|
||||
spec:
|
||||
{{- if .Values.ipFamily.policy }}
|
||||
ipFamilyPolicy: {{ .Values.ipFamily.policy }}
|
||||
{{- end }}
|
||||
{{- if .Values.ipFamily.families }}
|
||||
ipFamilies: {{ toYaml .Values.ipFamily.families | nindent 4 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: {{ ternary "https-trivy" "http-trivy" .Values.internalTLS.enabled }}
|
||||
protocol: TCP
|
||||
port: {{ template "harbor.trivy.servicePort" . }}
|
||||
selector:
|
||||
{{ include "harbor.matchLabels" . | indent 4 }}
|
||||
component: trivy
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user