Skip to content

Commit

Permalink
Support flame 2.x in flame chart
Browse files Browse the repository at this point in the history
  • Loading branch information
rlex committed Nov 30, 2021
1 parent 30c892f commit f60cb90
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/flame/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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.1.0
version: 0.2.0

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "latest"
appVersion: "2.1.0"
4 changes: 3 additions & 1 deletion charts/flame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Helm chart for flame "server startpage"

Please note that flame stores settings in sqlite database and with default settings (persistance.enabled: false) it will lose all settings after pod restart

It's also worth mentioning that flame doesn't have versioned container images - so chart is set to pull "latest" tag. Beware of surprise updates.
**Please note that by default flame will use password "password", please edit flame.password variable with your preferred password or upload secret with key PASSWORD and use flame.existingSecret to point flame to that secret**

Chart supports flame ingress discovery, you will need to enable kubernetes integration in settings (cog icon in lower left corner, "Other" setting menu) and add following annotations to your ingresses:
```yaml
Expand All @@ -31,4 +31,6 @@ persistence:
enabled: true
size: 1Gi
storageClassName: longhorn
flame:
password: password
```
10 changes: 10 additions & 0 deletions charts/flame/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
- name: PASSWORD
valueFrom:
secretKeyRef:
{{- if .Values.flame.existingSecret }}
name: {{ .Values.flame.existingSecret }}
{{- else }}
name: {{ .Release.Name }}-secret
{{- end }}
key: password
volumeMounts:
- name: data
mountPath: /app/data
Expand Down
12 changes: 12 additions & 0 deletions charts/flame/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if or .Values.flame.password }}
{{- if not .Values.flame.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-secret
labels:
{{- include "flame.labels" . | nindent 4 }}
data:
password: {{ .Values.flame.password | b64enc | quote }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/flame/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

flame:
password: password
existingSecret:

podAnnotations: {}

podSecurityContext: {}
Expand Down

0 comments on commit f60cb90

Please sign in to comment.