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

feat: ability to specify the ca secret key #212

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/testkube-cloud-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ spec:
- mountPath: {{ $certsDir }}/testkube-custom-ca.pem
name: {{ .Values.global.customCaSecretRef }}
readOnly: true
subPath: ca.crt
subPath: {{ .Values.global.customCaSecretKey }}
{{- end }}
{{- if or .Values.api.features.bootstrapConfig.enabled .Values.api.features.bootstrapOrg }}
- mountPath: /app/config
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube-cloud-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ global:
certManager:
# -- Certificate Issuer ref (only used if `provider` is set to `cert-manager`)
issuerRef: ""
# -- Custom CA to use as a trusted CA during TLS connections. Specify a secret with the PEM encoded CA under the ca.crt key.
# -- Custom CA to use as a trusted CA during TLS connections. Specify a secret with the PEM encoded CA under the key specified by customCaSecretKey.
customCaSecretRef: ""
# -- Custom CA to use as a trusted CA during TLS connections. Specify a key for the secret specified under customCaSecretRef.
customCaSecretKey: "ca.crt"
# -- Global image pull secrets (provided usually by a parent chart like testkube-enterprise)
imagePullSecrets: []
# -- Global image registry to be prepended for to all images (usually defined in parent chart)
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ global:
certManager:
# -- Certificate Issuer ref (only used if `provider` is set to `cert-manager`)
issuerRef: ""
# -- Custom CA to use as a trusted CA during TLS connections. Specify a secret with the PEM encoded CA under the ca.crt key.
# -- Custom CA to use as a trusted CA during TLS connections. Specify a secret with the PEM encoded CA under the key specified by customCaSecretKey.
customCaSecretRef: ""
# -- Custom CA to use as a trusted CA during TLS connections. Specify a key for the secret specified under customCaSecretRef.
customCaSecretKey: "ca.crt"
# -- Image pull secrets to use for testkube-cloud-api and testkube-cloud-ui
imagePullSecrets: []
# -- Global image registry to be prepended for to all images (usually defined in parent chart)
Expand Down
2 changes: 1 addition & 1 deletion charts/testkube-worker-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ spec:
- mountPath: {{ $certsDir }}/testkube-custom-ca.pem
name: {{ .Values.global.customCaSecretRef }}
readOnly: true
subPath: ca.crt
subPath: {{ .Values.global.customCaSecretKey }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube-worker-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# Declare variables to be passed into your templates.

global:
# -- Custom CA to use as a trusted CA during TLS connections. Specify a secret with the PEM encoded CA under the ca.crt key.
# -- Custom CA to use as a trusted CA during TLS connections. Specify a secret with the PEM encoded CA under the key specified by customCaSecretKey.
customCaSecretRef: ""
# -- Custom CA to use as a trusted CA during TLS connections. Specify a key for the secret specified under customCaSecretRef.
customCaSecretKey: "ca.crt"
# -- Image pull secrets
imagePullSecrets: []
# -- Image pull policy
Expand Down
Loading