Skip to content

Commit

Permalink
support extraPodLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
initharrington committed Sep 30, 2024
1 parent 33bbbb7 commit 26b5b38
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 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.extraContainers | list | `[]` | Additional containers to deploy. Supports templating. |
| apiServer.extraEnv | list | `[]` | |
| apiServer.extraEnvFrom | list | `[]` | |
| apiServer.extraPodLabels | list | `[]` | |
| apiServer.image.pullPolicy | string | `"IfNotPresent"` | |
| apiServer.image.registry | string | `""` | Override common.image.registry for the API server. |
| apiServer.image.repository | string | `"dependencytrack/apiserver"` | |
Expand Down Expand Up @@ -83,6 +84,7 @@ that allows organizations to identify and reduce risk in the software supply cha
| frontend.extraContainers | list | `[]` | Additional containers to deploy. Supports templating. |
| frontend.extraEnv | list | `[]` | |
| frontend.extraEnvFrom | list | `[]` | |
| frontend.extraPodLabels | list | `[]` | |
| frontend.image.pullPolicy | string | `"IfNotPresent"` | |
| frontend.image.registry | string | `""` | Override common.image.registry for the frontend. |
| frontend.image.repository | string | `"dependencytrack/frontend"` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/dependency-track/templates/api-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ spec:
replicas: 1
selector:
matchLabels: {{- include "dependencytrack.apiServerSelectorLabels" . | nindent 6 }}
{{- if .Values.apiServer.extraPodLabels }}
{{- toYaml .Values.apiServer.extraPodLabels | nindent 6 }}
{{- end }}
template:
metadata:
labels: {{ include "dependencytrack.apiServerSelectorLabels" . | nindent 8 }}
{{- if .Values.apiServer.extraPodLabels }}
{{- toYaml .Values.apiServer.extraPodLabels | nindent 8 }}
{{- end }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
Expand Down
6 changes: 6 additions & 0 deletions charts/dependency-track/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ spec:
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels: {{- include "dependencytrack.frontendSelectorLabels" . | nindent 6 }}
{{- if .Values.frontend.extraPodLabels }}
{{- toYaml .Values.frontend.extraPodLabels | nindent 6 }}
{{- end }}
template:
metadata:
labels: {{- include "dependencytrack.frontendSelectorLabels" . | nindent 8 }}
{{- if .Values.frontend.extraPodLabels }}
{{- toYaml .Values.frontend.extraPodLabels | nindent 8 }}
{{- end }}
{{- with .Values.frontend.annotations }}
annotations: {{- toYaml . | nindent 8 }}
{{- 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 @@ -70,6 +70,7 @@ apiServer:
extraEnvFrom: []
# -- Additional containers to deploy. Supports templating.
extraContainers: []
extraPodLabels: []
tolerations: []
probes:
liveness:
Expand Down Expand Up @@ -161,6 +162,7 @@ frontend:
extraEnvFrom: []
# -- Additional containers to deploy. Supports templating.
extraContainers: []
extraPodLabels: []
tolerations: []
probes:
liveness:
Expand Down

0 comments on commit 26b5b38

Please sign in to comment.