Skip to content

Commit

Permalink
fix(mirrorbits[-lite]): set default empty secret values (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve authored Sep 5, 2023
1 parent 95ef69a commit f90da83
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/mirrorbits-lite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: Mirrobits lite helm chart for Kubernetes
name: mirrorbits-lite
version: 0.0.1
version: 0.0.2
6 changes: 2 additions & 4 deletions charts/mirrorbits-lite/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ if .Values.conf -}}
---
apiVersion: v1
kind: Secret
Expand All @@ -7,8 +6,7 @@ metadata:
type: Opaque
data:
mirrorbits.conf: {{ .Values.conf | b64enc }}
{{- end -}}
{{ if .Values.geoipupdate -}}

---
apiVersion: v1
kind: Secret
Expand All @@ -18,7 +16,7 @@ type: Opaque
data:
GEOIPUPDATE_ACCOUNT_ID: {{ .Values.geoipupdate.account_id | b64enc }}
GEOIPUPDATE_LICENSE_KEY: {{ .Values.geoipupdate.license_key | b64enc }}
{{- end -}}

{{ if .Values.repository.secrets.enabled -}}
---
apiVersion: v1
Expand Down
8 changes: 4 additions & 4 deletions charts/mirrorbits-lite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ geoipupdate:
image:
repository: maxmindinc/geoipupdate
tag: v6.0.0
# Secret values commented below for reference:
#account_id:
#license_key:
# Secret values, set to empty below for reference:
account_id: ""
license_key: ""
editions: GeoLite2-ASN GeoLite2-City GeoLite2-Country
update_frequency: 24
# Accept the mirrorbits.conf data
# mirrorbits.conf data, to be completed as secret with Redis credentials
conf: |
Repository: /srv/repo
Templates: /usr/share/mirrorbits/templates
Expand Down
2 changes: 1 addition & 1 deletion charts/mirrorbits/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- email: me@olblak.com
name: olblak
name: mirrorbits
version: 0.65.0
version: 0.65.1
8 changes: 4 additions & 4 deletions charts/mirrorbits/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ geoipupdate:
image:
repository: maxmindinc/geoipupdate
tag: v6.0.0
# Secret values commented below for reference:
#account_id:
#license_key:
# Secret values, set to empty below for reference:
account_id: ""
license_key: ""
editions: GeoLite2-ASN GeoLite2-City GeoLite2-Country
update_frequency: 24
mirrorbits:
# Accept the mirrorbits.conf data
# mirrorbits.conf data, to be completed as secret with Redis credentials
conf: |
Repository: /srv/repo
Templates: /usr/share/mirrorbits/templates
Expand Down

0 comments on commit f90da83

Please sign in to comment.