Browse Source

Publish new changes in catalog

sonicaj 1 year ago
parent
commit
85090d8b7a

+ 6 - 0
community/mealie/1.0.0/Chart.lock

@@ -0,0 +1,6 @@
+dependencies:
+- name: common
+  repository: file://../../../common
+  version: 1.2.3
+digest: sha256:e6ff49b06bf5d4d159e505ae6d153f36cd46170bb519caf90462cd5caebfd0fb
+generated: "2023-11-08T20:33:44.485716889+02:00"

+ 26 - 0
community/mealie/1.0.0/Chart.yaml

@@ -0,0 +1,26 @@
+name: mealie
+description: Mealie is a self-hosted recipe manager and meal planner
+annotations:
+  title: Mealie
+type: application
+version: 1.0.0
+apiVersion: v2
+appVersion: latest
+kubeVersion: '>=1.16.0-0'
+maintainers:
+  - name: truenas
+    url: https://www.truenas.com/
+    email: dev@ixsystems.com
+dependencies:
+  - name: common
+    repository: file://../../../common
+    version: 1.2.3
+home: https://mealie.io
+icon: https://media.sys.truenas.net/apps/mealie/icons/icon.png
+sources:
+  - https://github.com/truenas/charts/tree/master/library/ix-dev/community/mealie
+  - https://github.com/ndom91/briefkasten
+  - https://nightly.mealie.io/
+keywords:
+  - recipes
+  - meal planner

+ 11 - 0
community/mealie/1.0.0/README.md

