github.com/replicatedhq/ship@v0.55.0/integration/failing/update/helm-values-files/expected/.ship/upstream/templates/jenkins-master-networkpolicy.yaml (about) 1 {{- if .Values.NetworkPolicy.Enabled }} 2 kind: NetworkPolicy 3 apiVersion: {{ .Values.NetworkPolicy.ApiVersion }} 4 metadata: 5 name: "{{ .Release.Name }}-{{ .Values.Master.Component }}" 6 spec: 7 podSelector: 8 matchLabels: 9 component: "{{ .Release.Name }}-{{ .Values.Master.Component }}" 10 ingress: 11 # Allow web access to the UI 12 - ports: 13 - port: 8080 14 # Allow inbound connections from slave 15 - from: 16 - podSelector: 17 matchLabels: 18 "jenkins/{{ .Release.Name }}-{{ .Values.Agent.Component }}": "true" 19 ports: 20 - port: {{ .Values.Master.SlaveListenerPort }} 21 {{- if .Values.Agent.Enabled }} 22 --- 23 kind: NetworkPolicy 24 apiVersion: {{ .Values.NetworkPolicy.ApiVersion }} 25 metadata: 26 name: "{{ .Release.Name }}-{{ .Values.Agent.Component }}" 27 spec: 28 podSelector: 29 matchLabels: 30 # DefaultDeny 31 "jenkins/{{ .Release.Name }}-{{ .Values.Agent.Component }}": "true" 32 {{- end }} 33 {{- end }}