Skip to content

Commit

Permalink
Add configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-pimenta-DME committed Feb 23, 2024
1 parent 39b0a4f commit 359aac0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
23 changes: 23 additions & 0 deletions charts/eoepca-portal/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -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 }}"
2 changes: 2 additions & 0 deletions charts/eoepca-portal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
20 changes: 19 additions & 1 deletion charts/eoepca-portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
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"

0 comments on commit 359aac0

Please sign in to comment.