Skip to content

Commit

Permalink
fix(secrets): use fixed secret name (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin authored Feb 12, 2024
1 parent 0ddda61 commit a6df972
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "0.54.2-beta"
appVersion: "0.55.0-beta"
description: the Lago open source billing app
name: lago
version: 0.4.1
version: 0.4.2
dependencies:
- name: postgresql
version: "13.2.2"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Lago Helm Chart

Version: 0.4.1
Lago Version : v0.54.2-beta
Version: 0.4.2
Lago Version : v0.55.0-beta

## Configuration

Expand Down
6 changes: 3 additions & 3 deletions templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-secrets
name: lago-secrets
annotations:
helm.sh/resource-policy: keep
type: Opaque
data:
{{ $secretObj := (lookup "v1" "Secret" .Release.Namespace "{{ .Release.Name }}-secrets") | default dict }}
{{ $secretData := (get $secretObj "data" | default dict) }}
{{ $secretObj := (lookup "v1" "Secret" .Release.Namespace "lago-secrets") | default dict}}
{{ $secretData := (get $secretObj "data") | default dict }}

{{ $rsaPrivateKey := (get $secretData "rsaPrivateKey") | default (genPrivateKey "rsa" | b64enc | b64enc) }}
rsaPrivateKey: {{ $rsaPrivateKey | quote }}
Expand Down
10 changes: 5 additions & 5 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "0.54.2-beta"
version: "0.55.0-beta"

#apiUrl:
#frontUrl:
# apiUrl:
# frontUrl:

# Only for Development, Staging or PoC, you should use a managed Redis instance for Production
redis:
Expand Down Expand Up @@ -62,8 +62,8 @@ global:
signup:
enabled: true

#ingress:
#enabled:
ingress:
enabled: false
#frontHostname:
#apiHostname:
#className:
Expand Down

0 comments on commit a6df972

Please sign in to comment.