From 359aac0764a19984c91bc6ca36f462e193cb2dcf Mon Sep 17 00:00:00 2001 From: Daniel Pimenta Date: Fri, 23 Feb 2024 11:55:26 +0000 Subject: [PATCH] Add configmap --- charts/eoepca-portal/templates/configmap.yaml | 23 +++++++++++++++++++ .../eoepca-portal/templates/deployment.yaml | 2 ++ charts/eoepca-portal/values.yaml | 20 +++++++++++++++- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 charts/eoepca-portal/templates/configmap.yaml diff --git a/charts/eoepca-portal/templates/configmap.yaml b/charts/eoepca-portal/templates/configmap.yaml new file mode 100644 index 0000000..2bb3c66 --- /dev/null +++ b/charts/eoepca-portal/templates/configmap.yaml @@ -0,0 +1,23 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "eoepca-portal.name" . }} + labels: + {{- include "eoepca-portal.labels" . | nindent 4 }} +data: + AUTH_SERVER_URL: "{{ .Values.configMap.auth_server_url }}" + IDENTITY_URL: "{{ .Values.configMap.identity_url }}" + REALM: "{{ .Values.configMap.realm }}" + CLIENT_ID: "{{ .Values.configMap.client_id }}" + IDENTITY_API_URL: "{{ .Values.configMap.identity_api_url }}" + ADES_URL: "{{ .Values.configMap.ades_url }}" + RESOURCE_CATALOGUE_URL: "{{ .Values.configMap.resource_catalogue_url }}" + DATA_ACCESS_URL: "{{ .Values.configMap.data_access_url }}" + WORKSPACE_URL: "{{ .Values.configMap.workspace_url }}" + WORKSPACE_DOCS_URL: "{{ .Values.configMap.workspace_docs_url }}" + IMAGES_REGISTRY_URL: "{{ .Values.configMap.images_registry_url }}" + DUMMY_SERVICE_URL: "{{ .Values.configMap.dummy_service_url }}" + ACCESS_TOKEN_NAME: "{{ .Values.configMap.access_token_name }}" + ACCESS_TOKEN_DOMAIN: "{{ .Values.configMap.access_token_domain }}" + REFRESH_TOKEN_NAME: "{{ .Values.configMap.refresh_token_name }}" + REFRESH_TOKEN_DOMAIN: "{{ .Values.configMap.refresh_token_domain }}" \ No newline at end of file diff --git a/charts/eoepca-portal/templates/deployment.yaml b/charts/eoepca-portal/templates/deployment.yaml index 0888cd0..b0c0fcc 100644 --- a/charts/eoepca-portal/templates/deployment.yaml +++ b/charts/eoepca-portal/templates/deployment.yaml @@ -43,6 +43,8 @@ spec: {{- with .Values.deployment.extraEnvFrom }} {{- tpl . $ | nindent 12 }} {{- end }} + - configMapRef: + name: {{ include "eoepca-portal.name" . }} ports: - name: http containerPort: {{ .Values.deployment.containerPort }} diff --git a/charts/eoepca-portal/values.yaml b/charts/eoepca-portal/values.yaml index 7c2d7f7..878e9c9 100644 --- a/charts/eoepca-portal/values.yaml +++ b/charts/eoepca-portal/values.yaml @@ -112,4 +112,22 @@ serviceAccount: annotations: {} # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template - name: "" \ No newline at end of file + name: "" + +configMap: + auth_server_url: "https://identity.keycloak.develop.eoepca.org" + identity_url: "master" + realm: "eoepca-portal" + client_id: "eoepca-portal" + identity_api_url: "https://identity.api.develop.eoepca.org" + ades_url: "https://ades.develop.eoepca.org/ogc-api/processes" + resource_catalogue_url: "https://resource-catalogue.develop.eoepca.org" + data_access_url: "https://data-access.develop.eoepca.org" + workspace_url: "https://workspace-api.develop.eoepca.org" + workspace_docs_url: "https://workspace-api.develop.eoepca.org/docs#" + images_registry_url: "https://harbor.develop.eoepca.org" + dummy_service_url: "https://identity.dummy-service.develop.eoepca.org" + access_token_name: "auth_user_id" + access_token_domain: ".develop.eoepca.org" + refresh_token_name: "auth_refresh_token" + refresh_token_domain: ".develop.eoepca.org" \ No newline at end of file