@@ -0,0 +1,11 @@
+# Mealie
+
+[Mealie](https://mealie.io) is a self-hosted recipe manager and meal planner
+
+> When application is installed, a container will be launched with **root** privileges.
+> This is required in order to apply the correct permissions to the `postgres` directories.
+> Afterward, the `postgres` container will run as a **non**-root user (`999`).
+> On each upgrade, a container will be launched with **root** privileges in order to apply the correct
+> permissions to the `postgres` **backups** directory. Container that performs the backup will run as a **non**-root user (`999`) afterwards.
+> Keep in mind the permissions on the backup directory will be changed to `999:999` on **every** update.
+> But will only be changed once for the `postgres` data directories.

+ 11 - 0
community/mealie/1.0.0/app-readme.md

@@ -0,0 +1,11 @@
+# Mealie
+
+[Mealie](https://mealie.io) is a self-hosted recipe manager and meal planner
+
+> When application is installed, a container will be launched with **root** privileges.
+> This is required in order to apply the correct permissions to the `postgres` directories.
+> Afterward, the `postgres` container will run as a **non**-root user (`999`).
+> On each upgrade, a container will be launched with **root** privileges in order to apply the correct
+> permissions to the `postgres` **backups** directory. Container that performs the backup will run as a **non**-root user (`999`) afterwards.
+> Keep in mind the permissions on the backup directory will be changed to `999:999` on **every** update.
+> But will only be changed once for the `postgres` data directories.

BIN
community/mealie/1.0.0/charts/common-1.2.3.tgz


+ 17 - 0
community/mealie/1.0.0/ci/basic-values.yaml

@@ -0,0 +1,17 @@
+mealieNetwork:
+  webPort: 31000
+
+mealieConfig:
+  allowSignup: true
+  defaultGroup: Home
+  defaultAdminEmail: admin@example.com
+  defaultAdminPassword: supersecret
+  baseURL: http://localhost:31000
+
+mealieStorage:
+  data:
+    type: pvc
+  pgData:
+    type: pvc
+  pgBackup:
+    type: emptyDir

+ 26 - 0
community/mealie/1.0.0/ci/extra-values.yaml

@@ -0,0 +1,26 @@
+mealieNetwork:
+  webPort: 31000
+
+mealieConfig:
+  allowSignup: false
+  defaultGroup: Home
+  defaultAdminEmail: admin@example.com
+  defaultAdminPassword: supersecret
+  baseURL: http://localhost:31000
+
+mealieRunAs:
+  user: 1000
+  group: 1000
+
+mealieStorage:
+  data:
+    type: pvc
+  pgData:
+    type: pvc
+  pgBackup:
+    type: emptyDir
+  additionalStorages:
+  - type: pvc
+    mountPath: /data1
+  - type: pvc
+    mountPath: /data2

+ 18 - 0
community/mealie/1.0.0/ci/hostNet-values.yaml

@@ -0,0 +1,18 @@
+mealieNetwork:
+  webPort: 31000
+  hostNetwork: true
+
+mealieConfig:
+  allowSignup: true
+  defaultGroup: Home
+  defaultAdminEmail: admin@example.com
+  defaultAdminPassword: supersecret
+  baseURL: http://localhost:31000
+
+mealieStorage:
+  data:
+    type: pvc
+  pgData:
+    type: pvc
+  pgBackup:
+    type: emptyDir

+ 58 - 0
community/mealie/1.0.0/ix_values.yaml

@@ -0,0 +1,58 @@
+image:
+  repository: ghcr.io/mealie-recipes/mealie
+  pullPolicy: IfNotPresent
+  tag: v1.0.0-RC1.1
+
+resources:
+  limits:
+    cpu: 4000m
+    memory: 8Gi
+
+mealieConfig:
+  allowSignup: true
+  defaultGroup: Home
+  defaultAdminEmail: ''
+  defaultAdminPassword: ''
+  baseURL: ''
+  additionalEnvs: []
+
+mealieRunAs:
+  user: 568
+  group: 568
+
+mealieNetwork:
+  webPort: 31001
+  hostNetwork: false
+
+mealieStorage:
+  data:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: data
+  additionalStorages: []
+  pgData:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: pgData
+  pgBackup:
+    type: ixVolume
+    ixVolumeConfig:
+      datasetName: pgBackup
+
+notes:
+  custom: |
+    ## Database
+    You can connect to the database using the pgAdmin App from the catalog
+
+    <details>
+      <summary>Database Details</summary>
+
+      - Database: `mealie`
+      - Username: `mealie`
+      - Password: `{{ .Values.mealieDbPass }}`
+      - Host:     `{{ .Values.mealieDbHost }}.{{ .Release.Namespace }}.svc.cluster.local`
+      - Port:     `5432`
+
+    </details>
+    {{- $_ := unset .Values "mealieDbPass" }}
+    {{- $_ := unset .Values "mealieDbHost" }}

+ 13 - 0
community/mealie/1.0.0/metadata.yaml

@@ -0,0 +1,13 @@
+runAsContext:
+  - userName: mealie
+    groupName: mealie
+    gid: 568
+    uid: 568
+    description: Mealie can runs as any non-root user.
+  - userName: postgres
+    groupName: postgres
+    gid: 999
+    uid: 999
+    description: Postgres runs as a non-root user.
+capabilities: []
+hostMounts: []

+ 590 - 0
community/mealie/1.0.0/questions.yaml

@@ -0,0 +1,590 @@
+groups:
+  - name: Mealie Configuration
+    description: Configure Mealie
+  - name: User and Group Configuration
+    description: Configure User and Group for Mealie
+  - name: Network Configuration
+    description: Configure Network for Mealie
+  - name: Storage Configuration
+    description: Configure Storage for Mealie
+  - name: Resources Configuration
+    description: Configure Resources for Mealie
+
+portals:
+  web_portal:
+    protocols:
+      - "$kubernetes-resource_configmap_portal_protocol"
+    host:
+      - "$kubernetes-resource_configmap_portal_host"
+    ports:
+      - "$kubernetes-resource_configmap_portal_port"
+    path: "$kubernetes-resource_configmap_portal_path"
+
+questions:
+  - variable: TZ
+    group: Mealie Configuration
+    label: Timezone
+    schema:
+      type: string
+      default: Etc/UTC
+      required: true
+      $ref:
+        - definitions/timezone
+
+  - variable: mealieConfig
+    label: ""
+    group: Mealie Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: baseURL
+          label: Base URL
+          description: |
+            The URL that Mealie will be accessible from.</br>
+            Example: </br>
+            http://server.ip:30080</br>
+            https://Mealie.example.com
+          schema:
+            type: uri
+            default: ""
+            required: true
+        - variable: allowSignup
+          label: Allow Signup
+          description: Allow users to signup for Mealie.
+          schema:
+            type: boolean
+            default: true
+        - variable: defaultGroup
+          label: Default Group
+          description: The default group for new users.
+          schema:
+            type: string
+            default: Home
+            required: true
+        - variable: defaultAdminEmail
+          label: Default Admin Email
+          description: The default admin email.
+          schema:
+            type: string
+            default: ""
+            immutable: true
+            required: true
+        - variable: defaultAdminPassword
+          label: Default Admin Password
+          description: The default admin password.
+          schema:
+            type: string
+            default: ""
+            required: true
+            immutable: true
+            private: true
+        - variable: additionalEnvs
+          label: Additional Environment Variables
+          description: Configure additional environment variables for Mealie.
+          schema:
+            type: list
+            default: []
+            items:
+              - variable: env
+                label: Environment Variable
+                schema:
+                  type: dict
+                  attrs:
+                    - variable: name
+                      label: Name
+                      schema:
+                        type: string
+                        required: true
+                    - variable: value
+                      label: Value
+                      schema:
+                        type: string
+                        required: true
+
+  - variable: mealieRunAs
+    label: ""
+    group: User and Group Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: user
+          label: User ID
+          description: The user id that Mealie will run as.
+          schema:
+            type: int
+            min: 2
+            default: 568
+            required: true
+        - variable: group
+          label: Group ID
+          description: The group id that Mealie will run as.
+          schema:
+            type: int
+            min: 2
+            default: 568
+            required: true
+
+  - variable: mealieNetwork
+    label: ""
+    group: Network Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: webPort
+          label: Web Port
+          description: The port for the Mealie Web UI.
+          schema:
+            type: int
+            default: 31001
+            min: 9000
+            max: 65535
+            required: true
+        - variable: hostNetwork
+          label: Host Network
+          description: |
+            Bind to the host network. It's recommended to keep this disabled.</br>
+          schema:
+            type: boolean
+            default: false
+
+  - variable: mealieStorage
+    label: ""
+    group: Storage Configuration
+    schema:
+      type: dict
+      attrs:
+        - variable: data
+          label: Mealie Data Storage
+          description: The path to store Mealie Data.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "data"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+        - variable: pgData
+          label: Postgres Data Storage
+          description: The path to store Postgres Data.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  # Nothing to show for the user
+                  hidden: true
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
+                        hidden: true
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "pgData"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
+                        hidden: true
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+        - variable: pgBackup
+          label: Postgres Backup Storage
+          description: The path to store Postgres Backup.
+          schema:
+            type: dict
+            attrs:
+              - variable: type
+                label: Type
+                description: |
+                  ixVolume: Is dataset created automatically by the system.</br>
+                  Host Path: Is a path that already exists on the system.
+                schema:
+                  type: string
+                  required: true
+                  immutable: true
+                  default: "ixVolume"
+                  enum:
+                    - value: "hostPath"
+                      description: Host Path (Path that already exists on the system)
+                    - value: "ixVolume"
+                      description: ixVolume (Dataset created automatically by the system)
+              - variable: ixVolumeConfig
+                label: ixVolume Configuration
+                description: The configuration for the ixVolume dataset.
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "ixVolume"]]
+                  # Nothing to show for the user
+                  hidden: true
+                  $ref:
+                    - "normalize/ixVolume"
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
+                        hidden: true
+                    - variable: datasetName
+                      label: Dataset Name
+                      description: The name of the dataset to use for storage.
+                      schema:
+                        type: string
+                        required: true
+                        immutable: true
+                        hidden: true
+                        default: "pgBackup"
+                    - variable: aclEntries
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+              - variable: hostPathConfig
+                label: Host Path Configuration
+                schema:
+                  type: dict
+                  show_if: [["type", "=", "hostPath"]]
+                  attrs:
+                    - variable: aclEnable
+                      label: Enable ACL
+                      description: Enable ACL for the dataset.
+                      schema:
+                        type: boolean
+                        default: false
+                        # Postgres does a CHMOD at startup
+                        # Which fails with ACL
+                        hidden: true
+                    - variable: acl
+                      label: ACL Configuration
+                      schema:
+                        type: dict
+                        show_if: [["aclEnable", "=", true]]
+                        attrs: []
+                        $ref:
+                          - "normalize/acl"
+                    - variable: hostPath
+                      label: Host Path
+                      description: The host path to use for storage.
+                      schema:
+                        type: hostpath
+                        show_if: [["aclEnable", "=", false]]
+                        required: true
+
+        - variable: additionalStorages
+          label: Additional Storage
+          description: Additional storage for SearXNG.
+          schema:
+            type: list
+            default: []
+            items:
+              - variable: storageEntry
+                label: Storage Entry
+                schema:
+                  type: dict
+                  attrs:
+                    - variable: type
+                      label: Type
+                      description: |
+                        ixVolume: Is dataset created automatically by the system.</br>
+                        Host Path: Is a path that already exists on the system.</br>
+                        SMB Share: Is a SMB share that is mounted to a persistent volume claim.
+                      schema:
+                        type: string
+                        required: true
+                        default: "ixVolume"
+                        immutable: true
+                        enum:
+                          - value: "hostPath"
+                            description: Host Path (Path that already exists on the system)
+                          - value: "ixVolume"
+                            description: ixVolume (Dataset created automatically by the system)
+                          - value: "smb-pv-pvc"
+                            description: SMB Share (Mounts a persistent volume claim to a SMB share)
+                    - variable: readOnly
+                      label: Read Only
+                      description: Mount the volume as read only.
+                      schema:
+                        type: boolean
+                        default: false
+                    - variable: mountPath
+                      label: Mount Path
+                      description: The path inside the container to mount the storage.
+                      schema:
+                        type: path
+                        required: true
+                    - variable: hostPathConfig
+                      label: hostPathConfig
+                      schema:
+                        type: dict
+                        show_if: [["type", "=", "hostPath"]]
+                        attrs:
+                          - variable: aclEnable
+                            label: Enable ACL
+                            description: Enable ACL for the dataset.
+                            schema:
+                              type: boolean
+                              default: false
+                          - variable: acl
+                            label: ACL Configuration
+                            schema:
+                              type: dict
+                              show_if: [["aclEnable", "=", true]]
+                              attrs: []
+                              $ref:
+                                - "normalize/acl"
+                          - variable: hostPath
+                            label: Host Path
+                            description: The host path to use for storage.
+                            schema:
+                              type: hostpath
+                              show_if: [["aclEnable", "=", false]]
+                              required: true
+                    - variable: ixVolumeConfig
+                      label: ixVolume Configuration
+                      description: The configuration for the ixVolume dataset.
+                      schema:
+                        type: dict
+                        show_if: [["type", "=", "ixVolume"]]
+                        $ref:
+                          - "normalize/ixVolume"
+                        attrs:
+                          - variable: aclEnable
+                            label: Enable ACL
+                            description: Enable ACL for the dataset.
+                            schema:
+                              type: boolean
+                              default: false
+                          - variable: datasetName
+                            label: Dataset Name
+                            description: The name of the dataset to use for storage.
+                            schema:
+                              type: string
+                              required: true
+                              immutable: true
+                              default: "storage_entry"
+                          - variable: aclEntries
+                            label: ACL Configuration
+                            schema:
+                              type: dict
+                              show_if: [["aclEnable", "=", true]]
+                              attrs: []
+                    - variable: smbConfig
+                      label: SMB Share Configuration
+                      description: The configuration for the SMB Share.
+                      schema:
+                        type: dict
+                        show_if: [["type", "=", "smb-pv-pvc"]]
+                        attrs:
+                          - variable: server
+                            label: Server
+                            description: The server for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                          - variable: share
+                            label: Share
+                            description: The share name for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                          - variable: domain
+                            label: Domain (Optional)
+                            description: The domain for the SMB share.
+                            schema:
+                              type: string
+                          - variable: username
+                            label: Username
+                            description: The username for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                          - variable: password
+                            label: Password
+                            description: The password for the SMB share.
+                            schema:
+                              type: string
+                              required: true
+                              private: true
+                          - variable: size
+                            label: Size (in Gi)
+                            description: The size of the volume quota.
+                            schema:
+                              type: int
+                              required: true
+                              min: 1
+                              default: 1
+
+  - variable: resources
+    group: Resources Configuration
+    label: ""
+    schema:
+      type: dict
+      attrs:
+        - variable: limits
+          label: Limits
+          schema:
+            type: dict
+            attrs:
+              - variable: cpu
+                label: CPU
+                description: CPU limit for Mealie.
+                schema:
+                  type: string
+                  max_length: 6
+                  valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
+                  valid_chars_error: |
+                    Valid CPU limit formats are</br>
+                    - Plain Integer - eg. 1</br>
+                    - Float - eg. 0.5</br>
+                    - Milicpu - eg. 500m
+                  default: "4000m"
+                  required: true
+              - variable: memory
+                label: Memory
+                description: Memory limit for Mealie.
+                schema:
+                  type: string
+                  max_length: 12
+                  valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
+                  valid_chars_error: |
+                    Valid Memory limit formats are</br>
+                    - Suffixed with E/P/T/G/M/K - eg. 1G</br>
+                    - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
+                    - Plain Integer in bytes - eg. 1024</br>
+                    - Exponent - eg. 134e6
+                  default: "8Gi"
+                  required: true

+ 1 - 0
community/mealie/1.0.0/templates/NOTES.txt

@@ -0,0 +1 @@
+{{ include "ix.v1.common.lib.chart.notes" $ }}

+ 49 - 0
community/mealie/1.0.0/templates/_configuration.tpl

@@ -0,0 +1,49 @@
+{{- define "mealie.configuration" -}}
+  {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
+
+  {{- $dbHost := (printf "%s-postgres" $fullname) -}}
+  {{- $dbUser := "mealie" -}}
+  {{- $dbName := "mealie" -}}
+
+  {{- $dbPass := (randAlphaNum 32) -}}
+  {{- with (lookup "v1" "Secret" .Release.Namespace (printf "%s-postgres-creds" $fullname)) -}}
+    {{- $dbPass = ((index .data "POSTGRES_PASSWORD") | b64dec) -}}
+  {{- end -}}
+
+  {{- $dbURL := (printf "postgres://%s:%s@%s:5432/%s?sslmode=disable" $dbUser $dbPass $dbHost $dbName) -}}
+  {{/* Temporary set dynamic db details on values,
+  so we can print them on the notes */}}
+  {{- $_ := set .Values "mealieDbPass" $dbPass -}}
+  {{- $_ := set .Values "mealieDbHost" $dbHost -}}
+
+secret:
+  mealie:
+    enabled: true
+    data:
+      DB_ENGINE: postgres
+      POSTGRES_USER: {{ $dbUser }}
+      POSTGRES_PASSWORD: {{ $dbPass }}
+      POSTGRES_SERVER: {{ $dbHost }}
+      POSTGRES_PORT: "5432"
+      POSTGRES_DB: {{ $dbName }}
+
+  postgres-creds:
+    enabled: true
+    data:
+      POSTGRES_USER: {{ $dbUser }}
+      POSTGRES_DB: {{ $dbName }}
+      POSTGRES_PASSWORD: {{ $dbPass }}
+      POSTGRES_HOST: {{ $dbHost }}
+      POSTGRES_URL: {{ $dbURL }}
+
+configmap:
+  mealie:
+    enabled: true
+    data:
+      API_PORT: {{ .Values.mealieNetwork.webPort | quote }}
+      BASE_URL: {{ .Values.mealieConfig.baseURL | quote }}
+      ALLOW_SIGNUP: {{ .Values.mealieConfig.allowSignup | quote }}
+      DEFAULT_GROUP: {{ .Values.mealieConfig.defaultGroup | quote }}
+      DEFAULT_EMAIL: {{ .Values.mealieConfig.defaultAdminEmail | quote }}
+      DEFAULT_PASSWORD: {{ .Values.mealieConfig.defaultAdminPassword | quote }}
+{{- end -}}

+ 54 - 0
community/mealie/1.0.0/templates/_mealie.tpl

@@ -0,0 +1,54 @@
+{{- define "mealie.workload" -}}
+workload:
+  mealie:
+    enabled: true
+    primary: true
+    type: Deployment
+    podSpec:
+      hostNetwork: {{ .Values.mealieNetwork.hostNetwork }}
+      containers:
+        mealie:
+          enabled: true
+          primary: true
+          imageSelector: image
+          securityContext:
+            runAsUser: {{ .Values.mealieRunAs.user }}
+            runAsGroup: {{ .Values.mealieRunAs.group }}
+            readOnlyRootFilesystem: false
+          fixedEnv:
+            PUID: {{ .Values.mealieRunAs.user }}
+          envFrom:
+            - secretRef:
+                name: mealie
+            - configMapRef:
+                name: mealie
+          {{ with .Values.mealieConfig.additionalEnvs }}
+          envList:
+            {{ range $env := . }}
+            - name: {{ $env.name }}
+              value: {{ $env.value }}
+            {{ end }}
+          {{ end }}
+          probes:
+            liveness:
+              enabled: true
+              type: exec
+              command:
+                - python
+                - /app/mealie/scripts/healthcheck.py
+            readiness:
+              enabled: true
+              type: exec
+              command:
+                - python
+                - /app/mealie/scripts/healthcheck.py
+            startup:
+              enabled: true
+              type: exec
+              command:
+                - python
+                - /app/mealie/scripts/healthcheck.py
+      initContainers:
+      {{- include "ix.v1.common.app.postgresWait" (dict "name" "01-postgres-wait"
+                                                        "secretName" "postgres-creds") | nindent 8 }}
+{{- end -}}

+ 31 - 0
community/mealie/1.0.0/templates/_persistence.tpl

@@ -0,0 +1,31 @@
+{{- define "mealie.persistence" -}}
+persistence:
+  data:
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.mealieStorage.data) | nindent 4 }}
+    targetSelector:
+      mealie:
+        mealie:
+          mountPath: /app/data
+  tmp:
+    enabled: true
+    type: emptyDir
+    targetSelector:
+      mealie:
+        mealie:
+          mountPath: /tmp
+  {{- range $idx, $storage := .Values.mealieStorage.additionalStorages }}
+  {{ printf "mealie-%v:" (int $idx) }}
+    enabled: true
+    {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
+    targetSelector:
+      mealie:
+        mealie:
+          mountPath: {{ $storage.mountPath }}
+  {{- end -}}
+
+  {{- include "ix.v1.common.app.postgresPersistence"
+      (dict "pgData" .Values.mealieStorage.pgData
+            "pgBackup" .Values.mealieStorage.pgBackup
+      ) | nindent 2 }}
+{{- end -}}

+ 35 - 0
community/mealie/1.0.0/templates/_portal.tpl

@@ -0,0 +1,35 @@
+{{- define "mealie.portal" -}}
+  {{- $host := "$node_ip" -}}
+  {{- $port := "" -}}
+  {{- $protocol := "http" -}}
+  {{- if hasPrefix "https://" .Values.mealieConfig.baseURL -}}
+    {{- $protocol = "https" -}}
+  {{- end -}}
+
+  {{- with .Values.mealieConfig.baseURL -}} {{/* Trim protocol and trailing slash */}}
+    {{- $host = . | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}}
+
+    {{- if contains ":" $host -}}
+      {{- $port = (split ":" $host)._1 -}}
+      {{- $host = (split ":" $host)._0 -}}
+    {{- end -}}
+
+    {{- if not $port -}}
+      {{- if eq $protocol "https" -}}
+        {{- $port = "443" -}}
+      {{- else -}}
+        {{- $port = "80" -}}
+      {{- end -}}
+    {{- end -}}
+  {{- end }}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: portal
+data:
+  path: "/"
+  port: {{ $port | quote }}
+  protocol: {{ $protocol }}
+  host: {{ $host }}
+{{- end -}}

+ 6 - 0
community/mealie/1.0.0/templates/_postgres.tpl

@@ -0,0 +1,6 @@
+{{- define "postgres.workload" -}}
+workload:
+{{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds"
+                                              "resources" .Values.resources
+                                              "ixChartContext" .Values.ixChartContext) | nindent 2 }}
+{{- end -}}

+ 17 - 0
community/mealie/1.0.0/templates/_service.tpl

@@ -0,0 +1,17 @@
+{{- define "mealie.service" -}}
+service:
+  mealie:
+    enabled: true
+    primary: true
+    type: NodePort
+    targetSelector: mealie
+    ports:
+      webui:
+        enabled: true
+        primary: true
+        port: {{ .Values.mealieNetwork.webPort }}
+        nodePort: {{ .Values.mealieNetwork.webPort }}
+        targetSelector: mealie
+  {{- include "ix.v1.common.app.postgresService" $ | nindent 2 }}
+
+{{- end -}}

+ 13 - 0
community/mealie/1.0.0/templates/common.yaml

@@ -0,0 +1,13 @@
+{{- include "ix.v1.common.loader.init" . -}}
+
+{{/* Merge the templates with Values */}}
+{{- $_ := mustMergeOverwrite .Values (include "mealie.workload" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "mealie.service" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "mealie.persistence" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "mealie.configuration" $ | fromYaml) -}}
+{{- $_ := mustMergeOverwrite .Values (include "postgres.workload" $ | fromYaml) -}}
+
+{{/* Create the configmap for portal manually*/}}
+{{- include "mealie.portal" $ -}}
+
+{{- include "ix.v1.common.loader.apply" . -}}

+ 8 - 0
community/mealie/item.yaml

@@ -0,0 +1,8 @@
+icon_url: https://media.sys.truenas.net/apps/mealie/icons/icon.png
+categories:
+  - productivity
+screenshots:
+  - https://media.sys.truenas.net/apps/mealie/screenshots/screenshot1.png
+tags:
+  - recipes
+  - meal planner