Skip to content

Commit

Permalink
fix: custom ca secret key for legacy job templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ed382 committed Sep 30, 2024
1 parent 50ae7bb commit d9077c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
- name: {{`{{ .RunnerCustomCASecret }}`}}
mountPath: /etc/testkube/certs/testkube-custom-ca.pem
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{`{{- end }}`}}
{{`{{- if .ArtifactRequest }}`}}
{{`{{- if and .ArtifactRequest.VolumeMountPath (or .ArtifactRequest.StorageClassName .ArtifactRequest.UseDefaultStorageClassName) }}`}}
Expand Down Expand Up @@ -164,7 +164,7 @@ spec:
- name: {{`{{ .RunnerCustomCASecret }}`}}
mountPath: /etc/testkube/certs/testkube-custom-ca.pem
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{`{{- end }}`}}
{{`{{- end }}`}}
{{- with .Values.additionalJobVolumeMounts }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- name: {{`{{ .RunnerCustomCASecret }}`}}
mountPath: /etc/testkube/certs/testkube-custom-ca.pem
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{`{{- end }}`}}
{{`{{- if or .ArtifactRequest .AgentAPITLSSecret }}`}}
{{`{{- if .ArtifactRequest.VolumeMountPath }}`}}
Expand Down
4 changes: 2 additions & 2 deletions charts/testkube-api/templates/_job-template.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
- name: {{`{{ .RunnerCustomCASecret }}`}}
mountPath: /etc/testkube/certs/testkube-custom-ca.pem
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{`{{- end }}`}}
{{`{{- if .ArtifactRequest }}`}}
{{`{{- if and .ArtifactRequest.VolumeMountPath (or .ArtifactRequest.StorageClassName .ArtifactRequest.UseDefaultStorageClassName) }}`}}
Expand Down Expand Up @@ -152,7 +152,7 @@ spec:
- name: {{`{{ .RunnerCustomCASecret }}`}}
mountPath: /etc/testkube/certs/testkube-custom-ca.pem
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{`{{- end }}`}}
{{`{{- if .AgentAPITLSSecret }}`}}
- mountPath: /tmp/agent-cert
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-api/templates/_slave-pod-template.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- name: {{`{{ .RunnerCustomCASecret }}`}}
mountPath: /etc/testkube/certs/testkube-custom-ca.pem
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{`{{- end }}`}}
{{`{{- if .ArtifactRequest }}`}}
{{`{{- if and .ArtifactRequest.VolumeMountPath (or .ArtifactRequest.StorageClassName .ArtifactRequest.UseDefaultStorageClassName) }}`}}
Expand Down

0 comments on commit d9077c1

Please sign in to comment.