Skip to content

Commit

Permalink
feat: ability to specify custom ca secret key (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
ed382 committed Sep 19, 2024
1 parent 0e84fa3 commit ab15f24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/testkube-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ spec:
- mountPath: /etc/testkube/certs/testkube-custom-ca.pem
name: {{ .Values.cloud.tls.customCaSecretRef }}
readOnly: true
subPath: ca.crt
subPath: {{ .Values.cloud.tls.customCaSecretKey }}
{{- end }}
{{- with .Values.additionalVolumeMounts }}
{{- toYaml . | nindent 12 -}}
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ cloud:
enabled: true
## Toggle should the client skip verifying the Agent API server cert in Cloud/Enterprise
skipVerify: false
## If specified, injects a custom CA into the list of trusted CAs. Specify a secret with the PEM encoded CA under the ca.crt key.
## If specified, injects a custom CA into the list of trusted CAs. Specify a secret with the PEM encoded CA under the key specified by customCaSecretKey.
customCaSecretRef: ""
## Specify the key for the PEM encoded CA in the secret specified by customCaSecretRef.
customCaSecretKey: "ca.crt"
# -- Specifies the path to the directory (skip the trailing slash) where CA certificates should be mounted. The mounted file should container a PEM encoded CA certificate.
customCaDirPath: ""
certificate:
Expand Down
4 changes: 3 additions & 1 deletion charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ testkube-api:
enabled: true
# -- Toggle should the client skip verifying the Agent API server cert in Cloud/Enterprise
skipVerify: false
## If specified, injects a custom CA into the list of trusted CAs. Specify a secret with the PEM encoded CA under the ca.crt key.
## If specified, injects a custom CA into the list of trusted CAs. Specify a secret with the PEM encoded CA under the key specified by customCaSecretKey.
customCaSecretRef: ""
## Specify the key for the PEM encoded CA in the secret specified by customCaSecretRef.
customCaSecretKey: "ca.crt"
# -- Specifies the path to the directory (skip the trailing slash) where CA certificates should be mounted. The mounted file should container a PEM encoded CA certificate.
customCaDirPath: ""
certificate:
Expand Down

0 comments on commit ab15f24

Please sign in to comment.