Pārlūkot izejas kodu

add portal, values and ci values

Stavros kois 1 gadu atpakaļ
vecāks
revīzija
34f73f85b2

+ 15 - 0
library/ix-dev/community/mealie/ci/basic-values.yaml

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

+ 20 - 0
library/ix-dev/community/mealie/ci/extra-values.yaml

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

+ 16 - 0
library/ix-dev/community/mealie/ci/hostNet-values.yaml

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

+ 35 - 0
library/ix-dev/community/mealie/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 -}}

+ 54 - 0
library/ix-dev/community/mealie/values.yaml

@@ -0,0 +1,54 @@
+image:
+  repository: ghcr.io/mealie-recipes/mealie:nightly
+  pullPolicy: IfNotPresent
+  tag: v1.0.0-RC1.1
+
+resources:
+  limits:
+    cpu: 4000m
+    memory: 8Gi
+
+mealieConfig:
+  allowSignup: true
+  defaultGroup: Home
+  defaultAdminEmail: ''
+  defaultAdminPassword: ''
+  baseURL: ''
+  additionalEnvs: []
+
+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" }}