Skip to content

Commit

Permalink
feat(helm-chart): Add support for passing multiple custom certificate…
Browse files Browse the repository at this point in the history
… authorities (#110)

* feat(helm-chart): Add support for passing multiple custom certificate authorities

* Bump Chart version

---------

Co-authored-by: Marcin Jasion <mjasion@users.noreply.github.com>
  • Loading branch information
mjasion and mjasion authored Jun 30, 2023
1 parent 2a78c30 commit 5c66b01
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/studio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 6 additions & 0 deletions charts/studio/templates/configmap-ca-cert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ data:
self_signed_ca.crt: |
{{ .Values.global.customCaCert | indent 4}}
{{- end }}
{{- if .Values.global.customCaCerts }}
{{- range $index, $customCa := .Values.global.customCaCerts }}
self_signed_ca_{{ $index }}.crt:
{{ $customCa | indent 4}}
{{- end }}
{{- end }}
11 changes: 11 additions & 0 deletions charts/studio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ global:
# We recommend you set this externally. If left empty, a random key will be generated.
secretKey: ""

# Deprecated in favor of `customCaCerts`
# -- Studio: Custom CA certificate in PEM format
# customCaCert: |-
# -----BEGIN CERTIFICATE-----
Expand All @@ -26,6 +27,16 @@ global:
#
customCaCert: ""

# -- Studio: Custom CA certificate in PEM format
# customCaCerts:
# - |-
# -----BEGIN CERTIFICATE-----
# ....
# -----END CERTIFICATE-----
#
customCaCerts: []


# -- Studio: Additional environment variables for all pods
envVars: {}
# Example:
Expand Down

0 comments on commit 5c66b01

Please sign in to comment.