-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pearl): export config in values
- container port var is now different from service port - add configuration for liveness/readiness/startup probes - add vault secrets - add sealed secrets
- Loading branch information
Showing
5 changed files
with
172 additions
and
31 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.api.sealedSecret.enabled -}} | ||
{{- range $key, $value := .Values.api.sealedSecret.config }} | ||
--- | ||
apiVersion: bitnami.com/v1alpha1 | ||
kind: SealedSecret | ||
metadata: | ||
name: {{ $key }} | ||
spec: | ||
encryptedData: | ||
{{- range $cle, $valeur := $value.secretEnv }} | ||
{{ $cle }}: {{ $valeur }} | ||
{{- end }} | ||
template: | ||
metadata: | ||
name: {{ $key }} | ||
namespace: {{ $value.namespace }} | ||
type: Opaque | ||
{{- end }} | ||
{{- end -}} |
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,32 @@ | ||
{{- if .Values.api.vaultStaticSecret.enabled -}} | ||
{{- range $key, $value := .Values.api.vaultStaticSecret.config }} | ||
--- | ||
apiVersion: secrets.hashicorp.com/v1beta1 | ||
kind: VaultStaticSecret | ||
metadata: | ||
name: {{ $key }} | ||
spec: | ||
rolloutRestartTargets: | ||
- kind: Deployment | ||
name: {{ include "pearl.api.fullname" $ }} | ||
|
||
type: kv-v2 | ||
|
||
# mount path | ||
mount: {{ $value.mount }} | ||
|
||
# path of the secret | ||
path: {{ $value.path }} | ||
|
||
# dest k8s secret | ||
destination: | ||
name: {{ $value.secretName }} | ||
create: true | ||
|
||
# static secret refresh interval | ||
refreshAfter: {{ $value.refreshAfter }} | ||
|
||
# Name of the CRD to authenticate to Vault | ||
vaultAuthRef: {{ $value.vaultAuthRef }} | ||
{{- end }} | ||
{{- end -}} |
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