Skip to content

Commit

Permalink
Support extraPodLabels for apiserver and frontend
Browse files Browse the repository at this point in the history
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

support extraPodLabels

support extraPodLabels

Signed-off-by: Sean Harrington <[email protected]>

support extraPodLabels

Signed-off-by: Sean Harrington <[email protected]>

support extraPodlabels

remove these
  • Loading branch information
dependabot[bot] authored and initharrington committed Oct 1, 2024
1 parent 725dc4e commit 9a83e0a
Show file tree
Hide file tree
Showing 6 changed files with 19 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 | 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 @@ -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 | 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/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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
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
3 changes: 3 additions & 0 deletions charts/dependency-track/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ spec:
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
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
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 9a83e0a

Please sign in to comment.