Skip to content

Commit

Permalink
Add registry override to apiServer and frontend (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: David Ryzik <[email protected]>
  • Loading branch information
davidr-bgp authored Jul 22, 2024
1 parent 7974546 commit 5fdfa71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/dependency-track/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ that allows organizations to identify and reduce risk in the software supply cha
| apiServer.extraEnv | list | `[]` | |
| apiServer.extraEnvFrom | list | `[]` | |
| apiServer.image.pullPolicy | string | `"IfNotPresent"` | |
| apiServer.image.registry | string | `""` | Override common registry |
| apiServer.image.repository | string | `"dependencytrack/apiserver"` | |
| apiServer.image.tag | string | `nil` | |
| apiServer.initContainers | list | `[]` | |
Expand Down Expand Up @@ -80,6 +81,7 @@ that allows organizations to identify and reduce risk in the software supply cha
| frontend.extraEnv | list | `[]` | |
| frontend.extraEnvFrom | list | `[]` | |
| frontend.image.pullPolicy | string | `"IfNotPresent"` | |
| frontend.image.registry | string | `""` | Override common registry |
| frontend.image.repository | string | `"dependencytrack/frontend"` | |
| frontend.image.tag | string | `nil` | |
| frontend.initContainers | list | `[]` | |
Expand Down
4 changes: 2 additions & 2 deletions charts/dependency-track/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ API server fully qualified name
API server image
*/}}
{{- define "dependencytrack.apiServerImage" -}}
{{- printf "%s/%s:%s" .Values.common.image.registry .Values.apiServer.image.repository (.Values.apiServer.image.tag | default .Chart.AppVersion) -}}
{{- printf "%s/%s:%s" (.Values.apiServer.image.registry | default .Values.common.image.registry) .Values.apiServer.image.repository (.Values.apiServer.image.tag | default .Chart.AppVersion) -}}
{{- end -}}


Expand Down Expand Up @@ -123,7 +123,7 @@ Frontend fully qualified name
Frontend image
*/}}
{{- define "dependencytrack.frontendImage" -}}
{{- printf "%s/%s:%s" .Values.common.image.registry .Values.frontend.image.repository (.Values.frontend.image.tag | default .Chart.AppVersion) -}}
{{- printf "%s/%s:%s" (.Values.frontend.image.registry | default .Values.common.image.registry) .Values.frontend.image.repository (.Values.frontend.image.tag | default .Chart.AppVersion) -}}
{{- end -}}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions charts/dependency-track/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ common:
apiServer:
annotations: {}
image:
registry: ''
repository: dependencytrack/apiserver
tag: ~
pullPolicy: IfNotPresent
Expand Down Expand Up @@ -105,6 +106,7 @@ frontend:
replicaCount: 1
annotations: {}
image:
registry: ''
repository: dependencytrack/frontend
tag: ~
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 5fdfa71

Please sign in to comment.