fix(chevereto): use 0/1 instead of true/false (#2312)

* fix(chevereto): use 0/1 instead of true/false

* remove envs
This commit is contained in:
Stavros Kois
2022-03-27 16:55:50 +03:00
committed by GitHub
parent 3f1830115f
commit 014389f9af
3 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: chevereto
version: 0.0.29
version: 0.0.30
appVersion: "1.6.2"
description: Chevereto is an image hosting software that allows you to create a beautiful and full-featured image hosting website on your own server.
type: application
+5 -5
View File
@@ -74,24 +74,24 @@ questions:
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: env
- variable: chevereto
group: "Container Configuration"
label: "Image Environment"
label: "Chevereto Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: CHEVERETO_HTTPS
- variable: https
label: "CHEVERETO_HTTPS"
schema:
type: boolean
default: false
- variable: CHEVERETO_DISABLE_UPDATE_HTTP
- variable: disable_update_http
label: "CHEVERETO_DISABLE_UPDATE_HTTP"
schema:
type: boolean
default: true
- variable: CHEVERETO_DISABLE_UPDATE_CLI
- variable: disable_update_cli
label: "CHEVERETO_DISABLE_UPDATE_CLI"
schema:
type: boolean
+17 -4
View File
@@ -17,10 +17,23 @@ env:
CHEVERETO_DB_USER: "{{ .Values.mariadb.mariadbDatabase }}"
CHEVERETO_DB_PORT: "3306"
CHEVERETO_TAG: "free"
# User Defined
CHEVERETO_HTTPS: false
CHEVERETO_DISABLE_UPDATE_HTTP: true
CHEVERETO_DISABLE_UPDATE_CLI: true
envFrom:
- configMapRef:
name: '{{ include "common.names.fullname" . }}-chevereto'
chevereto:
https: false
disable_update_http: true
disable_update_cli: true
configmap:
chevereto:
enabled: true
data:
CHEVERETO_HTTPS: "{{ ternary \"1\" \"0\" .Values.chevereto.https }}"
CHEVERETO_DISABLE_UPDATE_HTTP: "{{ ternary \"1\" \"0\" .Values.chevereto.disable_update_http }}"
CHEVERETO_DISABLE_UPDATE_CLI: "{{ ternary \"1\" \"0\" .Values.chevereto.disable_update_cli }}"
envValueFrom:
CHEVERETO_DB_HOST: