Describe the bug
When configuring image pull secrets when using private docker repositories for both postgres and dependency track the charts require different format image pull secrets and dependency track only reads them from global
The dependency track chart expects image pull secrets in the values:
global:
imagePullSecrets:
- name: regcred
The postgres chart expects image pull secrets in the values:
global:
imagePullSecrets:
- regcred
Version of Helm and Kubernetes:
Which chart:
Dependency Track
How to reproduce it (as minimally and precisely as possible):
Using values
global:
imageRegistry: private-repo/repo
imagePullSecrets:
- name: regcred
What happened:
# Source: dependency-track/charts/dependency-track/templates/backend/deployment.yaml
apiVersion: apps/v1
kind: Deployment
@@ -187,6 +251,8 @@
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: backend
spec:
+ imagePullSecrets:
+ - name: regcred
---
+# Source: dependency-track/charts/postgresql/templates/statefulset.yaml
+apiVersion: apps/v1
+kind: StatefulSet
+ spec:
+ imagePullSecrets:
+ - name: map[name:regcred]
What you expected to happen:
# Source: dependency-track/charts/dependency-track/templates/backend/deployment.yaml
apiVersion: apps/v1
kind: Deployment
@@ -187,6 +251,8 @@
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: backend
spec:
+ imagePullSecrets:
+ - name: regcred
---
+# Source: dependency-track/charts/postgresql/templates/statefulset.yaml
+apiVersion: apps/v1
+kind: StatefulSet
+ spec:
+ imagePullSecrets:
+ - name: regcred
Anything else we need to know:
Rather than using global values for the image pull secrets could you add .Values.imagePullSecrets value to the dependency track chart and default to the global value if it's null
Describe the bug
When configuring image pull secrets when using private docker repositories for both postgres and dependency track the charts require different format image pull secrets and dependency track only reads them from global
The dependency track chart expects image pull secrets in the values:
The postgres chart expects image pull secrets in the values:
Version of Helm and Kubernetes:
Which chart:
Dependency Track
How to reproduce it (as minimally and precisely as possible):
Using values
What happened:
What you expected to happen:
Anything else we need to know:
Rather than using global values for the image pull secrets could you add
.Values.imagePullSecretsvalue to the dependency track chart and default to the global value if it's null