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 custom ca secret key #939

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-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