Skip to content

Commit

Permalink
support extraPodLabels
Browse files Browse the repository at this point in the history
support extraPodLabels

Signed-off-by: Sean Harrington <[email protected]>
  • Loading branch information
initharrington committed Oct 1, 2024
1 parent 853031c commit e9673fd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/dependency-track/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +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.extraPodLabels | object | `{}` | |
| 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 @@ -84,7 +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.extraPodLabels | object | `{}` | |
| frontend.image.pullPolicy | string | `"IfNotPresent"` | |
| frontend.image.registry | string | `""` | Override common.image.registry for the frontend. |
| frontend.image.repository | string | `"dependencytrack/frontend"` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/dependency-track/templates/api-server/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
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/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
"extraContainers": {
"$ref": "#/$defs/objectArray"
},
"extraPodLabels": {
"type": "object"
},
"tolerations": {
"$ref": "#/$defs/objectArray"
},
Expand Down Expand Up @@ -174,6 +177,9 @@
"extraContainers": {
"$ref": "#/$defs/objectArray"
},
"extraPodLabels": {
"type": "object"
},
"tolerations": {
"$ref": "#/$defs/objectArray"
},
Expand Down
4 changes: 2 additions & 2 deletions charts/dependency-track/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ apiServer:
extraEnvFrom: []
# -- Additional containers to deploy. Supports templating.
extraContainers: []
extraPodLabels: []
extraPodLabels: {}
tolerations: []
probes:
liveness:
Expand Down Expand Up @@ -162,7 +162,7 @@ frontend:
extraEnvFrom: []
# -- Additional containers to deploy. Supports templating.
extraContainers: []
extraPodLabels: []
extraPodLabels: {}
tolerations: []
probes:
liveness:
Expand Down

0 comments on commit e9673fd

Please sign in to comment.