forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.go
33 lines (31 loc) · 923 Bytes
/
template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package generator
var Template = `
{{define "cluster-template" }}
{{- if .IncludeRke }}
{{- template "source-rke" . -}}
{{- template "filter-rke" . -}}
{{end }}
{{- template "source-container" . -}}
{{- template "filter-container" . -}}
{{- template "filter-custom-tags" . -}}
{{- template "filter-prometheus" . -}}
{{- template "filter-exclude-system-component" . -}}
{{- template "filter-sumo" . -}}
{{- template "match" . -}}
{{end}}
{{define "project-template" }}
{{ range $i, $store := . }}
{{- if $store.IncludeRke }}
{{- template "source-rke" $store -}}
{{- template "filter-rke" $store -}}
{{end }}
{{- template "source-container" $store -}}
{{- template "filter-container" $store -}}
{{- template "filter-custom-tags" $store -}}
{{- template "filter-project-namespace" $store -}}
{{- template "filter-prometheus" $store -}}
{{- template "filter-sumo" $store -}}
{{- template "match" $store -}}
{{end}}
{{end}}
`