[mealie] Support mealie v1.0.0 (#1587)

* Support mealie-v1
This commit is contained in:
Jonathan Bartlett 2022-05-30 11:30:13 +01:00 committed by GitHub
parent 9d91ac81c0
commit 08d70d2b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 31 deletions

View File

@ -1,9 +1,9 @@
---
apiVersion: v2
appVersion: v0.5.6
appVersion: v1.0.0beta-2
description: Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family.
name: mealie
version: 4.2.2
version: 5.0.0
kubeVersion: ">=1.16.0-0"
keywords:
- grocy
@ -14,15 +14,15 @@ sources:
maintainers:
- name: bjw-s
email: me@bjw-s.dev
- name: jonnobrow
email: jonathan@jonnobrow.co.uk
dependencies:
- name: common
repository: https://library-charts.k8s-at-home.com
version: 4.4.2
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 10.16.2
condition: postgresql.enabled
annotations:
artifacthub.io/changes: |-
- kind: changed
description: Upgraded `common` chart dependency to version 4.4.2
description: Removed `postgresql` chart dependency.
- kind: changed
description: "**BREAKING** Updated mealie to v1.0.0beta-2. Please check the application documentation for upgrade steps."

View File

@ -1 +1,28 @@
---
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Append the hardcoded settings */}}
{{- define "mealie.hardcodedValues" -}}
env:
API_URL: "http://localhost:9000"
additionalContainers:
api:
name: mealie-api
image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag }}"
imagePullPolicy: "{{ .Values.api.image.pullPolicy }}"
env:
- name: API_PORT
value: "9000"
ports:
- name: api
containerPort: 9000
{{- with (.Values.api.volumeMounts | toYaml) }}
volumeMounts:
{{- nindent 6 . }}
{{- end }}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "mealie.hardcodedValues" . | fromYaml) -}}
{{/* Render the templates */}}
{{ include "common.all" . }}

View File

@ -9,26 +9,26 @@ image:
# -- image repository
repository: hkotel/mealie
# -- image tag
# @default -- chart.appVersion
tag:
tag: frontend-v1.0.0beta-2
# -- image pull policy
pullPolicy: IfNotPresent
# -- environment variables. See [image docs](https://hay-kot.github.io/mealie/documentation/getting-started/install/#env-variables) for more details.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC
# -- Set the application database type
DB_ENGINE: sqlite
# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
main:
ports:
http:
port: 80
port: 3000
api:
enabled: true
port: 9000
# -- environment variables. See [frontend config](https://nightly.mealie.io/documentation/getting-started/installation/frontend-config/) for more details.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC
ingress:
# -- Enable and configure ingress settings for the chart under this key.
@ -39,18 +39,29 @@ ingress:
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence:
config:
enabled: false
api-data:
enabled: true
mountPath: /app/data/
accessMode: ReadWriteOnce
size: 10Gi
# -- Enable and configure postgresql database subchart under this key.
# For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql)
# @default -- See values.yaml
postgresql:
enabled: false
postgresqlUsername: mealie
postgresqlPassword: mealie-pass
postgresqlDatabase: mealie
persistence:
enabled: false
# storageClass: ""
api:
image:
# -- image repository
repository: hkotel/mealie
# -- image tag
tag: api-v1.0.0beta-2
# -- image pull policy
pullPolicy: IfNotPresent
# -- environment variables. See [backend config](https://nightly.mealie.io/documentation/getting-started/installation/backend-config/) for more details.
# @default -- See below
env:
# -- Set the container timezone
TZ: UTC
# -- volume mounts. Name should match a key in .Values.persistence
# @default -- See below
volumeMounts:
- name: api-data
mountPath: /app/data/