2018-02-17 04:29:52 +01:00
|
|
|
{{ if .Values.clair.enabled }}
|
|
|
|
# clair host isn't configurable yet. this creates a service
|
|
|
|
# to get it working for now.
|
|
|
|
# see https://github.com/vmware/harbor/issues/3250
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2018-05-18 05:27:52 +02:00
|
|
|
name: "{{ template "harbor.fullname" . }}-clair"
|
2018-03-09 11:47:13 +01:00
|
|
|
labels:
|
|
|
|
{{ include "harbor.labels" . | indent 4 }}
|
2018-02-17 04:29:52 +01:00
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 6060
|
|
|
|
selector:
|
2018-03-09 11:47:13 +01:00
|
|
|
{{ include "harbor.matchLabels" . | indent 4 }}
|
|
|
|
component: clair
|
2018-05-18 05:27:52 +02:00
|
|
|
{{ end }}
|