diff --git a/charts/dependency-track/README.md b/charts/dependency-track/README.md index 096b0f2..8856eba 100644 --- a/charts/dependency-track/README.md +++ b/charts/dependency-track/README.md @@ -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"` | | @@ -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"` | | diff --git a/charts/dependency-track/templates/api-server/deployment.yaml b/charts/dependency-track/templates/api-server/deployment.yaml index 9e397c5..d88d5f3 100644 --- a/charts/dependency-track/templates/api-server/deployment.yaml +++ b/charts/dependency-track/templates/api-server/deployment.yaml @@ -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 diff --git a/charts/dependency-track/templates/frontend/deployment.yaml b/charts/dependency-track/templates/frontend/deployment.yaml index 999f793..3a43ca7 100644 --- a/charts/dependency-track/templates/frontend/deployment.yaml +++ b/charts/dependency-track/templates/frontend/deployment.yaml @@ -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 }} diff --git a/charts/dependency-track/values.yaml b/charts/dependency-track/values.yaml index 45bc833..5bcd757 100644 --- a/charts/dependency-track/values.yaml +++ b/charts/dependency-track/values.yaml @@ -70,6 +70,7 @@ apiServer: extraEnvFrom: [] # -- Additional containers to deploy. Supports templating. extraContainers: [] + extraPodLabels: [] tolerations: [] probes: liveness: @@ -161,6 +162,7 @@ frontend: extraEnvFrom: [] # -- Additional containers to deploy. Supports templating. extraContainers: [] + extraPodLabels: [] tolerations: [] probes: liveness: