fukuops/k8s/charts/pocket-id/templates/configmap.yaml

208 lines
8.7 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "pocket-id.fullname" . }}
labels:
{{- include "pocket-id.labels" . | nindent 4 }}
data:
{{- if .Values.config.appUrl }}
APP_URL: {{ .Values.config.appUrl | quote }}
{{- end }}
{{- if .Values.config.trustProxy }}
TRUST_PROXY: {{ .Values.config.trustProxy | quote }}
{{- end }}
{{- if .Values.config.proxyProtocol }}
PROXY_PROTOCOL: {{ .Values.config.proxyProtocol | quote }}
{{- end }}
{{- if .Values.config.trustedPlatform }}
TRUSTED_PLATFORM: {{ .Values.config.trustedPlatform | quote }}
{{- end }}
{{- if .Values.config.allowInsecureCallbackUrls }}
ALLOW_INSECURE_CALLBACK_URLS: {{ .Values.config.allowInsecureCallbackUrls | quote }}
{{- end }}
{{- if .Values.config.maxmindLicenseKey }}
MAXMIND_LICENSE_KEY: {{ .Values.config.maxmindLicenseKey | quote }}
{{- end }}
{{- if .Values.config.dbConnectionString }}
DB_CONNECTION_STRING: {{ .Values.config.dbConnectionString | quote }}
{{- end }}
{{- if .Values.config.fileBackend }}
FILE_BACKEND: {{ .Values.config.fileBackend | quote }}
{{- end }}
{{- if .Values.config.uploadPath }}
UPLOAD_PATH: {{ .Values.config.uploadPath | quote }}
{{- end }}
{{- if .Values.config.logLevel }}
LOG_LEVEL: {{ .Values.config.logLevel | quote }}
{{- end }}
{{- if .Values.config.logJson }}
LOG_JSON: {{ .Values.config.logJson | quote }}
{{- end }}
{{- if .Values.config.geoliteDbPath }}
GEOLITE_DB_PATH: {{ .Values.config.geoliteDbPath | quote }}
{{- end }}
{{- if .Values.config.port }}
PORT: {{ .Values.config.port | quote }}
{{- end }}
{{- if .Values.config.host }}
HOST: {{ .Values.config.host | quote }}
{{- end }}
{{- if .Values.config.uiConfigDisabled }}
UI_CONFIG_DISABLED: {{ .Values.config.uiConfigDisabled | quote }}
{{- end }}
{{- if .Values.config.analyticsDisabled }}
ANALYTICS_DISABLED: {{ .Values.config.analyticsDisabled | quote }}
{{- end }}
{{- if .Values.config.versionCheckDisabled }}
VERSION_CHECK_DISABLED: {{ .Values.config.versionCheckDisabled | quote }}
{{- end }}
{{- if .Values.config.auditLogRetentionDays }}
AUDIT_LOG_RETENTION_DAYS: {{ .Values.config.auditLogRetentionDays | quote }}
{{- end }}
{{- if .Values.config.disableRateLimiting }}
DISABLE_RATE_LIMITING: {{ .Values.config.disableRateLimiting | quote }}
{{- end }}
{{- if .Values.config.appName }}
APP_NAME: {{ .Values.config.appName | quote }}
{{- end }}
{{- if .Values.config.sessionDuration }}
SESSION_DURATION: {{ .Values.config.sessionDuration | quote }}
{{- end }}
{{- if .Values.config.homePageUrl }}
HOME_PAGE_URL: {{ .Values.config.homePageUrl | quote }}
{{- end }}
{{- if .Values.config.requireUserEmail }}
REQUIRE_USER_EMAIL: {{ .Values.config.requireUserEmail | quote }}
{{- end }}
{{- if .Values.config.emailsVerified }}
EMAILS_VERIFIED: {{ .Values.config.emailsVerified | quote }}
{{- end }}
{{- if .Values.config.allowOwnAccountEdit }}
ALLOW_OWN_ACCOUNT_EDIT: {{ .Values.config.allowOwnAccountEdit | quote }}
{{- end }}
{{- if .Values.config.allowUserSignups }}
ALLOW_USER_SIGNUPS: {{ .Values.config.allowUserSignups | quote }}
{{- end }}
{{- if .Values.config.signupDefaultCustomClaims }}
SIGNUP_DEFAULT_CUSTOM_CLAIMS: {{ .Values.config.signupDefaultCustomClaims | toJson | quote }}
{{- end }}
{{- if .Values.config.signupDefaultUserGroupIds }}
SIGNUP_DEFAULT_USER_GROUP_IDS: {{ .Values.config.signupDefaultUserGroupIds | toJson | quote }}
{{- end }}
{{- if .Values.config.disableAnimations }}
DISABLE_ANIMATIONS: {{ .Values.config.disableAnimations | quote }}
{{- end }}
{{- if .Values.config.accentColor }}
ACCENT_COLOR: {{ .Values.config.accentColor | quote }}
{{- end }}
{{- if .Values.config.smtpHost }}
SMTP_HOST: {{ .Values.config.smtpHost | quote }}
{{- end }}
{{- if .Values.config.smtpPort }}
SMTP_PORT: {{ .Values.config.smtpPort | quote }}
{{- end }}
{{- if .Values.config.smtpFrom }}
SMTP_FROM: {{ .Values.config.smtpFrom | quote }}
{{- end }}
{{- if .Values.config.smtpUser }}
SMTP_USER: {{ .Values.config.smtpUser | quote }}
{{- end }}
{{- if .Values.config.smtpTls }}
SMTP_TLS: {{ .Values.config.smtpTls | quote }}
{{- end }}
{{- if .Values.config.smtpSkipCertVerify }}
SMTP_SKIP_CERT_VERIFY: {{ .Values.config.smtpSkipCertVerify | quote }}
{{- end }}
{{- if .Values.config.emailLoginNotificationEnabled }}
EMAIL_LOGIN_NOTIFICATION_ENABLED: {{ .Values.config.emailLoginNotificationEnabled | quote }}
{{- end }}
{{- if .Values.config.emailOneTimeAccessAsAdminEnabled }}
EMAIL_ONE_TIME_ACCESS_AS_ADMIN_ENABLED: {{ .Values.config.emailOneTimeAccessAsAdminEnabled | quote }}
{{- end }}
{{- if .Values.config.emailApiKeyExpirationEnabled }}
EMAIL_API_KEY_EXPIRATION_ENABLED: {{ .Values.config.emailApiKeyExpirationEnabled | quote }}
{{- end }}
{{- if .Values.config.emailOneTimeAccessAsUnauthenticatedEnabled }}
EMAIL_ONE_TIME_ACCESS_AS_UNAUTHENTICATED_ENABLED: {{ .Values.config.emailOneTimeAccessAsUnauthenticatedEnabled | quote }}
{{- end }}
{{- if .Values.config.emailVerificationEnabled }}
EMAIL_VERIFICATION_ENABLED: {{ .Values.config.emailVerificationEnabled | quote }}
{{- end }}
{{- if .Values.config.ldapEnabled }}
LDAP_ENABLED: {{ .Values.config.ldapEnabled | quote }}
{{- end }}
{{- if .Values.config.ldapUrl }}
LDAP_URL: {{ .Values.config.ldapUrl | quote }}
{{- end }}
{{- if .Values.config.ldapBindDn }}
LDAP_BIND_DN: {{ .Values.config.ldapBindDn | quote }}
{{- end }}
{{- if .Values.config.ldapBase }}
LDAP_BASE: {{ .Values.config.ldapBase | quote }}
{{- end }}
{{- if .Values.config.ldapUserSearchFilter }}
LDAP_USER_SEARCH_FILTER: {{ .Values.config.ldapUserSearchFilter | quote }}
{{- end }}
{{- if .Values.config.ldapUserGroupSearchFilter }}
LDAP_USER_GROUP_SEARCH_FILTER: {{ .Values.config.ldapUserGroupSearchFilter | quote }}
{{- end }}
{{- if .Values.config.ldapSkipCertVerify }}
LDAP_SKIP_CERT_VERIFY: {{ .Values.config.ldapSkipCertVerify | quote }}
{{- end }}
{{- if .Values.config.ldapSoftDeleteUsers }}
LDAP_SOFT_DELETE_USERS: {{ .Values.config.ldapSoftDeleteUsers | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeUserUniqueIdentifier }}
LDAP_ATTRIBUTE_USER_UNIQUE_IDENTIFIER: {{ .Values.config.ldapAttributeUserUniqueIdentifier | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeUserUsername }}
LDAP_ATTRIBUTE_USER_USERNAME: {{ .Values.config.ldapAttributeUserUsername | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeUserEmail }}
LDAP_ATTRIBUTE_USER_EMAIL: {{ .Values.config.ldapAttributeUserEmail | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeUserFirstName }}
LDAP_ATTRIBUTE_USER_FIRST_NAME: {{ .Values.config.ldapAttributeUserFirstName | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeUserLastName }}
LDAP_ATTRIBUTE_USER_LAST_NAME: {{ .Values.config.ldapAttributeUserLastName | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeUserProfilePicture }}
LDAP_ATTRIBUTE_USER_PROFILE_PICTURE: {{ .Values.config.ldapAttributeUserProfilePicture | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeGroupMember }}
LDAP_ATTRIBUTE_GROUP_MEMBER: {{ .Values.config.ldapAttributeGroupMember | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeGroupUniqueIdentifier }}
LDAP_ATTRIBUTE_GROUP_UNIQUE_IDENTIFIER: {{ .Values.config.ldapAttributeGroupUniqueIdentifier | quote }}
{{- end }}
{{- if .Values.config.ldapAttributeGroupName }}
LDAP_ATTRIBUTE_GROUP_NAME: {{ .Values.config.ldapAttributeGroupName | quote }}
{{- end }}
{{- if .Values.config.ldapAdminGroupName }}
LDAP_ADMIN_GROUP_NAME: {{ .Values.config.ldapAdminGroupName | quote }}
{{- end }}
{{- if .Values.config.webauthnUserVerification }}
WEBAUTHN_USER_VERIFICATION: {{ .Values.config.webauthnUserVerification | quote }}
{{- end }}
{{- if .Values.config.webauthnAllowSyncedPasskeys }}
WEBAUTHN_ALLOW_SYNCED_PASSKEYS: {{ .Values.config.webauthnAllowSyncedPasskeys | quote }}
{{- end }}
{{- if .Values.config.webauthnAuthenticatorAttachment }}
WEBAUTHN_AUTHENTICATOR_ATTACHMENT: {{ .Values.config.webauthnAuthenticatorAttachment | quote }}
{{- end }}
{{- if .Values.config.cimdUrlAllowlist }}
CIMD_URL_ALLOWLIST: {{ .Values.config.cimdUrlAllowlist | toJson | quote }}
{{- end }}
{{- if .Values.config.otelTracesExporter }}
OTEL_TRACES_EXPORTER: {{ .Values.config.otelTracesExporter | quote }}
{{- end }}
{{- if .Values.config.otelMetricsExporter }}
OTEL_METRICS_EXPORTER: {{ .Values.config.otelMetricsExporter | quote }}
{{- end }}
{{- if .Values.config.otelLogsExporter }}
OTEL_LOGS_EXPORTER: {{ .Values.config.otelLogsExporter | quote }}
{{- end }}
{{- if .Values.config.otelExporterOtlpEndpoint }}
OTEL_EXPORTER_OTLP_ENDPOINT: {{ .Values.config.otelExporterOtlpEndpoint | quote }}
{{- end }}