File tree Expand file tree Collapse file tree 4 files changed +37
-4
lines changed Expand file tree Collapse file tree 4 files changed +37
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ keywords:
1010 - image scanning
1111 - source code scanning
1212type : application
13- maintaintainers :
13+ maintainers :
1414 - name : Pawan Kumar
15151616sources :
1717 - https://github.com/devtron-labs/charts
18- version : 0.1.5
18+ version : 0.1.6
1919appVersion : " 0.1.1"
2020dependencies :
2121- name : clair
Original file line number Diff line number Diff line change 1+ { {/*
2+ Return full image
3+ {{ include " common.image" ( dict " component" .Values.path.to.the.component " global" .Values.global .extraImage .extraImageTag .extraImageDigest ) } }
4+ */}}
5+ { {- define " common.image" -} }
6+ { {- $registryName := .component.registry | default .global.containerRegistry -} }
7+ { {- $imageName := .extraImage | default .component.image -} }
8+ { {- $imageTag := .extraImageTag | default .component.tag -} }
9+ { {- $imageDigest := .extraImageDigest | default .component.digest -} }
10+ { {- if $registryName } }
11+ { {- if and $imageTag $imageDigest } }
12+ { {- printf " %s/%s@%s" $registryName $imageName $imageDigest -} }
13+ { {- else if $imageTag } }
14+ { {- printf " %s/%s:%s" $registryName $imageName $imageTag -} }
15+ { {- else if $imageDigest } }
16+ { {- printf " %s/%s@%s" $registryName $imageName $imageDigest -} }
17+ { {- else } }
18+ { {- printf " %s/%s" $registryName $imageName -} }
19+ { {- end } }
20+ { {- else -} }
21+ { {- if and $imageTag $imageDigest } }
22+ { {- printf " %s@%s" $imageName $imageDigest -} }
23+ { {- else if $imageTag } }
24+ { {- printf " %s:%s" $imageName $imageTag -} }
25+ { {- else if $imageDigest } }
26+ { {- printf " %s@%s" $imageName $imageDigest -} }
27+ { {- else } }
28+ { {- printf " %s" $imageName -} }
29+ { {- end } }
30+ { {- end -} }
31+ { {- end -} }
Original file line number Diff line number Diff line change 9999 {{- end }}
100100 containers :
101101 - name : image-scanner
102- image : {{ .image }}
102+ image : {{ include "common .image" (dict "component" $.Values.imageScanner "global" $.Values.global ) }}
103103 imagePullPolicy : {{ .imagePullPolicy }}
104104 {{- if and $.Values.global $.Values.global.containerSecurityContext }}
105105 securityContext :
Original file line number Diff line number Diff line change 1+ global :
2+ containerRegistry : " quay.io/devtron"
13imageScanner :
24 configs :
35 CLAIR_ADDR : clair.devtroncd:6060
@@ -13,7 +15,7 @@ imageScanner:
1315 dbconfig :
1416 secretName : postgresql-postgresql
1517 keyName : postgresql-password
16- image : " quay.io/devtron/ image-scanner:b278f42b-334-11119"
18+ image : " image-scanner:b278f42b-334-11119"
1719 imagePullPolicy : IfNotPresent
1820 labels : {}
1921 replicaCount : 1
You can’t perform that action at this time.
0 commit comments