Skip to content

Commit

Permalink
Set default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Oct 31, 2024
1 parent 2d23f89 commit b33edee
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions osm-seed/templates/tasking-manager-api/tm-configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,44 @@ kind: ConfigMap
metadata:
name: {{ .Release.Name }}-tm-common-env
data:
POSTGRES_HOST: {{ .Release.Name }}-tasking-manager-db
POSTGRES_DB: {{ quote .Values.tmDb.env.POSTGRES_DB }}
POSTGRES_PASSWORD: {{ quote .Values.tmDb.env.POSTGRES_PASSWORD }}
POSTGRES_USER: {{ quote .Values.tmDb.env.POSTGRES_USER }}
POSTGRES_PORT: {{ quote "5432" }}
POSTGRES_HOST: {{ quote .Release.Name }}-tasking-manager-db
POSTGRES_DB: {{ quote .Values.tmDb.env.POSTGRES_DB | default "" }}
POSTGRES_PASSWORD: {{ quote .Values.tmDb.env.POSTGRES_PASSWORD | default "" }}
POSTGRES_USER: {{ quote .Values.tmDb.env.POSTGRES_USER | default "" }}
POSTGRES_PORT: "5432"
TM_DB: {{ quote (printf "postgresql://%s:%s@%s-tasking-manager-db/%s" .Values.tmDb.env.POSTGRES_USER .Values.tmDb.env.POSTGRES_PASSWORD .Release.Name .Values.tmDb.env.POSTGRES_DB) }}
TM_ORG_NAME: {{ quote .Values.tmApi.env.TM_ORG_NAME }}
TM_ORG_CODE: {{ quote .Values.tmApi.env.TM_ORG_CODE }}
TM_ORG_URL: {{ quote .Values.tmApi.env.TM_ORG_URL }}
TM_ORG_PRIVACY_POLICY_URL: {{ quote .Values.tmApi.env.TM_ORG_PRIVACY_POLICY_URL }}
TM_ORG_TWITTER: {{ quote .Values.tmApi.env.TM_ORG_TWITTER }}
TM_ORG_FB: {{ quote .Values.tmApi.env.TM_ORG_FB }}
TM_ORG_INSTAGRAM: {{ quote .Values.tmApi.env.TM_ORG_INSTAGRAM }}
TM_ORG_YOUTUBE: {{ quote .Values.tmApi.env.TM_ORG_YOUTUBE }}
TM_ORG_GITHUB: {{ quote .Values.tmApi.env.TM_ORG_GITHUB }}
OSM_SERVER_URL: {{ quote .Values.tmApi.env.OSM_SERVER_URL }}
OSM_NOMINATIM_SERVER_URL: {{ quote .Values.tmApi.env.OSM_NOMINATIM_SERVER_URL }}
OSM_REGISTER_URL: {{ quote .Values.tmApi.env.OSM_REGISTER_URL }}
ID_EDITOR_URL: {{ quote .Values.tmApi.env.ID_EDITOR_URL }}
POTLATCH2_EDITOR_URL: {{ quote .Values.tmApi.env.POTLATCH2_EDITOR_URL }}
TM_SECRET: {{ quote .Values.tmApi.env.TM_SECRET }}
TM_CONSUMER_SECRET: {{ quote .Values.tmApi.env.TM_CONSUMER_SECRET }}
TM_CONSUMER_KEY: {{ quote .Values.tmApi.env.TM_CONSUMER_KEY }}
TM_EMAIL_FROM_ADDRESS: {{ quote .Values.tmApi.env.TM_EMAIL_FROM_ADDRESS }}
TM_EMAIL_CONTACT_ADDRESS: {{ quote .Values.tmApi.env.TM_EMAIL_CONTACT_ADDRESS }}
TM_SMTP_HOST: {{ quote .Values.tmApi.env.TM_SMTP_HOST }}
TM_SMTP_PORT: {{ quote .Values.tmApi.env.TM_SMTP_PORT }}
TM_SMTP_USER: {{ quote .Values.tmApi.env.TM_SMTP_USER }}
TM_SMTP_PASSWORD: {{ quote .Values.tmApi.env.TM_SMTP_PASSWORD }}
TM_DEFAULT_LOCALE: {{ quote .Values.tmApi.env.TM_DEFAULT_LOCALE }}
TM_APP_API_URL: {{ quote .Values.tmApi.env.TM_APP_API_URL }}
TM_APP_BASE_URL: {{ quote .Values.tmApi.env.TM_APP_BASE_URL }}
TM_ORG_NAME: {{ quote .Values.tmApi.env.TM_ORG_NAME | default "" }}
TM_ORG_CODE: {{ quote .Values.tmApi.env.TM_ORG_CODE | default "" }}
TM_ORG_URL: {{ quote .Values.tmApi.env.TM_ORG_URL | default "" }}
TM_ORG_PRIVACY_POLICY_URL: {{ quote .Values.tmApi.env.TM_ORG_PRIVACY_POLICY_URL | default "" }}
TM_ORG_TWITTER: {{ quote .Values.tmApi.env.TM_ORG_TWITTER | default "" }}
TM_ORG_FB: {{ quote .Values.tmApi.env.TM_ORG_FB | default "" }}
TM_ORG_INSTAGRAM: {{ quote .Values.tmApi.env.TM_ORG_INSTAGRAM | default "" }}
TM_ORG_YOUTUBE: {{ quote .Values.tmApi.env.TM_ORG_YOUTUBE | default "" }}
TM_ORG_GITHUB: {{ quote .Values.tmApi.env.TM_ORG_GITHUB | default "" }}
OSM_SERVER_URL: {{ quote .Values.tmApi.env.OSM_SERVER_URL | default "" }}
OSM_NOMINATIM_SERVER_URL: {{ quote .Values.tmApi.env.OSM_NOMINATIM_SERVER_URL | default "" }}
OSM_REGISTER_URL: {{ quote .Values.tmApi.env.OSM_REGISTER_URL | default "" }}
ID_EDITOR_URL: {{ quote .Values.tmApi.env.ID_EDITOR_URL | default "" }}
POTLATCH2_EDITOR_URL: {{ quote .Values.tmApi.env.POTLATCH2_EDITOR_URL | default "" }}
TM_SECRET: {{ quote .Values.tmApi.env.TM_SECRET | default "" }}
TM_CONSUMER_SECRET: {{ quote .Values.tmApi.env.TM_CONSUMER_SECRET | default "" }}
TM_CONSUMER_KEY: {{ quote .Values.tmApi.env.TM_CONSUMER_KEY | default "" }}
TM_EMAIL_FROM_ADDRESS: {{ quote .Values.tmApi.env.TM_EMAIL_FROM_ADDRESS | default "" }}
TM_EMAIL_CONTACT_ADDRESS: {{ quote .Values.tmApi.env.TM_EMAIL_CONTACT_ADDRESS | default "" }}
TM_SMTP_HOST: {{ quote .Values.tmApi.env.TM_SMTP_HOST | default "" }}
TM_SMTP_PORT: {{ quote .Values.tmApi.env.TM_SMTP_PORT | default "" }}
TM_SMTP_USER: {{ quote .Values.tmApi.env.TM_SMTP_USER | default "" }}
TM_SMTP_PASSWORD: {{ quote .Values.tmApi.env.TM_SMTP_PASSWORD | default "" }}
TM_DEFAULT_LOCALE: {{ quote .Values.tmApi.env.TM_DEFAULT_LOCALE | default "" }}
TM_APP_API_URL: {{ quote .Values.tmApi.env.TM_APP_API_URL | default "" }}
TM_APP_BASE_URL: {{ quote .Values.tmApi.env.TM_APP_BASE_URL | default "" }}
TM_IMPORT_MAX_FILESIZE: {{ quote (.Values.tmApi.env.TM_IMPORT_MAX_FILESIZE | default "1000000") }}
TM_MAX_AOI_AREA: {{ quote (.Values.tmApi.env.TM_MAX_AOI_AREA | default "5000") }}
TM_CLIENT_ID: {{ quote .Values.tmApi.env.TM_CLIENT_ID }}
TM_CLIENT_SECRET: {{ quote .Values.tmApi.env.TM_CLIENT_SECRET }}
TM_DEFAULT_CHANGESET_COMMENT: {{ quote .Values.tmApi.env.TM_DEFAULT_CHANGESET_COMMENT }}
TM_REDIRECT_URI: {{ quote .Values.tmApi.env.TM_REDIRECT_URI }}
TM_SCOPE: {{ quote .Values.tmApi.env.TM_SCOPE }}
TM_APP_API_VERSION: {{ quote .Values.tmApi.env.TM_APP_API_VERSION }}
{{- end }}
TM_CLIENT_ID: {{ quote .Values.tmApi.env.TM_CLIENT_ID | default "" }}
TM_CLIENT_SECRET: {{ quote .Values.tmApi.env.TM_CLIENT_SECRET | default "" }}
TM_DEFAULT_CHANGESET_COMMENT: {{ quote .Values.tmApi.env.TM_DEFAULT_CHANGESET_COMMENT | default "" }}
TM_REDIRECT_URI: {{ quote .Values.tmApi.env.TM_REDIRECT_URI | default "" }}
TM_SCOPE: {{ quote .Values.tmApi.env.TM_SCOPE | default "" }}
TM_APP_API_VERSION: {{ quote .Values.tmApi.env.TM_APP_API_VERSION | default "v2" }}
{{- end }}

0 comments on commit b33edee

Please sign in to comment.