-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: create infra-server-ca secret
- Loading branch information
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
{{- if include "server.enabled" . | eq "true" }} | ||
{{- if (not .Values.server.config.tls) }} | ||
{{- $secret := lookup "v1" "Secret" .Release.Namespace (printf "%s-ca" (include "server.fullname" .)) -}} | ||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "server.fullname" . }}-ca | ||
labels: | ||
{{- include "server.labels" . | nindent 4 }} | ||
stringData: | ||
|
||
{{- if $secret.data }} | ||
ca.crt: | | ||
{{- get $secret.data "ca.crt" | b64dec | nindent 4 }} | ||
ca.key: | | ||
{{- get $secret.data "ca.key" | b64dec | nindent 4 }} | ||
|
||
{{- else }} | ||
{{- $ca := genCA "Infra Server" 3650 }} | ||
ca.crt: | | ||
{{- $ca.Cert | nindent 4 }} | ||
ca.key: | | ||
{{- $ca.Key | nindent 4 }} | ||
|
||
{{- end }}{{/* if secret.data */}} | ||
{{- end }}{{/* if not tls */}} | ||
{{- end }}{{/* if server.enabled */}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -531,6 +531,10 @@ server: | |
# - name: [email protected] | ||
# password: file:/var/run/secrets/[email protected] | ||
|
||
# TLS configuration for the API server. Defaults to generating a self-signed CA and | ||
# generating certificates from that CA. | ||
tls: {} | ||
|
||
## Default connector configurations | ||
connector: | ||
|
||
|