Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dependency-track] add option to mount custom truststore #195

Open
Mattew16 opened this issue Oct 14, 2022 · 1 comment
Open

[dependency-track] add option to mount custom truststore #195

Mattew16 opened this issue Oct 14, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Mattew16
Copy link

Idea is to implement function from this https://docs.dependencytrack.org/getting-started/internal-ca/

@davidkarlsen davidkarlsen added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 24, 2022
@robmyersrobmyers
Copy link

I would also like this feature and think a general purpose volume mount approach like the following might work.

diff --git a/dependency-track/templates/backend/deployment.yaml b/dependency-track/templates/backend/deployment.yaml
index 33d245c..37d87a7 100644
--- a/third-party/charts/dependency-track/templates/backend/deployment.yaml
+++ b/third-party/charts/dependency-track/templates/backend/deployment.yaml
@@ -62,6 +62,9 @@ spec:
           mountPath: /data
         - name: tmp
           mountPath: /tmp
+        {{- if .Values.apiserver.additionalVolumeMounts }}
+{{ toYaml .Values.apiserver.additionalVolumeMounts | indent 8 }}
+        {{- end }}
         ports:
         - name: api
           containerPort: 8080
@@ -115,3 +118,6 @@ spec:
           {}
         {{- end -}}
         {{- end }}
+        {{- if .Values.apiserver.additionalVolumes }}
+{{ toYaml .Values.apiserver.additionalVolumes | indent 6 }}
+        {{- end }}
diff --git a/third-party/charts/dependency-track/templates/frontend/deployment.yaml b/third-party/charts/dependency-track/templates/frontend/deployment.yaml
index 26095d2..4d23bf8 100644
--- a/third-party/charts/dependency-track/templates/frontend/deployment.yaml
+++ b/third-party/charts/dependency-track/templates/frontend/deployment.yaml
@@ -39,6 +39,9 @@ spec:
         volumeMounts:
         - name: tmp
           mountPath: /tmp
+        {{- if .Values.frontend.additionalVolumeMounts }}
+{{ toYaml .Values.frontend.additionalVolumeMounts | indent 8 }}
+        {{- end }}
         #- name: config
         #  mountPath: /app/static
         {{- if .Values.frontend.livenessProbe.enabled }}
@@ -78,6 +81,9 @@ spec:
       volumes:
       - name: tmp
         emptyDir: {}
+        {{- if .Values.frontend.additionalVolumes }}
+{{ toYaml .Values.frontend.additionalVolumes | indent 6 }}
+        {{- end }}
       # https://github.com/DependencyTrack/frontend/issues/60
       # - name: config
       #  configMap:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants