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 apiVersion: v2
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
name: chevereto name: chevereto
version: 0.0.29 version: 0.0.30
appVersion: "1.6.2" 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. 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 type: application
+5 -5
View File
@@ -74,24 +74,24 @@ questions:
- value: "OnDelete" - value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes" description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert} # Include{controllerExpert}
- variable: env - variable: chevereto
group: "Container Configuration" group: "Container Configuration"
label: "Image Environment" label: "Chevereto Configuration"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: CHEVERETO_HTTPS - variable: https
label: "CHEVERETO_HTTPS" label: "CHEVERETO_HTTPS"
schema: schema:
type: boolean type: boolean
default: false default: false
- variable: CHEVERETO_DISABLE_UPDATE_HTTP - variable: disable_update_http
label: "CHEVERETO_DISABLE_UPDATE_HTTP" label: "CHEVERETO_DISABLE_UPDATE_HTTP"
schema: schema:
type: boolean type: boolean
default: true default: true
- variable: CHEVERETO_DISABLE_UPDATE_CLI - variable: disable_update_cli
label: "CHEVERETO_DISABLE_UPDATE_CLI" label: "CHEVERETO_DISABLE_UPDATE_CLI"
schema: schema:
type: boolean type: boolean
+17 -4
View File
@@ -17,10 +17,23 @@ env:
CHEVERETO_DB_USER: "{{ .Values.mariadb.mariadbDatabase }}" CHEVERETO_DB_USER: "{{ .Values.mariadb.mariadbDatabase }}"
CHEVERETO_DB_PORT: "3306" CHEVERETO_DB_PORT: "3306"
CHEVERETO_TAG: "free" CHEVERETO_TAG: "free"
# User Defined
CHEVERETO_HTTPS: false envFrom:
CHEVERETO_DISABLE_UPDATE_HTTP: true - configMapRef:
CHEVERETO_DISABLE_UPDATE_CLI: true 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: envValueFrom:
CHEVERETO_DB_HOST: CHEVERETO_DB_HOST: