File tree Expand file tree Collapse file tree 3 files changed +64
-0
lines changed
__tests__/acceptance/charts/external-dns/templates Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 77
77
json_schema : ./__tests__/fixtures/schemas/schema1.json
78
78
files : |
79
79
__tests__/fixtures/yaml_as_json/valid_multi/yaml1.yaml
80
+
81
+ - name : acceptance test - excluding helm charts
82
+ uses : ./
83
+ id : json-yaml-validate-exclude-helm-charts-test
84
+ with :
85
+ comment : " true"
86
+ yaml_exclude_regex : " (charts/external-dns/templates.*|mkdocs.yml)"
87
+ allow_multiple_documents : " true"
88
+ base_dir : __tests__/acceptance
Original file line number Diff line number Diff line change
1
+ {{- $providerName := include "external-dns.providerName" . }}
2
+ apiVersion : v1
3
+ kind : Service
4
+ metadata :
5
+ name : {{ include "external-dns.fullname" . }}
6
+ namespace : {{ .Release.Namespace }}
7
+ labels :
8
+ {{- include "external-dns.labels" . | nindent 4 }}
9
+ {{- with .Values.service.annotations }}
10
+ annotations :
11
+ {{- toYaml . | nindent 4 }}
12
+ {{- end }}
13
+ spec :
14
+ {{- with .Values.service.ipFamilies }}
15
+ ipFamilies :
16
+ {{- toYaml . | nindent 4 }}
17
+ {{- end }}
18
+ {{- with .Values.service.ipFamilyPolicy }}
19
+ ipFamilyPolicy : {{ . }}
20
+ {{- end }}
21
+ type : ClusterIP
22
+ selector :
23
+ {{- include "external-dns.selectorLabels" . | nindent 4 }}
24
+ ports :
25
+ - name : http
26
+ port : {{ .Values.service.port }}
27
+ targetPort : http
28
+ protocol : TCP
29
+ {{- if eq $providerName "webhook" }}
30
+ {{- with .Values.provider.webhook.service }}
31
+ - name : http-webhook
32
+ port : {{ .port }}
33
+ targetPort : http-webhook
34
+ protocol : TCP
35
+ {{- end }}
36
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.serviceAccount.create -}}
2
+ apiVersion : v1
3
+ kind : ServiceAccount
4
+ metadata :
5
+ name : {{ include "external-dns.serviceAccountName" . }}
6
+ namespace : {{ .Release.Namespace }}
7
+ labels :
8
+ {{- include "external-dns.labels" . | nindent 4 }}
9
+ {{- with .Values.serviceAccount.labels }}
10
+ {{- toYaml . | nindent 4 }}
11
+ {{- end }}
12
+ {{- with .Values.serviceAccount.annotations }}
13
+ annotations :
14
+ {{- range $k, $v := . }}
15
+ {{- printf "%s: %s" (toYaml (tpl $k $)) (toYaml (tpl $v $)) | nindent 4 }}
16
+ {{- end }}
17
+ {{- end }}
18
+ automountServiceAccountToken : {{ .Values.serviceAccount.automountServiceAccountToken }}
19
+ {{- end }}
You can’t perform that action at this time.
0 commit comments