
This PS adds the basic gerrit<->tekton interaction, which consists of two charts: * Jarvis-System: which launches a utility to scrape pending gerrit checks and rechecks, before forwarding requests to a tekton event- listener. This event listener then launches a pipeline that sets up the environment for the pipeline in the project repo to make use of. * Jarvis-Project: which launches a job, which sets up a repo in gerrit, configures the checks upon it, and addtionally sets up appropriate repos in harbor for oci images and helm charts. Note: This change makes use of the Jarvis-Connector, which is hosted here: * https://github.com/att-comdev/jarvis-connector Change-Id: I0ca023e357fb562b4f65e081a06ac6581471b4bc Signed-off-by: Pete Birley <pete@port.direct>
22 lines
741 B
Smarty
22 lines
741 B
Smarty
|
|
{{- define "helpers.pod.container.image" -}}
|
|
{{- $Global := index . "Global" -}}
|
|
{{- $Application := index . "Application" -}}
|
|
{{- with index $.Global.Values.images.applications $Application -}}
|
|
{{- printf "%s/%s:%s" .repo .name ( .tag | toString ) | quote -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- define "helpers.pod.node_selector" -}}
|
|
{{- $Global := index . "Global" -}}
|
|
{{- $Application := index . "Application" -}}
|
|
{{- with index $.Global.Values.node_labels $Application -}}
|
|
{{ if kindIs "slice" . }}
|
|
{{ range $k, $item := . }}
|
|
{{ $item.key }}: {{ $item.value | quote }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ .key }}: {{ .value | quote }}
|
|
{{ end }}
|
|
{{- end }}
|
|
{{- end }} |