diff --git a/charts/incubator/weblate/Chart.yaml b/charts/incubator/weblate/Chart.yaml new file mode 100644 index 00000000000..961d370d05c --- /dev/null +++ b/charts/incubator/weblate/Chart.yaml @@ -0,0 +1,36 @@ +apiVersion: v2 +appVersion: "4.10.1-1" +dependencies: +- name: common + repository: https://truecharts.org + version: 8.14.2 +- condition: postgresql.enabled + name: postgresql + repository: https://truecharts.org/ + version: 6.0.58 +- condition: redis.enabled + name: redis + repository: https://truecharts.org + version: 1.0.63 +description: Weblate is a copylefted libre software web-based continuous localization system +home: https://github.com/truecharts/apps/tree/master/charts/stable/weblate +icon: https://truecharts.org/_static/img/appicons/weblate-icon.png +keywords: +- translate +kubeVersion: '>=1.16.0-0' +maintainers: +- email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: weblate +sources: +- https://github.com/WeblateOrg/weblate +- https://github.com/WeblateOrg/docker +- https://github.com/WeblateOrg/docker-compose +- https://docs.weblate.org/en/latest/ +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - media + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/weblate/questions.yaml b/charts/incubator/weblate/questions.yaml new file mode 100644 index 00000000000..423eeaf2684 --- /dev/null +++ b/charts/incubator/weblate/questions.yaml @@ -0,0 +1,1449 @@ +# Include{groups} +portals: + web_portal: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" +questions: + - variable: portal + group: "Container Image" + label: "Configure Portal Button" + schema: + type: dict + hidden: true + attrs: + - variable: enabled + label: "Enable" + description: "enable the portal button" + schema: + hidden: true + editable: false + type: boolean + default: true +# Include{global} + - variable: controller + group: "Controller" + label: "" + schema: + additional_attrs: true + type: dict + attrs: + - variable: advanced + label: "Show Advanced Controller Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: type + description: "Please specify type of workload to deploy" + label: "(Advanced) Controller Type" + schema: + type: string + default: "deployment" + required: true + enum: + - value: "deployment" + description: "Deployment" + - value: "statefulset" + description: "Statefulset" + - value: "daemonset" + description: "Daemonset" + - variable: replicas + description: "Number of desired pod replicas" + label: "Desired Replicas" + schema: + type: int + default: 1 + required: true + - variable: strategy + description: "Please specify type of workload to deploy" + label: "(Advanced) Update Strategy" + schema: + type: string + default: "Recreate" + required: true + enum: + - value: "Recreate" + description: "Recreate: Kill existing pods before creating new ones" + - value: "RollingUpdate" + description: "RollingUpdate: Create new pods and then kill old ones" + - value: "OnDelete" + description: "(Legacy) OnDelete: ignore .spec.template changes" +# Include{controllerExpert} + - variable: env + group: "Container Configuration" + label: "Image Environment" + schema: + additional_attrs: true + type: dict + attrs: +# Include{fixedEnv} + - variable: weblate + group: "Container Configuration" + label: "Weblate Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: general + label: "General Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: WEBLATE_SITE_DOMAIN + label: "WEBLATE_SITE_DOMAIN" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + required: true + default: "" + - variable: WEBLATE_SITE_TITLE + label: "WEBLATE_SITE_TITLE (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_ADMIN_NAME + label: "WEBLATE_ADMIN_NAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_ADMIN_EMAIL + label: "WEBLATE_ADMIN_EMAIL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_ADMIN_PASSWORD + label: "WEBLATE_ADMIN_PASSWORD (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_ENABLE_HTTPS + label: "WEBLATE_ENABLE_HTTPS" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_IP_PROXY_HEADER + label: "WEBLATE_IP_PROXY_HEADER (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SECURE_PROXY_SSL_HEADER + label: "WEBLATE_SECURE_PROXY_SSL_HEADER (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTO_UPDATE + label: "WEBLATE_AUTO_UPDATE (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + enum: + - value: "" + description: "none" + - value: "remote" + description: "remote" + - value: "full" + description: "full" + - variable: WEBLATE_SERVER_EMAIL + label: "WEBLATE_SERVER_EMAIL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SERVER_EMAIL + label: "WEBLATE_SERVER_EMAIL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_DEFAULT_FROM_EMAIL + label: "WEBLATE_DEFAULT_FROM_EMAIL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_CONTACT_FORM + label: "WEBLATE_CONTACT_FORM (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "reply-to" + description: "reply-to" + - value: "from" + description: "from" + - variable: WEBLATE_ALLOWED_HOSTS + label: "WEBLATE_ALLOWED_HOSTS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_REGISTRATION_OPEN + label: "WEBLATE_REGISTRATION_OPEN" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_REGISTRATION_ALLOW_BACKENDS + label: "WEBLATE_REGISTRATION_ALLOW_BACKENDS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_REQUIRE_LOGIN + label: "WEBLATE_REQUIRE_LOGIN" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_LOGIN_REQUIRED_URLS_EXCEPTIONS + label: "WEBLATE_LOGIN_REQUIRED_URLS_EXCEPTIONS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_ADD_LOGIN_REQUIRED_URLS_EXCEPTIONS + label: "WEBLATE_ADD_LOGIN_REQUIRED_URLS_EXCEPTIONS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_REMOVE_LOGIN_REQUIRED_URLS_EXCEPTIONS + label: "WEBLATE_REMOVE_LOGIN_REQUIRED_URLS_EXCEPTIONS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_GOOGLE_ANALYTICS_ID + label: "WEBLATE_GOOGLE_ANALYTICS_ID (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_GITHUB_USERNAME + label: "WEBLATE_GITHUB_USERNAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_GITHUB_TOKEN + label: "WEBLATE_GITHUB_TOKEN (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_GITLAB_USERNAME + label: "WEBLATE_GITLAB_USERNAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_GITLAB_TOKEN + label: "WEBLATE_GITLAB_TOKEN (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_PAGURE_USERNAME + label: "WEBLATE_PAGURE_USERNAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_PAGURE_TOKEN + label: "WEBLATE_PAGURE_TOKEN (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SIMPLIFY_LANGUAGES + label: "WEBLATE_SIMPLIFY_LANGUAGES" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_DEFAULT_ACCESS_CONTROL + label: "WEBLATE_DEFAULT_ACCESS_CONTROL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_DEFAULT_RESTRICTED_COMPONENT + label: "WEBLATE_DEFAULT_RESTRICTED_COMPONENT" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_DEFAULT_TRANSLATION_PROPAGATION + label: "WEBLATE_DEFAULT_TRANSLATION_PROPAGATION" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_DEFAULT_COMMITER_EMAIL + label: "WEBLATE_DEFAULT_COMMITER_EMAIL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_DEFAULT_COMMITER_NAME + label: "WEBLATE_DEFAULT_COMMITER_NAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_DEFAULT_SHARED_TM + label: "WEBLATE_DEFAULT_SHARED_TM" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_AKISMET_API_KEY + label: "WEBLATE_AKISMET_API_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_GPG_IDENTITY + label: "WEBLATE_GPG_IDENTITY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_URL_PREFIX + label: "WEBLATE_URL_PREFIX (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SILENCED_SYSTEM_CHECKS + label: "WEBLATE_SILENCED_SYSTEM_CHECKS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_CSP_SCRIPT_SRC + label: "WEBLATE_CSP_SCRIPT_SRC (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_CSP_IMG_SRC + label: "WEBLATE_CSP_IMG_SRC (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_CSP_CONNECT_SRC + label: "WEBLATE_CSP_CONNECT_SRC (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_CSP_STYLE_SRC + label: "WEBLATE_CSP_STYLE_SRC (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_CSP_FONT_SRC + label: "WEBLATE_CSP_FONT_SRC (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_LICENSE_FILTER + label: "WEBLATE_LICENSE_FILTER (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_LICENSE_REQUIRED + label: "WEBLATE_LICENSE_REQUIRED" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_WEBSITE_REQUIRED + label: "WEBLATE_WEBSITE_REQUIRED" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_HIDE_VERSION + label: "WEBLATE_HIDE_VERSION" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_BASIC_LANGUAGES + label: "WEBLATE_BASIC_LANGUAGES (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_DEFAULT_AUTO_WATCH + label: "WEBLATE_DEFAULT_AUTO_WATCH" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_RATELIMIT_ATTEMPTS + label: "WEBLATE_RATELIMIT_ATTEMPTS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_RATELIMIT_LOCKOUT + label: "WEBLATE_RATELIMIT_LOCKOUT (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_RATELIMIT_WINDOW + label: "WEBLATE_RATELIMIT_WINDOW (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_ENABLE_AVATARS + label: "WEBLATE_ENABLE_AVATARS" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH + label: "WEBLATE_LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: true + - variable: WEBLATE_SSH_EXTRA_ARGS + label: "WEBLATE_SSH_EXTRA_ARGS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_BORG_EXTRA_ARGS + label: "WEBLATE_BORG_EXTRA_ARGS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_DATABASE_BACKUP + label: "WEBLATE_DATABASE_BACKUP (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "plain" + enum: + - value: "plain" + description: "plain" + - value: "compressed" + description: "compressed" + - value: "none" + description: "none" + - variable: WEBLATE_DEBUG + label: "WEBLATE_DEBUG" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_LOGLEVEL + label: "WEBLATE_LOGLEVEL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: machinetranslate + label: "Machine Translation Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: "Show Machine Translation Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_MT_APERTIUM_APY + label: "WEBLATE_MT_APERTIUM_APY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_AWS_REGION + label: "WEBLATE_MT_AWS_REGION (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_AWS_ACCESS_KEY_ID + label: "WEBLATE_MT_AWS_ACCESS_KEY_ID (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_AWS_SECRET_ACCESS_KEY + label: "WEBLATE_MT_AWS_SECRET_ACCESS_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_DEEPL_KEY + label: "WEBLATE_MT_DEEPL_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_DEEPL_API_URL + label: "WEBLATE_MT_DEEPL_API_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_LIBRETRANSLATE_KEY + label: "WEBLATE_MT_LIBRETRANSLATE_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_LIBRETRANSLATE_API_URL + label: "WEBLATE_MT_LIBRETRANSLATE_API_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_GOOGLE_KEY + label: "WEBLATE_MT_GOOGLE_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_GOOGLE_CREDENTIALS + label: "WEBLATE_MT_GOOGLE_CREDENTIALS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_GOOGLE_PROJECT + label: "WEBLATE_MT_GOOGLE_PROJECT (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_GOOGLE_LOCATION + label: "WEBLATE_MT_GOOGLE_LOCATION (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_MICROSOFT_COGNITIVE_KEY + label: "WEBLATE_MT_MICROSOFT_COGNITIVE_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_MICROSOFT_ENDPOINT_URL + label: "WEBLATE_MT_MICROSOFT_ENDPOINT_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_MICROSOFT_REGION + label: "WEBLATE_MT_MICROSOFT_REGION (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_MICROSOFT_BASE_URL + label: "WEBLATE_MT_MICROSOFT_BASE_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_MODERNMT_KEY + label: "WEBLATE_MT_MODERNMT_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_MYMEMORY_ENABLED + label: "WEBLATE_MT_MYMEMORY_ENABLED" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_MT_GLOSBE_ENABLED + label: "WEBLATE_MT_GLOSBE_ENABLED" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_MT_MICROSOFT_TERMINOLOGY_ENABLED + label: "WEBLATE_MT_MICROSOFT_TERMINOLOGY_ENABLED" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_MT_SAP_BASE_URL + label: "WEBLATE_MT_SAP_BASE_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_SAP_SANDBOX_APIKEY + label: "WEBLATE_MT_SAP_SANDBOX_APIKEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_SAP_USERNAME + label: "WEBLATE_MT_SAP_USERNAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_MT_SAP_PASSWORD + label: "WEBLATE_MT_SAP_PASSWORD (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_MT_SAP_USE_MT + label: "WEBLATE_MT_SAP_USE_MT" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: auth + label: "Authentication Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: "Show Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabledldap + label: "Show LDAP Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_AUTH_LDAP_SERVER_URI + label: "WEBLATE_AUTH_LDAP_SERVER_URI (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_USER_DN_TEMPLATE + label: "WEBLATE_AUTH_LDAP_USER_DN_TEMPLATE (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_USER_ATTR_MAP + label: "WEBLATE_AUTH_LDAP_USER_ATTR_MAP (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_BIND_DN + label: "WEBLATE_AUTH_LDAP_BIND_DN (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_BIND_PASSWORD + label: "WEBLATE_AUTH_LDAP_BIND_PASSWORD (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_AUTH_LDAP_CONNECTION_OPTION_REFERRALS + label: "WEBLATE_AUTH_LDAP_CONNECTION_OPTION_REFERRALS" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_AUTH_LDAP_USER_SEARCH + label: "WEBLATE_AUTH_LDAP_USER_SEARCH (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_USER_SEARCH_FILTER + label: "WEBLATE_AUTH_LDAP_USER_SEARCH_FILTER (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_USER_SEARCH_UNION + label: "WEBLATE_AUTH_LDAP_USER_SEARCH_UNION (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_AUTH_LDAP_USER_SEARCH_UNION_DELIMITER + label: "WEBLATE_AUTH_LDAP_USER_SEARCH_UNION_DELIMITER (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: enabledgithub + label: "Show Github Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_KEY + label: "WEBLATE_SOCIAL_AUTH_GITHUB_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_SECRET + label: "WEBLATE_SOCIAL_AUTH_GITHUB_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_ORG_KEY + label: "WEBLATE_SOCIAL_AUTH_GITHUB_ORG_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_ORG_SECRET + label: "WEBLATE_SOCIAL_AUTH_GITHUB_ORG_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_ORG_NAME + label: "WEBLATE_SOCIAL_AUTH_GITHUB_ORG_NAME (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_KEY + label: "WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_SECRET + label: "WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_ID + label: "WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_ID (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: enabledbitbucket + label: "Show Bitbucket Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_BITBUCKET_KEY + label: "WEBLATE_SOCIAL_AUTH_BITBUCKET_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_BITBUCKET_SECRET + label: "WEBLATE_SOCIAL_AUTH_BITBUCKET_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: enabledfacebook + label: "Show Facebook Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_FACEBOOK_KEY + label: "WEBLATE_SOCIAL_AUTH_FACEBOOK_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_FACEBOOK_SECRET + label: "WEBLATE_SOCIAL_AUTH_FACEBOOK_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: enabledgoogle + label: "Show Google Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY + label: "WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET + label: "WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS + label: "WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS + label: "WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: enabledgitlab + label: "Show Gitlab Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_GITLAB_KEY + label: "WEBLATE_SOCIAL_AUTH_GITLAB_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITLAB_SECRET + label: "WEBLATE_SOCIAL_AUTH_GITLAB_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_GITLAB_API_URL + label: "WEBLATE_SOCIAL_AUTH_GITLAB_API_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: enabledazure + label: "Show Azure AD Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_KEY + label: "WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET + label: "WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: enabledazuretenant + label: "Show Azure AD with Tenant Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY + label: "WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET + label: "WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID + label: "WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: enabledkeycloak + label: "Show Keycloak Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_KEYCLOAK_KEY + label: "WEBLATE_SOCIAL_AUTH_KEYCLOAK_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_KEYCLOAK_SECRET + label: "WEBLATE_SOCIAL_AUTH_KEYCLOAK_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY + label: "WEBLATE_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SOCIAL_AUTH_KEYCLOAK_ALGORITHM + label: "WEBLATE_SOCIAL_AUTH_KEYCLOAK_ALGORITHM (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL + label: "WEBLATE_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL + label: "WEBLATE_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: enabledlinux + label: "Show Linux Vendors Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_FEDORA + label: "WEBLATE_SOCIAL_AUTH_FEDORA" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_SOCIAL_AUTH_OPENSUSE + label: "WEBLATE_SOCIAL_AUTH_OPENSUSE)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_SOCIAL_AUTH_UBUNTU + label: "WEBLATE_SOCIAL_AUTH_UBUNTU" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: enabledslack + label: "Show Slack Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SOCIAL_AUTH_SLACK_KEY + label: "WEBLATE_SOCIAL_AUTH_SLACK_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: SOCIAL_AUTH_SLACK_SECRET + label: "SOCIAL_AUTH_SLACK_SECRET (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: enabledsaml + label: "Show SAML Authentication Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_SAML_IDP_ENTITY_ID + label: "WEBLATE_SAML_IDP_ENTITY_ID (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_SAML_IDP_URL + label: "WEBLATE_SAML_IDP_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_SAML_IDP_X509CERT + label: "WEBLATE_SAML_IDP_X509CERT (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: email + label: "Email Server Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: "Show Email Server Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_EMAIL_HOST + label: "WEBLATE_EMAIL_HOST (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_EMAIL_PORT + label: "WEBLATE_EMAIL_PORT (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_EMAIL_HOST_USER + label: "WEBLATE_EMAIL_HOST_USER (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_EMAIL_HOST_PASSWORD + label: "WEBLATE_EMAIL_HOST_PASSWORD (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: WEBLATE_EMAIL_USE_SSL + label: "WEBLATE_EMAIL_USE_SSL" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_EMAIL_USE_TLS + label: "WEBLATE_EMAIL_USE_TLS" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: boolean + default: false + - variable: WEBLATE_EMAIL_BACKEND + label: "WEBLATE_EMAIL_BACKEND (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: siteintegration + label: "Site Integration Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: "Show Site Integration Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_GET_HELP_URL + label: "WEBLATE_GET_HELP_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_STATUS_URL + label: "WEBLATE_STATUS_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_LEGAL_URL + label: "WEBLATE_LEGAL_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_PRIVACY_URL + label: "WEBLATE_PRIVACY_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: errorreporting + label: "Error Reporting Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: "Show Error Reporting Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: ROLLBAR_KEY + label: "ROLLBAR_KEY (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + private: true + default: "" + - variable: ROLLBAR_ENVIRONMENT + label: "ROLLBAR_ENVIRONMENT (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: SENTRY_DSN + label: "SENTRY_DSN (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: SENTRY_ENVIRONMENT + label: "SENTRY_ENVIRONMENT (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: localization + label: "Localization CDN Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: enabled + label: "Show Localization CDN Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: WEBLATE_LOCALIZE_CDN_URL + label: "WEBLATE_LOCALIZE_CDN_URL (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + - variable: WEBLATE_LOCALIZE_CDN_PATH + label: "WEBLATE_LOCALIZE_CDN_PATH (Leave empty for default)" + description: "Visit https://docs.weblate.org/en/ on section Environment Variables for more info" + schema: + type: string + default: "" + + +# Include{containerConfig} + + - variable: service + group: "Networking and Services" + label: "Configure Service(s)" + schema: + additional_attrs: true + type: dict + attrs: + - variable: main + label: "Main Service" + description: "The Primary service on which the healthcheck runs, often the webUI" + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelector} + - variable: main + label: "Main Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 10158 + required: true + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 8080 + + - variable: serviceexpert + group: "Networking and Services" + label: "Show Expert Config" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostNetwork + group: "Networking and Services" + label: "Host-Networking (Complicated)" + schema: + type: boolean + default: false + +# Include{serviceExpert} + +# Include{serviceList} + + - variable: persistence + label: "Integrated Persistent Storage" + description: "Integrated Persistent Storage" + group: "Storage and Persistence" + schema: + additional_attrs: true + type: dict + attrs: + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + additional_attrs: true + type: dict + attrs: + - variable: type + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" + schema: + type: string + default: "simplePVC" + enum: + - value: "simplePVC" + description: "PVC (simple)" + - value: "simpleHP" + description: "HostPath (simple)" + - value: "emptyDir" + description: "emptyDir" + - value: "pvc" + description: "pvc" + - value: "hostPath" + description: "hostPath" +# Include{persistenceBasic} + - variable: hostPath + label: "hostPath" + description: "Path inside the container the storage is mounted" + schema: + show_if: [["type", "=", "hostPath"]] + type: hostpath + - variable: medium + label: "EmptyDir Medium" + schema: + show_if: [["type", "=", "emptyDir"]] + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "Memory" + description: "Memory" +# Include{persistenceAdvanced} + +# Include{persistenceList} + + - variable: ingress + label: "" + group: "Ingress" + schema: + additional_attrs: true + type: dict + attrs: + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} + +# Include{ingressTLS} + +# Include{ingressTraefik} + +# Include{ingressExpert} + +# Include{ingressList} + + - variable: advancedSecurity + label: "Show Advanced Security Settings" + group: "Security and Permissions" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: securityContext + label: "Security Context" + schema: + additional_attrs: true + type: dict + attrs: + - variable: privileged + label: "Privileged mode" + schema: + type: boolean + default: false + - variable: readOnlyRootFilesystem + label: "ReadOnly Root Filesystem" + schema: + type: boolean + default: false + - variable: allowPrivilegeEscalation + label: "Allow Privilege Escalation" + schema: + type: boolean + default: false + - variable: runAsNonRoot + label: "runAsNonRoot" + schema: + type: boolean + default: true +# Include{securityContextAdvanced} + + - variable: podSecurityContext + group: "Security and Permissions" + label: "Pod Security Context" + schema: + additional_attrs: true + type: dict + attrs: + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 1000 + - variable: runAsGroup + label: "runAsGroup" + description: The groupID this App of the user running the application" + schema: + type: int + default: 1000 + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 1000 +# Include{podSecurityContextAdvanced} + +# Include{resources} + +# Include{advanced} + +# Include{addons} diff --git a/charts/incubator/weblate/templates/_configmap.tpl b/charts/incubator/weblate/templates/_configmap.tpl new file mode 100644 index 00000000000..6af34fd504f --- /dev/null +++ b/charts/incubator/weblate/templates/_configmap.tpl @@ -0,0 +1,472 @@ +{{/* Define the configmap */}} +{{- define "weblate.configmap" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: weblate-env +data: + {{/* General */}} + {{- if .Values.weblate.general.WEBLATE_SITE_DOMAIN }} + WEBLATE_SITE_DOMAIN: {{ .Values.weblate.general.WEBLATE_SITE_DOMAIN | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_SITE_TITLE }} + WEBLATE_SITE_TITLE: {{ .Values.weblate.general.WEBLATE_SITE_TITLE | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ADMIN_NAME }} + WEBLATE_ADMIN_NAME: {{ .Values.weblate.general.WEBLATE_ADMIN_NAME | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ADMIN_EMAIL }} + WEBLATE_ADMIN_EMAIL: {{ .Values.weblate.general.WEBLATE_ADMIN_EMAIL | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ADMIN_PASSWORD }} + WEBLATE_ADMIN_PASSWORD: {{ .Values.weblate.general.WEBLATE_ADMIN_PASSWORD | quote }} + {{- end }} + {{- if .Values.weblate.WEBLATE_AUTO_UPDATE }} + WEBLATE_AUTO_UPDATE: {{ .Values.weblate.WEBLATE_AUTO_UPDATE | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_SERVER_EMAIL }} + WEBLATE_SERVER_EMAIL: {{ .Values.weblate.general.WEBLATE_SERVER_EMAIL | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_FROM_EMAIL }} + WEBLATE_DEFAULT_FROM_EMAIL: {{ .Values.weblate.general.WEBLATE_DEFAULT_FROM_EMAIL | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_CONTACT_FORM }} + WEBLATE_CONTACT_FORM: {{ .Values.weblate.general.WEBLATE_CONTACT_FORM | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ALLOWED_HOSTS }} + WEBLATE_ALLOWED_HOSTS: {{ .Values.weblate.general.WEBLATE_ALLOWED_HOSTS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_REGISTRATION_OPEN }} + WEBLATE_REGISTRATION_OPEN: {{ .Values.weblate.general.WEBLATE_REGISTRATION_OPEN | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_REGISTRATION_ALLOW_BACKENDS }} + WEBLATE_REGISTRATION_ALLOW_BACKENDS: {{ .Values.weblate.general.WEBLATE_REGISTRATION_ALLOW_BACKENDS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ENABLE_HTTPS }} + WEBLATE_ENABLE_HTTPS: {{ .Values.weblate.general.WEBLATE_ENABLE_HTTPS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_IP_PROXY_HEADER }} + WEBLATE_IP_PROXY_HEADER: {{ .Values.weblate.general.WEBLATE_IP_PROXY_HEADER | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_SECURE_PROXY_SSL_HEADER }} + WEBLATE_SECURE_PROXY_SSL_HEADER: {{ .Values.weblate.general.WEBLATE_SECURE_PROXY_SSL_HEADER | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_REQUIRE_LOGIN }} + WEBLATE_REQUIRE_LOGIN: {{ .Values.weblate.general.WEBLATE_REQUIRE_LOGIN | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_LOGIN_REQUIRED_URLS_EXCEPTIONS }} + WEBLATE_LOGIN_REQUIRED_URLS_EXCEPTIONS: {{ .Values.weblate.general.WEBLATE_LOGIN_REQUIRED_URLS_EXCEPTIONS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ADD_LOGIN_REQUIRED_URLS_EXCEPTIONS }} + WEBLATE_ADD_LOGIN_REQUIRED_URLS_EXCEPTIONS: {{ .Values.weblate.general.WEBLATE_ADD_LOGIN_REQUIRED_URLS_EXCEPTIONS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_REMOVE_LOGIN_REQUIRED_URLS_EXCEPTIONS }} + WEBLATE_REMOVE_LOGIN_REQUIRED_URLS_EXCEPTIONS: {{ .Values.weblate.general.WEBLATE_REMOVE_LOGIN_REQUIRED_URLS_EXCEPTIONS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_GOOGLE_ANALYTICS_ID }} + WEBLATE_GOOGLE_ANALYTICS_ID: {{ .Values.weblate.general.WEBLATE_GOOGLE_ANALYTICS_ID | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_GITHUB_USERNAME }} + WEBLATE_GITHUB_USERNAME: {{ .Values.weblate.general.WEBLATE_GITHUB_USERNAME | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_GITHUB_TOKEN }} + WEBLATE_GITHUB_TOKEN: {{ .Values.weblate.general.WEBLATE_GITHUB_TOKEN | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_GITLAB_USERNAME }} + WEBLATE_GITLAB_USERNAME: {{ .Values.weblate.general.WEBLATE_GITLAB_USERNAME | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_GITLAB_TOKEN }} + WEBLATE_GITLAB_TOKEN: {{ .Values.weblate.general.WEBLATE_GITLAB_TOKEN | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_PAGURE_USERNAME }} + WEBLATE_PAGURE_USERNAME: {{ .Values.weblate.general.WEBLATE_PAGURE_USERNAME | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_PAGURE_TOKEN }} + WEBLATE_PAGURE_TOKEN: {{ .Values.weblate.general.WEBLATE_PAGURE_TOKEN | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_SIMPLIFY_LANGUAGES }} + WEBLATE_SIMPLIFY_LANGUAGES: {{ .Values.weblate.general.WEBLATE_SIMPLIFY_LANGUAGES | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_ACCESS_CONTROL }} + WEBLATE_DEFAULT_ACCESS_CONTROL: {{ .Values.weblate.general.WEBLATE_DEFAULT_ACCESS_CONTROL | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_RESTRICTED_COMPONENT }} + WEBLATE_DEFAULT_RESTRICTED_COMPONENT: {{ .Values.weblate.general.WEBLATE_DEFAULT_RESTRICTED_COMPONENT | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_TRANSLATION_PROPAGATION }} + WEBLATE_DEFAULT_TRANSLATION_PROPAGATION: {{ .Values.weblate.general.WEBLATE_DEFAULT_TRANSLATION_PROPAGATION | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_COMMITER_EMAIL }} + WEBLATE_DEFAULT_COMMITER_EMAIL: {{ .Values.weblate.general.WEBLATE_DEFAULT_COMMITER_EMAIL | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_COMMITER_NAME }} + WEBLATE_DEFAULT_COMMITER_NAME: {{ .Values.weblate.general.WEBLATE_DEFAULT_COMMITER_NAME | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_SHARED_TM }} + WEBLATE_DEFAULT_SHARED_TM: {{ .Values.weblate.general.WEBLATE_DEFAULT_SHARED_TM | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_AKISMET_API_KEY }} + WEBLATE_AKISMET_API_KEY: {{ .Values.weblate.general.WEBLATE_AKISMET_API_KEY | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_GPG_IDENTITY }} + WEBLATE_GPG_IDENTITY: {{ .Values.weblate.general.WEBLATE_GPG_IDENTITY | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_URL_PREFIX }} + WEBLATE_URL_PREFIX: {{ .Values.weblate.general.WEBLATE_URL_PREFIX | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_SILENCED_SYSTEM_CHECKS }} + WEBLATE_SILENCED_SYSTEM_CHECKS: {{ .Values.weblate.general.WEBLATE_SILENCED_SYSTEM_CHECKS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_CSP_SCRIPT_SRC }} + WEBLATE_CSP_SCRIPT_SRC: {{ .Values.weblate.general.WEBLATE_CSP_SCRIPT_SRC | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_CSP_IMG_SRC }} + WEBLATE_CSP_IMG_SRC: {{ .Values.weblate.general.WEBLATE_CSP_IMG_SRC | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_CSP_CONNECT_SRC }} + WEBLATE_CSP_CONNECT_SRC: {{ .Values.weblate.general.WEBLATE_CSP_CONNECT_SRC | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_CSP_STYLE_SRC }} + WEBLATE_CSP_STYLE_SRC: {{ .Values.weblate.general.WEBLATE_CSP_STYLE_SRC | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_CSP_FONT_SRC }} + WEBLATE_CSP_FONT_SRC: {{ .Values.weblate.general.WEBLATE_CSP_FONT_SRC | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_LICENSE_FILTER }} + WEBLATE_LICENSE_FILTER: {{ .Values.weblate.general.WEBLATE_LICENSE_FILTER | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_LICENSE_REQUIRED }} + WEBLATE_LICENSE_REQUIRED: {{ .Values.weblate.general.WEBLATE_LICENSE_REQUIRED | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_WEBSITE_REQUIRED }} + WEBLATE_WEBSITE_REQUIRED: {{ .Values.weblate.general.WEBLATE_WEBSITE_REQUIRED | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_HIDE_VERSION }} + WEBLATE_HIDE_VERSION: {{ .Values.weblate.general.WEBLATE_HIDE_VERSION | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_BASIC_LANGUAGES }} + WEBLATE_BASIC_LANGUAGES: {{ .Values.weblate.general.WEBLATE_BASIC_LANGUAGES | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEFAULT_AUTO_WATCH }} + WEBLATE_DEFAULT_AUTO_WATCH: {{ .Values.weblate.general.WEBLATE_DEFAULT_AUTO_WATCH | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_RATELIMIT_ATTEMPTS }} + WEBLATE_RATELIMIT_ATTEMPTS: {{ .Values.weblate.general.WEBLATE_RATELIMIT_ATTEMPTS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_RATELIMIT_LOCKOUT }} + WEBLATE_RATELIMIT_LOCKOUT: {{ .Values.weblate.general.WEBLATE_RATELIMIT_LOCKOUT | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_RATELIMIT_WINDOW }} + WEBLATE_RATELIMIT_WINDOW: {{ .Values.weblate.general.WEBLATE_RATELIMIT_WINDOW | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_ENABLE_AVATARS }} + WEBLATE_ENABLE_AVATARS: {{ .Values.weblate.general.WEBLATE_ENABLE_AVATARS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH }} + WEBLATE_LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH: {{ .Values.weblate.general.WEBLATE_LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_SSH_EXTRA_ARGS }} + WEBLATE_SSH_EXTRA_ARGS: {{ .Values.weblate.general.WEBLATE_SSH_EXTRA_ARGS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_BORG_EXTRA_ARGS }} + WEBLATE_BORG_EXTRA_ARGS: {{ .Values.weblate.general.WEBLATE_BORG_EXTRA_ARGS | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DATABASE_BACKUP }} + WEBLATE_DATABASE_BACKUP: {{ .Values.weblate.general.WEBLATE_DATABASE_BACKUP | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_DEBUG }} + WEBLATE_DEBUG: {{ .Values.weblate.general.WEBLATE_DEBUG | quote }} + {{- end }} + {{- if .Values.weblate.general.WEBLATE_LOGLEVEL }} + WEBLATE_LOGLEVEL: {{ .Values.weblate.general.WEBLATE_LOGLEVEL | quote }} + {{- end }} + {{/* Machine Translation */}} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_APERTIUM_APY }} + WEBLATE_MT_APERTIUM_APY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_APERTIUM_APY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_AWS_REGION }} + WEBLATE_MT_AWS_REGION: {{ .Values.weblate.machinetranslate.WEBLATE_MT_AWS_REGION | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_AWS_ACCESS_KEY_ID }} + WEBLATE_MT_AWS_ACCESS_KEY_ID: {{ .Values.weblate.machinetranslate.WEBLATE_MT_AWS_ACCESS_KEY_ID | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_AWS_SECRET_ACCESS_KEY }} + WEBLATE_MT_AWS_SECRET_ACCESS_KEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_AWS_SECRET_ACCESS_KEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_DEEPL_KEY }} + WEBLATE_MT_DEEPL_KEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_DEEPL_KEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_DEEPL_API_URL }} + WEBLATE_MT_DEEPL_API_URL: {{ .Values.weblate.machinetranslate.WEBLATE_MT_DEEPL_API_URL | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_LIBRETRANSLATE_KEY }} + WEBLATE_MT_LIBRETRANSLATE_KEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_LIBRETRANSLATE_KEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_LIBRETRANSLATE_API_URL }} + WEBLATE_MT_LIBRETRANSLATE_API_URL: {{ .Values.weblate.machinetranslate.WEBLATE_MT_LIBRETRANSLATE_API_URL | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_KEY }} + WEBLATE_MT_GOOGLE_KEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_KEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_CREDENTIALS }} + WEBLATE_MT_GOOGLE_CREDENTIALS: {{ .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_CREDENTIALS | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_PROJECT }} + WEBLATE_MT_GOOGLE_PROJECT: {{ .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_PROJECT | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_LOCATION }} + WEBLATE_MT_GOOGLE_LOCATION: {{ .Values.weblate.machinetranslate.WEBLATE_MT_GOOGLE_LOCATION | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_COGNITIVE_KEY }} + WEBLATE_MT_MICROSOFT_COGNITIVE_KEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_COGNITIVE_KEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_ENDPOINT_URL }} + WEBLATE_MT_MICROSOFT_ENDPOINT_URL: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_ENDPOINT_URL | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_REGION }} + WEBLATE_MT_MICROSOFT_REGION: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_REGION | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_BASE_URL }} + WEBLATE_MT_MICROSOFT_BASE_URL: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_BASE_URL | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MODERNMT_KEY }} + WEBLATE_MT_MODERNMT_KEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MODERNMT_KEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MYMEMORY_ENABLED }} + WEBLATE_MT_MYMEMORY_ENABLED: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MYMEMORY_ENABLED | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_GLOSBE_ENABLED }} + WEBLATE_MT_GLOSBE_ENABLED: {{ .Values.weblate.machinetranslate.WEBLATE_MT_GLOSBE_ENABLED | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_TERMINOLOGY_ENABLED }} + WEBLATE_MT_MICROSOFT_TERMINOLOGY_ENABLED: {{ .Values.weblate.machinetranslate.WEBLATE_MT_MICROSOFT_TERMINOLOGY_ENABLED | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_SAP_BASE_URL }} + WEBLATE_MT_SAP_BASE_URL: {{ .Values.weblate.machinetranslate.WEBLATE_MT_SAP_BASE_URL | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_SAP_SANDBOX_APIKEY }} + WEBLATE_MT_SAP_SANDBOX_APIKEY: {{ .Values.weblate.machinetranslate.WEBLATE_MT_SAP_SANDBOX_APIKEY | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_SAP_USERNAME }} + WEBLATE_MT_SAP_USERNAME: {{ .Values.weblate.machinetranslate.WEBLATE_MT_SAP_USERNAME | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_SAP_PASSWORD }} + WEBLATE_MT_SAP_PASSWORD: {{ .Values.weblate.machinetranslate.WEBLATE_MT_SAP_PASSWORD | quote }} + {{- end }} + {{- if .Values.weblate.machinetranslate.WEBLATE_MT_SAP_USE_MT }} + WEBLATE_MT_SAP_USE_MT: {{ .Values.weblate.machinetranslate.WEBLATE_MT_SAP_USE_MT | quote }} + {{- end }} + {{/* Authentication */}} + {{/* LDAP */}} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_SERVER_URI }} + WEBLATE_AUTH_LDAP_SERVER_URI: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_SERVER_URI | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_DN_TEMPLATE }} + WEBLATE_AUTH_LDAP_USER_DN_TEMPLATE: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_DN_TEMPLATE | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_ATTR_MAP }} + WEBLATE_AUTH_LDAP_USER_ATTR_MAP: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_ATTR_MAP | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_BIND_DN }} + WEBLATE_AUTH_LDAP_BIND_DN: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_BIND_DN | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_BIND_PASSWORD }} + WEBLATE_AUTH_LDAP_BIND_PASSWORD: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_BIND_PASSWORD | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_CONNECTION_OPTION_REFERRALS }} + WEBLATE_AUTH_LDAP_CONNECTION_OPTION_REFERRALS: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_CONNECTION_OPTION_REFERRALS | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH }} + WEBLATE_AUTH_LDAP_USER_SEARCH: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH_FILTER }} + WEBLATE_AUTH_LDAP_USER_SEARCH_FILTER: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH_FILTER | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH_UNION }} + WEBLATE_AUTH_LDAP_USER_SEARCH_UNION: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH_UNION | quote }} + {{- end }} + {{- if .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH_UNION_DELIMITER }} + WEBLATE_AUTH_LDAP_USER_SEARCH_UNION_DELIMITER: {{ .Values.weblate.auth.ldap.WEBLATE_AUTH_LDAP_USER_SEARCH_UNION_DELIMITER | quote }} + {{- end }} + {{/* Github */}} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_KEY }} + WEBLATE_SOCIAL_AUTH_GITHUB_KEY: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_SECRET }} + WEBLATE_SOCIAL_AUTH_GITHUB_SECRET: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_ORG_KEY }} + WEBLATE_SOCIAL_AUTH_GITHUB_ORG_KEY: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_ORG_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_ORG_SECRET }} + WEBLATE_SOCIAL_AUTH_GITHUB_ORG_SECRET: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_ORG_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_ORG_NAME }} + WEBLATE_SOCIAL_AUTH_GITHUB_ORG_NAME: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_ORG_NAME | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_KEY }} + WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_KEY: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_SECRET }} + WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_SECRET: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_ID }} + WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_ID: {{ .Values.weblate.auth.github.WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_ID | quote }} + {{- end }} + {{/* Bitbucket */}} + {{- if .Values.weblate.auth.bitbucket.WEBLATE_SOCIAL_AUTH_BITBUCKET_KEY }} + WEBLATE_SOCIAL_AUTH_BITBUCKET_KEY: {{ .Values.weblate.auth.bitbucket.WEBLATE_SOCIAL_AUTH_BITBUCKET_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.bitbucket.WEBLATE_SOCIAL_AUTH_BITBUCKET_SECRET }} + WEBLATE_SOCIAL_AUTH_BITBUCKET_SECRET: {{ .Values.weblate.auth.bitbucket.WEBLATE_SOCIAL_AUTH_BITBUCKET_SECRET | quote }} + {{- end }} + {{/* Facebook */}} + {{- if .Values.weblate.auth.facebook.WEBLATE_SOCIAL_AUTH_FACEBOOK_KEY }} + WEBLATE_SOCIAL_AUTH_FACEBOOK_KEY: {{ .Values.weblate.auth.facebook.WEBLATE_SOCIAL_AUTH_FACEBOOK_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.facebook.WEBLATE_SOCIAL_AUTH_FACEBOOK_SECRET }} + WEBLATE_SOCIAL_AUTH_FACEBOOK_SECRET: {{ .Values.weblate.auth.facebook.WEBLATE_SOCIAL_AUTH_FACEBOOK_SECRET | quote }} + {{- end }} + {{/* Google */}} + {{- if .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY }} + WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY: {{ .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET }} + WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET: {{ .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS }} + WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS: {{ .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS | quote }} + {{- end }} + {{- if .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS }} + WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS: {{ .Values.weblate.auth.google.WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS | quote }} + {{- end }} + {{/* GitLab */}} + {{- if .Values.weblate.auth.gitlab.WEBLATE_SOCIAL_AUTH_GITLAB_KEY }} + WEBLATE_SOCIAL_AUTH_GITLAB_KEY: {{ .Values.weblate.auth.gitlab.WEBLATE_SOCIAL_AUTH_GITLAB_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.gitlab.WEBLATE_SOCIAL_AUTH_GITLAB_SECRET }} + WEBLATE_SOCIAL_AUTH_GITLAB_SECRET: {{ .Values.weblate.auth.gitlab.WEBLATE_SOCIAL_AUTH_GITLAB_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.gitlab.WEBLATE_SOCIAL_AUTH_GITLAB_API_URL }} + WEBLATE_SOCIAL_AUTH_GITLAB_API_URL: {{ .Values.weblate.auth.gitlab.WEBLATE_SOCIAL_AUTH_GITLAB_API_URL | quote }} + {{- end }} + {{/* Azure Active Directory */}} + {{- if .Values.weblate.auth.azure.WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_KEY }} + WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_KEY: {{ .Values.weblate.auth.azure.WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.azure.WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET }} + WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET: {{ .Values.weblate.auth.azure.WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET | quote }} + {{- end }} + {{/* Azure Active Directory with Tenant support */}} + {{- if .Values.weblate.auth.azuretenant.WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY }} + WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY: {{ .Values.weblate.auth.azuretenant.WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.azuretenant.WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET }} + WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET: {{ .Values.weblate.auth.azuretenant.WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.azuretenant.WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID }} + WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID: {{ .Values.weblate.auth.azuretenant.WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID | quote }} + {{- end }} + {{/* Keycloak */}} + {{- if .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_KEY }} + WEBLATE_SOCIAL_AUTH_KEYCLOAK_KEY: {{ .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_SECRET }} + WEBLATE_SOCIAL_AUTH_KEYCLOAK_SECRET: {{ .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_SECRET | quote }} + {{- end }} + {{- if .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY }} + WEBLATE_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY: {{ .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_ALGORITHM }} + WEBLATE_SOCIAL_AUTH_KEYCLOAK_ALGORITHM: {{ .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_ALGORITHM | quote }} + {{- end }} + {{- if .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL }} + WEBLATE_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL: {{ .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL | quote }} + {{- end }} + {{- if .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL }} + WEBLATE_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL: {{ .Values.weblate.auth.keycloak.WEBLATE_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL | quote }} + {{- end }} + {{/* Linux vendors */}} + {{- if .Values.weblate.auth.linux.WEBLATE_SOCIAL_AUTH_FEDORA }} + WEBLATE_SOCIAL_AUTH_FEDORA: {{ .Values.weblate.auth.linux.WEBLATE_SOCIAL_AUTH_FEDORA | quote }} + {{- end }} + {{- if .Values.weblate.auth.linux.WEBLATE_SOCIAL_AUTH_OPENSUSE }} + WEBLATE_SOCIAL_AUTH_OPENSUSE: {{ .Values.weblate.auth.linux.WEBLATE_SOCIAL_AUTH_OPENSUSE | quote }} + {{- end }} + {{- if .Values.weblate.auth.linux.WEBLATE_SOCIAL_AUTH_UBUNTU }} + WEBLATE_SOCIAL_AUTH_UBUNTU: {{ .Values.weblate.auth.linux.WEBLATE_SOCIAL_AUTH_UBUNTU | quote }} + {{- end }} + {{/* Slack */}} + {{- if .Values.weblate.auth.slack.WEBLATE_SOCIAL_AUTH_SLACK_KEY }} + WEBLATE_SOCIAL_AUTH_SLACK_KEY: {{ .Values.weblate.auth.slack.WEBLATE_SOCIAL_AUTH_SLACK_KEY | quote }} + {{- end }} + {{- if .Values.weblate.auth.slack.SOCIAL_AUTH_SLACK_SECRET }} + SOCIAL_AUTH_SLACK_SECRET: {{ .Values.weblate.auth.slack.SOCIAL_AUTH_SLACK_SECRET }} + {{- end }} + {{/* SAML */}} + {{- if .Values.weblate.auth.saml.WEBLATE_SAML_IDP_ENTITY_ID }} + WEBLATE_SAML_IDP_ENTITY_ID: {{ .Values.weblate.auth.saml.WEBLATE_SAML_IDP_ENTITY_ID | quote }} + {{- end }} + {{- if .Values.weblate.auth.saml.WEBLATE_SAML_IDP_URL }} + WEBLATE_SAML_IDP_URL: {{ .Values.weblate.auth.saml.WEBLATE_SAML_IDP_URL | quote }} + {{- end }} + {{- if .Values.weblate.auth.saml.WEBLATE_SAML_IDP_X509CERT }} + WEBLATE_SAML_IDP_X509CERT: {{ .Values.weblate.auth.saml.WEBLATE_SAML_IDP_X509CERT | quote }} + {{- end }} + {{/* Email Server */}} + {{- if .Values.weblate.email.WEBLATE_EMAIL_HOST }} + WEBLATE_EMAIL_HOST: {{ .Values.weblate.email.WEBLATE_EMAIL_HOST | quote }} + {{- end }} + {{- if .Values.weblate.email.WEBLATE_EMAIL_PORT }} + WEBLATE_EMAIL_PORT: {{ .Values.weblate.email.WEBLATE_EMAIL_PORT | quote }} + {{- end }} + {{- if .Values.weblate.email.WEBLATE_EMAIL_HOST_USER }} + WEBLATE_EMAIL_HOST_USER: {{ .Values.weblate.email.WEBLATE_EMAIL_HOST_USER | quote }} + {{- end }} + {{- if .Values.weblate.email.WEBLATE_EMAIL_HOST_PASSWORD }} + WEBLATE_EMAIL_HOST_PASSWORD: {{ .Values.weblate.email.WEBLATE_EMAIL_HOST_PASSWORD | quote }} + {{- end }} + {{- if .Values.weblate.email.WEBLATE_EMAIL_USE_SSL }} + WEBLATE_EMAIL_USE_SSL: {{ .Values.weblate.email.WEBLATE_EMAIL_USE_SSL | quote }} + {{- end }} + {{- if .Values.weblate.email.WEBLATE_EMAIL_USE_TLS }} + WEBLATE_EMAIL_USE_TLS: {{ .Values.weblate.email.WEBLATE_EMAIL_USE_TLS | quote }} + {{- end }} + {{- if .Values.weblate.email.WEBLATE_EMAIL_BACKEND }} + WEBLATE_EMAIL_BACKEND: {{ .Values.weblate.email.WEBLATE_EMAIL_BACKEND | quote }} + {{- end }} + {{/* Site Integration */}} + {{- if .Values.weblate.siteintegration.WEBLATE_GET_HELP_URL }} + WEBLATE_GET_HELP_URL: {{ .Values.weblate.siteintegration.WEBLATE_GET_HELP_URL | quote }} + {{- end }} + {{- if .Values.weblate.siteintegration.WEBLATE_STATUS_URL }} + WEBLATE_STATUS_URL: {{ .Values.weblate.siteintegration.WEBLATE_STATUS_URL | quote }} + {{- end }} + {{- if .Values.weblate.siteintegration.WEBLATE_LEGAL_URL }} + WEBLATE_LEGAL_URL: {{ .Values.weblate.siteintegration.WEBLATE_LEGAL_URL | quote }} + {{- end }} + {{- if .Values.weblate.siteintegration.WEBLATE_PRIVACY_URL }} + WEBLATE_PRIVACY_URL: {{ .Values.weblate.siteintegration.WEBLATE_PRIVACY_URL | quote }} + {{- end }} + {{/* Error Reporting */}} + {{- if .Values.weblate.errorreport.ROLLBAR_KEY }} + ROLLBAR_KEY: {{ .Values.weblate.REPALCEME.ROLLBAR_KEY | quote }} + {{- end }} + {{- if .Values.weblate.errorreport.ROLLBAR_ENVIRONMENT }} + ROLLBAR_ENVIRONMENT: {{ .Values.weblate.REPALCEME.ROLLBAR_ENVIRONMENT | quote }} + {{- end }} + {{- if .Values.weblate.errorreport.SENTRY_DSN }} + SENTRY_DSN: {{ .Values.weblate.REPALCEME.SENTRY_DSN | quote }} + {{- end }} + {{- if .Values.weblate.errorreport.SENTRY_ENVIRONMENT }} + SENTRY_ENVIRONMENT: {{ .Values.weblate.REPALCEME.SENTRY_ENVIRONMENT | quote }} + {{- end }} + {{/* Localization CDN */}} + {{- if .Values.weblate.localization.WEBLATE_LOCALIZE_CDN_URL }} + WEBLATE_LOCALIZE_CDN_URL: {{ .Values.weblate.localization.WEBLATE_LOCALIZE_CDN_URL | quote }} + {{- end }} + {{- if .Values.weblate.localization.WEBLATE_LOCALIZE_CDN_PATH }} + WEBLATE_LOCALIZE_CDN_PATH: {{ .Values.weblate.localization.WEBLATE_LOCALIZE_CDN_PATH | quote }} + {{- end }} +{{- end -}} diff --git a/charts/incubator/weblate/templates/common.yaml b/charts/incubator/weblate/templates/common.yaml new file mode 100644 index 00000000000..9da2e155178 --- /dev/null +++ b/charts/incubator/weblate/templates/common.yaml @@ -0,0 +1,8 @@ +{{/* Make sure all variables are set properly */}} +{{ include "common.setup" . }} + +{{/* Render configmap for weblate */}} +{{- include "weblate.configmap" . }} + +{{/* Render the templates */}} +{{ include "common.postSetup" . }} diff --git a/charts/incubator/weblate/values.yaml b/charts/incubator/weblate/values.yaml new file mode 100644 index 00000000000..2edeb93a452 --- /dev/null +++ b/charts/incubator/weblate/values.yaml @@ -0,0 +1,248 @@ +image: + repository: tccr.io/truecharts/weblate + tag: v4.10.1@sha256:bc517880487a9a766a3ce4ddfe429ed37ad4605d0097e28b0dd16eafdacd12b2 + pullPolicy: IfNotPresent + +securityContext: + readOnlyRootFilesystem: false + +podSecurityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + +env: + TZ: UTC + WEBLATE_TIME_ZONE: "{{ .Values.env.TZ }}" + POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}" + POSTGRES_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}" + POSTGRES_PORT: 5432 + REDIS_PORT: 6379 + REDIS_DB: "0" + +weblate: + general: + WEBLATE_SITE_TITLE: "My Project's Weblate" + WEBLATE_SITE_DOMAIN: "weblate.example.com" + # WEBLATE_ADMIN_NAME: "" + # WEBLATE_ADMIN_EMAIL: "" + # This sets the password on EVERY app startup + # WEBLATE_ADMIN_PASSWORD: "" + # WEBLATE_AUTO_UPDATE: "" + # WEBLATE_SERVER_EMAIL: "" + # WEBLATE_DEFAULT_FROM_EMAIL: "" + # WEBLATE_CONTACT_FORM: "" + # WEBLATE_REGISTRATION_OPEN: "" + # WEBLATE_REGISTRATION_ALLOW_BACKENDS: "" + # WEBLATE_REQUIRE_LOGIN: "" + # WEBLATE_LOGIN_REQUIRED_URLS_EXCEPTIONS: "" + # WEBLATE_ADD_LOGIN_REQUIRED_URLS_EXCEPTIONS: "" + # WEBLATE_REMOVE_LOGIN_REQUIRED_URLS_EXCEPTIONS: "" + # WEBLATE_DEFAULT_ACCESS_CONTROL: "" + # WEBLATE_DEFAULT_RESTRICTED_COMPONENT: "" + # WEBLATE_DEFAULT_TRANSLATION_PROPAGATION: "" + # WEBLATE_DEFAULT_COMMITER_EMAIL: "" + # WEBLATE_DEFAULT_COMMITER_NAME: "" + # WEBLATE_DEFAULT_SHARED_TM: "" + # WEBLATE_GPG_IDENTITY: "" + # WEBLATE_DEFAULT_AUTO_WATCH: "" + # WEBLATE_GITHUB_USERNAME: "" + # WEBLATE_GITHUB_TOKEN: "" + # WEBLATE_GITLAB_USERNAME: "" + # WEBLATE_GITLAB_TOKEN: "" + # WEBLATE_CSP_SCRIPT_SRC: "" + # WEBLATE_CSP_IMG_SRC: "" + # WEBLATE_CSP_CONNECT_SRC: "" + # WEBLATE_CSP_STYLE_SRC: "" + # WEBLATE_CSP_FONT_SRC: "" + # WEBLATE_WEBSITE_REQUIRED: "" + # WEBLATE_SIMPLIFY_LANGUAGES: "" + # WEBLATE_DATABASE_BACKUP: "" + # WEBLATE_URL_PREFIX: "" + # WEBLATE_SILENCED_SYSTEM_CHECKS: "" + # WEBLATE_HIDE_VERSION: "" + # WEBLATE_BASIC_LANGUAGES: "" + # WEBLATE_ENABLE_AVATARS: "" + # WEBLATE_LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH: "" + # WEBLATE_ALLOWED_HOSTS: "" + # WEBLATE_ENABLE_HTTPS: "" + # WEBLATE_IP_PROXY_HEADER: "" + # WEBLATE_SECURE_PROXY_SSL_HEADER: "" + # WEBLATE_LICENSE_FILTER: "" + # WEBLATE_LICENSE_REQUIRED: "" + # WEBLATE_RATELIMIT_ATTEMPTS: "" + # WEBLATE_RATELIMIT_LOCKOUT: "" + # WEBLATE_RATELIMIT_WINDOW: "" + WEBLATE_DEBUG: "false" + # WEBLATE_LOGLEVEL: "" + # WEBLATE_GOOGLE_ANALYTICS_ID: "" + # WEBLATE_PAGURE_USERNAME: "" + # WEBLATE_PAGURE_TOKEN: "" + # WEBLATE_AKISMET_API_KEY: "" + # WEBLATE_SSH_EXTRA_ARGS: "" + # WEBLATE_BORG_EXTRA_ARGS: "" + machinetranslate: {} + # WEBLATE_MT_APERTIUM_APY: "" + # WEBLATE_MT_AWS_REGION: "" + # WEBLATE_MT_AWS_ACCESS_KEY_ID: "" + # WEBLATE_MT_AWS_SECRET_ACCESS_KEY: "" + # WEBLATE_MT_DEEPL_KEY: "" + # WEBLATE_MT_DEEPL_API_URL: "" + # WEBLATE_MT_LIBRETRANSLATE_KEY: "" + # WEBLATE_MT_LIBRETRANSLATE_API_URL: "" + # WEBLATE_MT_GOOGLE_KEY: "" + # WEBLATE_MT_GOOGLE_CREDENTIALS: "" + # WEBLATE_MT_GOOGLE_PROJECT: "" + # WEBLATE_MT_GOOGLE_LOCATION: "" + # WEBLATE_MT_MICROSOFT_COGNITIVE_KEY: "" + # WEBLATE_MT_MICROSOFT_ENDPOINT_URL: "" + # WEBLATE_MT_MICROSOFT_REGION: "" + # WEBLATE_MT_MICROSOFT_BASE_URL: "" + # WEBLATE_MT_MODERNMT_KEY: "" + # WEBLATE_MT_MYMEMORY_ENABLED: "" + # WEBLATE_MT_GLOSBE_ENABLED: "" + # WEBLATE_MT_MICROSOFT_TERMINOLOGY_ENABLED: "" + # WEBLATE_MT_SAP_BASE_URL: "" + # WEBLATE_MT_SAP_SANDBOX_APIKEY: "" + # WEBLATE_MT_SAP_USERNAME: "" + # WEBLATE_MT_SAP_PASSWORD: "" + # WEBLATE_MT_SAP_USE_MT: "" + auth: + ldap: {} + # WEBLATE_AUTH_LDAP_SERVER_URI: "" + # WEBLATE_AUTH_LDAP_USER_DN_TEMPLATE: "" + # WEBLATE_AUTH_LDAP_USER_ATTR_MAP: "" + # WEBLATE_AUTH_LDAP_BIND_DN: "" + # WEBLATE_AUTH_LDAP_BIND_PASSWORD: "" + # WEBLATE_AUTH_LDAP_CONNECTION_OPTION_REFERRALS: "" + # WEBLATE_AUTH_LDAP_USER_SEARCH: "" + # WEBLATE_AUTH_LDAP_USER_SEARCH_FILTER: "" + # WEBLATE_AUTH_LDAP_USER_SEARCH_UNION: "" + # WEBLATE_AUTH_LDAP_USER_SEARCH_UNION_DELIMITER: "" + github: {} + # WEBLATE_SOCIAL_AUTH_GITHUB_KEY: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_SECRET: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_ORG_KEY: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_ORG_SECRET: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_ORG_NAME: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_KEY: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_SECRET: "" + # WEBLATE_SOCIAL_AUTH_GITHUB_TEAM_ID: "" + bitbucket: {} + # WEBLATE_SOCIAL_AUTH_BITBUCKET_KEY: "" + # WEBLATE_SOCIAL_AUTH_BITBUCKET_SECRET: "" + facebook: {} + # WEBLATE_SOCIAL_AUTH_FACEBOOK_KEY: "" + # WEBLATE_SOCIAL_AUTH_FACEBOOK_SECRET: "" + google: {} + # WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_KEY: "" + # WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET: "" + # WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS: "" + # WEBLATE_SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_EMAILS: "" + gitlab: {} + # WEBLATE_SOCIAL_AUTH_GITLAB_KEY: "" + # WEBLATE_SOCIAL_AUTH_GITLAB_SECRET: "" + # WEBLATE_SOCIAL_AUTH_GITLAB_API_URL: "" + azure: {} + # WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_KEY: "" + # WEBLATE_SOCIAL_AUTH_AZUREAD_OAUTH2_SECRET: "" + azuretenant: {} + # WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY: "" + # WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET: "" + # WEBLATE_SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID: "" + keycloak: {} + # WEBLATE_SOCIAL_AUTH_KEYCLOAK_KEY: "" + # WEBLATE_SOCIAL_AUTH_KEYCLOAK_SECRET: "" + # WEBLATE_SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY: "" + # WEBLATE_SOCIAL_AUTH_KEYCLOAK_ALGORITHM: "" + # WEBLATE_SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL: "" + # WEBLATE_SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL: "" + linux: {} + # WEBLATE_SOCIAL_AUTH_FEDORA: "" + # WEBLATE_SOCIAL_AUTH_OPENSUSE: "" + # WEBLATE_SOCIAL_AUTH_UBUNTU: "" + slack: {} + # WEBLATE_SOCIAL_AUTH_SLACK_KEY: "" + # SOCIAL_AUTH_SLACK_SECRET: "" + saml: {} + # WEBLATE_SAML_IDP_ENTITY_ID: "" + # WEBLATE_SAML_IDP_URL: "" + # WEBLATE_SAML_IDP_X509CERT: "" + email: {} + # WEBLATE_EMAIL_PORT: "" + # WEBLATE_EMAIL_HOST: "" + # WEBLATE_EMAIL_HOST_USER: "" + # WEBLATE_EMAIL_HOST_PASSWORD: "" + # WEBLATE_EMAIL_USE_SSL: "" + # WEBLATE_EMAIL_USE_TLS: "" + # WEBLATE_EMAIL_BACKEND: "" + siteintegration: {} + # WEBLATE_GET_HELP_URL: "" + # WEBLATE_STATUS_URL: "" + # WEBLATE_LEGAL_URL: "" + # WEBLATE_PRIVACY_URL: "" + errorreport: {} + # ROLLBAR_KEY: "" + # ROLLBAR_ENVIRONMENT: "" + # SENTRY_DSN: "" + # SENTRY_ENVIRONMENT: "" + localization: {} + # WEBLATE_LOCALIZE_CDN_URL: "" + # WEBLATE_LOCALIZE_CDN_PATH: "" + +envFrom: + - configMapRef: + name: weblate-env + +envValueFrom: + POSTGRES_PASSWORD: + secretKeyRef: + name: dbcreds + key: postgresql-password + POSTGRES_HOST: + secretKeyRef: + name: dbcreds + key: plainhost + REDIS_HOST: + secretKeyRef: + name: rediscreds + key: plainhost + REDIS_PASSWORD: + secretKeyRef: + name: rediscreds + key: redis-password + +probes: + liveness: + path: "/healthz" + readiness: + path: "/healthz" + startup: + path: "/healthz" + +service: + main: + ports: + main: + port: 10158 + targetPort: 8080 + +persistence: + config: + enabled: true + mountPath: "/app/data" + cache: + enabled: true + type: emptyDir + mountPath: "/app/cache" + +redis: + enabled: true + existingSecret: "rediscreds" + redisUsername: default + +postgresql: + enabled: true + existingSecret: "dbcreds" + postgresqlUsername: weblate + postgresqlDatabase: weblate diff --git a/docs/_static/img/appicons/weblate-icon.png b/docs/_static/img/appicons/weblate-icon.png new file mode 100644 index 00000000000..de277447894 Binary files /dev/null and b/docs/_static/img/appicons/weblate-icon.png differ diff --git a/docs/apps/app-requests.md b/docs/apps/app-requests.md index 71e713687b3..f7713fb6c64 100644 --- a/docs/apps/app-requests.md +++ b/docs/apps/app-requests.md @@ -23,7 +23,6 @@ _This list is to track `App Requests` from one place._ - [ ] External-Auth-Server #28 - [ ] Borg Backup #782 - [ ] Krusader #794 -- [ ] WeblateOrg #817 - [ ] ElectrumX #881 - [ ] Restic #897 - [ ] External-DNS #905 @@ -515,3 +514,4 @@ _These Apps have specific requirements or need specific customisation and care_ - [x] papermerge ( example helm-chart available from [ nicholaswilde ](https://github.com/nicholaswilde/helm-charts) ) - [x] Synapse (Matrix Server) #410 - [x] n8n #27 +- [x] WeblateOrg #817 diff --git a/docs/manual/default-ports.md b/docs/manual/default-ports.md index fb94259057f..ccc9c81f94c 100644 --- a/docs/manual/default-ports.md +++ b/docs/manual/default-ports.md @@ -308,6 +308,7 @@ These defaults can of course be changed, but as we guarantee "sane, working defa | airdcpp-webclient | main | main | 10155 | HTTP | | | trilium-notes | main | main | 10156 | HTTP | | | unmanic | main | main | 10157 | TCP | | +| weblate | main | main | 10158 | TCP | | | hyperion-ng | boblightservice | boblightservice | 19333 | TCP | | | hyperion-ng | jsonservice | jsonservice | 19444 | TCP | | | hyperion-ng | protobufservice | protobufservice | 19445 | TCP | |