Skip to content

Commit

Permalink
fix: add tmp directory for checking out git repos in test discovery (#…
Browse files Browse the repository at this point in the history
…243)

* feat: added tmp volume

* fix: tmp vol mount always

* fix: tmp vol mount always

* fix: remove unnecessery volumes
  • Loading branch information
exu authored Dec 16, 2024
1 parent 170adc0 commit 1301593
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,10 @@ spec:
port: {{ if .Values.api.tls.serveHTTPS }}https{{ else }}http{{ end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if or .Values.api.tls.serveHTTPS .Values.global.enterpriseLicenseSecretRef .Values.global.customCaSecretRef .Values.api.features.bootstrapConfig.enabled .Values.api.features.bootstrapOrg }}
volumeMounts:
- mountPath: /tmp
readOnly: false
name: tmp
{{- if .Values.api.tls.serveHTTPS }}
- mountPath: /tmp/serving-cert/crt.pem
readOnly: true
Expand Down Expand Up @@ -511,7 +513,6 @@ spec:
- mountPath: /app/config
name: testkube-config
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -524,8 +525,9 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if or .Values.api.tls.serveHTTPS .Values.global.enterpriseLicenseSecretRef .Values.global.customCaSecretRef .Values.api.features.bootstrapConfig.enabled .Values.api.features.bootstrapOrg }}
volumes:
- name: tmp
emptyDir: {}
{{- if .Values.api.tls.serveHTTPS }}
- name: serving-cert
secret:
Expand All @@ -548,4 +550,3 @@ spec:
name: {{ include "testkube-cloud-api.fullname" . }}-config
name: testkube-config
{{- end }}
{{- end }}

0 comments on commit 1301593

Please sign in to comment.