{{- if eq .Values.common.externalConfigMaps false }} {{- $domain := ((eq .Values.global.clusterKey "") | ternary .Values.global.ctlplane_domain (printf "%s" (.Values.global.clusterKey | b64dec | fromJson).domain )) | required "If deploying a shared dataplane, set your control plane domain using .Values.global.ctlplane_domain. If not set a valid clusterKey" }} apiVersion: v1 kind: ConfigMap metadata: name: configmap-common namespace: {{ .Release.Namespace }} data: s3_payload: "{{ tpl .Values.common.s3_payload . }}" app_env: {{ .Values.global.appEnv }} tenant_namespace: "{{ .Release.Namespace }}" k8_namespace: "{{ .Release.Namespace }}" cluster_name: {{ (eq .Values.global.clusterKey "") | ternary "Shared Data Plane" (printf "%s" (.Values.global.clusterKey | b64dec | fromJson).name) }} cluster_type: {{ (eq .Values.global.clusterKey "") | ternary "MANAGED_SHARED" (printf "%s" (.Values.global.clusterKey | b64dec | fromJson).runtimeType) }} domain: {{ $domain }} tenant: {{ (eq .Values.global.clusterKey "") | ternary "shared" (printf "%s" (.Values.global.clusterKey | b64dec | fromJson).tenant) }} im_url: {{ (eq .Values.global.clusterKey "") | ternary (printf "wss://services.%s/monitor/ws" .Values.global.ctlplane_domain) (printf "%s" (.Values.global.clusterKey | b64dec | fromJson).im_url) }} sink_ws_url: {{ (eq .Values.global.clusterKey "") | ternary (printf "wss://services.%s/auditservice/ws" .Values.global.ctlplane_domain) (printf "%s" (.Values.global.clusterKey | b64dec | fromJson).audit_service_url) }} mode: {{ include "parent.dataplaneMode" . }} server_cert_path: /certificate/{{ .Values.common.certificate.name }} sftp_server_cert_path: /certificate/{{ .Values.common.certificate.name }} support_email: "{{ tpl .Values.common.support_email . }}" {{- if eq (include "parent.dataplaneMode" . ) "shared" }} server_truststore_path: /efs/certificate/{{ include "parent.dataplaneMode" . }}/{{ tpl .Values.common.truststore . }} efs_root: /efs {{- else }} clusterRefId: "{{ tpl .Values.common.clusterRefId . }}" server_truststore_path: /efs/certificates/{{ tpl .Values.common.clusterRefId . }}/{{ tpl .Values.common.truststore . }} efs_root: /efs/clusters/{{ tpl .Values.common.clusterRefId . }} {{- end }} sftp_server_port: "{{ tpl .Values.common.sftp_server_port . }}" admin_email: "{{ tpl .Values.common.admin_email . }}" dxchange_email_host: "{{ tpl .Values.common.email_host . }}" dxchange_email_port: "{{ tpl .Values.common.email_port . }}" dxchange_email_usetls: "{{ .Values.common.email_usetls }}" dxchange_email_username: "{{ tpl .Values.common.email_username . }}" dxchange_email_authentication: "{{ .Values.common.email_authentication }}" dxchange_email_frommailid: "{{ tpl .Values.common.email_frommailid . }}" log_file_enabled: "{{ .Values.common.logFileEnabled }}" {{- if .Values.common.openTelemetry.enabled }} otel_enabled: "{{ .Values.common.openTelemetry.enabled }}" {{- if .Values.common.openTelemetry.exporter.http.enabled }} otel_exporter_http_enabled: "{{ .Values.common.openTelemetry.exporter.http.enabled }}" otel_exporter_http_endpoint: "{{ .Values.common.openTelemetry.exporter.http.endpoint }}" {{- end }} {{- if .Values.common.openTelemetry.exporter.grpc.enabled }} otel_exporter_grpc_enabled: "{{ .Values.common.openTelemetry.exporter.grpc.enabled }}" otel_exporter_grpc_endpoint: "{{ .Values.common.openTelemetry.exporter.grpc.endpoint }}" {{- end }} {{- end }} {{- if .Values.valkey.enabled }} datagrid_deployment_model: "{{ .Values.valkey.client.deployment_model }}" datagrid_implementation: VALKEY datagrid_read_mode: "{{ .Values.valkey.client.read_mode }}" datagrid_username: "{{ .Values.valkey.client.datagrid_username }}" datagrid_use_insecure_connection: "{{ not .Values.valkey.client.use_secure_connection }}" datagrid_secure_connection_verification_mode: "{{ .Values.valkey.client.security_mode }}" datagrid_addresses: "{{- range $i, $v := .Values.valkey.hosts }}{{ if $i }},{{ end }}{{ $v.hostname }}{{ if $v.port }}:{{ $v.port }}{{ end }}{{ end -}}" datagrid_primary_connection_pool_min: "{{ .Values.valkey.client.datagrid_primary_connection_pool_min }}" datagrid_primary_connection_pool_max: "{{ .Values.valkey.client.datagrid_primary_connection_pool_max }}" datagrid_replica_connection_pool_min: "{{ .Values.valkey.client.datagrid_replica_connection_pool_min }}" datagrid_replica_connection_pool_max: "{{ .Values.valkey.client.datagrid_replica_connection_pool_max }}" datagrid_worker_threads: "{{ .Values.valkey.client.datagrid_worker_threads }}" datagrid_idle_connection_timeout_millis: "{{ .Values.valkey.client.datagrid_idle_connection_timeout_millis }}" datagrid_cluster_connect_timeout_millis: "{{ .Values.valkey.client.datagrid_cluster_connect_timeout_millis }}" datagrid_response_timeout_millis: "{{ .Values.valkey.client.datagrid_response_timeout_millis }}" datagrid_number_of_retries: "{{ .Values.valkey.client.datagrid_number_of_retries }}" datagrid_retry_interval_millis: "{{ .Values.valkey.client.datagrid_retry_interval_millis }}" datagrid_subscription_mode: "{{ .Values.valkey.client.subscription_mode }}" datagrid_subscriptions_per_connection: "{{ .Values.valkey.client.datagrid_subscriptions_per_connection }}" datagrid_subscription_connection_pool_size: "{{ .Values.valkey.client.datagrid_subscription_connection_pool_size }}" datagrid_subscription_connection_min_idle_size: "{{ .Values.valkey.client.datagrid_subscription_connection_min_idle_size }}" datagrid_subscription_connection_timeout_millis: "{{ .Values.valkey.client.datagrid_subscription_connection_timeout_millis }}" {{- end }} {{- with .Values.common.hsm }} hsmCacheExpiration: "{{ .hsmCacheExpiration }}" {{- end }} {{- end }}