Files
amplify-fusion/templates/inbound-worker/configmap-inbound.yaml
2026-01-21 17:37:42 +11:00

86 lines
6.2 KiB
YAML

{{- if eq .Values.common.externalConfigMaps false }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "inbound-worker.appName" . }}
namespace: {{ .Release.Namespace }}
data:
kubernetes_service_name: {{ template "inbound-worker.appName" . }}
environment: "{{ .Values.global.appEnv }}"
domain: "{{ .Values.global.external_domain }}"
JAVA_OPTS: "{{ .Values.inboundWorker.javaOpts }}"
sftp_enable: "{{ .Values.inboundWorker.sftp_enable }}"
http_enable: "{{ .Values.inboundWorker.http_enable }}"
https_enable: "{{ .Values.inboundWorker.https_enable }}"
api_enable: "{{ .Values.inboundWorker.api_enable }}"
api_mtls_enable: "{{ .Values.inboundWorker.api_mtls_enable }}"
enable_legacy_tls: "{{ .Values.inboundWorker.enable_legacy_tls }}"
host_name: "{{ .Values.global.external_domain }}"
mailTriggerInterval: "{{ .Values.inboundWorker.mailTriggerInterval }}"
txn_log_base_path: "{{ .Values.inboundWorker.hostPath.enabled | ternary .Values.inboundWorker.txn_log_base_path .Values.inboundWorker.efs_txn_log_path }}"
{{- if .Values.inboundWorker.hostPath.enabled }}
ebs_root: "{{ .Values.inboundWorker.ebs_root }}"
{{- end }}
{{- if .Values.valkey.enabled }}
datagrid_subscriptions_per_connection: "{{ .Values.inboundWorker.datagrid_subscriptions_per_connection }}"
datagrid_subscription_connection_pool_size: "{{ .Values.inboundWorker.datagrid_subscription_connection_pool_size }}"
{{- end }}
only_reschedule_missed_events_newer_than: "{{ .Values.inboundWorker.only_reschedule_missed_events_newer_than }}"
stale_process_interval: "{{ .Values.inboundWorker.stale_process_interval }}"
QUARKUS_LOG_CONSOLE_LEVEL: "{{ .Values.inboundWorker.QUARKUS_LOG_CONSOLE_LEVEL }}"
TERMINATION_GRACE_PERIOD_SECS: "{{ .Values.inboundWorker.terminationGracePeriodSeconds }}"
QUARKUS_SHUTDOWN_DELAY: "{{ .Values.inboundWorker.preStopSleepSeconds }}"
max_payload_size_kbs: "{{ .Values.inboundWorker.max_payload_size_kbs }}"
heartbeat_time_interval_sec: "{{ .Values.inboundWorker.heartbeat_time_interval_sec }}"
heartbeat_timeout_sec: "{{ .Values.inboundWorker.heartbeat_timeout_sec }}"
leader_lease_duration: "{{ .Values.inboundWorker.leader_lease_duration }}"
leader_lease_renew_period: "{{ .Values.inboundWorker.leader_lease_renew_period }}"
leader_lease_retry_period: "{{ .Values.inboundWorker.leader_lease_retry_period }}"
delegate_inoperative_pod_events_interval_sec: "{{ .Values.inboundWorker.delegate_inoperative_pod_events_interval_sec }}"
http_tls_termination: "{{ .Values.inboundWorker.http_tls_termination }}"
{{- if eq .Values.inboundWorker.aws.enabled true }}
Access_Key: {{ .Values.inboundWorker.aws.Access_Key }}
Secret_Key: {{ .Values.inboundWorker.aws.Secret_Key }}
region: {{ .Values.inboundWorker.aws.Region }}
{{- end }}
{{- if regexMatch "^ampint-[0-9.]+_[0-9][0-9][0-9][0-9].*$" .Values.inboundWorker.image.buildTag }}
deployed_version: "{{ regexReplaceAll "^ampint-([0-9.]+)_[0-9][0-9][0-9][0-9].*$" .Values.inboundWorker.image.buildTag "${1}" }}"
{{- else if regexMatch "^([^_]+)_[0-9][0-9][0-9][0-9].*$" .Values.inboundWorker.image.buildTag }}
deployed_version: "{{ regexReplaceAll "^([^_]+)_[0-9][0-9][0-9][0-9].*$" .Values.inboundWorker.image.buildTag "${1}" }}"
{{- else if regexMatch "^(.+)-SNAPSHOT$" .Values.inboundWorker.image.buildTag }}
deployed_version: "{{ regexReplaceAll "^(.+)-SNAPSHOT$" .Values.inboundWorker.image.buildTag "${1}" }}"
{{- else }}
deployed_version: "{{ .Values.inboundWorker.image.buildTag }}"
{{- end }}
multihost_enabled: "{{ .Values.global.multihost.enabled }}"
api_external_host: "{{ .Values.global.multihost.listeners.tls.api.hostPrefix }}.{{ .Values.global.external_domain }}"
api_mtls_external_host: "{{ .Values.global.multihost.listeners.tls.api_mtls.hostPrefix }}.{{ .Values.global.external_domain }}"
http_sse_external_host: "{{ .Values.global.multihost.listeners.tls.api.hostPrefix }}.{{ .Values.global.external_domain }}"
http_external_host: "{{ .Values.global.multihost.listeners.tcp.http.hostPrefix }}.{{ .Values.global.external_domain }}"
https_external_host: "{{ .Values.global.multihost.listeners.tls.https.hostPrefix }}.{{ .Values.global.external_domain }}"
sftp_external_host: "{{ .Values.global.multihost.listeners.ssh.sftp.hostPrefix }}.{{ .Values.global.external_domain }}"
webhook_external_host: "{{ .Values.global.multihost.listeners.tls.webhook.hostPrefix }}.{{ .Values.global.external_domain }}"
sftp_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.ssh.port "9022" | quote }}
https_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.tls.port "9443" | quote }}
http_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.tcp.port "9080" | quote }}
webhook_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.tls.port "443" | quote }}
api_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.tls.port "4443" | quote }}
api_mtls_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.tls.port "5443" | quote }}
http_sse_external_port: {{ .Values.global.multihost.enabled | ternary .Values.global.multihost.listeners.tls.port "4443" | quote }}
sap_enabled: "{{ .Values.inboundWorker.sap_enabled }}"
sap_lib_directory: "{{ .Values.inboundWorker.sap_lib_directory }}"
{{- if not (eq .Values.inboundWorker.salesforce.pubsub_api_url "") }}
EVENT_SALESFORCE_PUBSUB_API_URL: {{ .Values.inboundWorker.salesforce.pubsub_api_url | quote }}
{{- end }}
{{- if not (eq .Values.inboundWorker.salesforce.retry_initial_backoff_duration "") }}
EVENT_SALESFORCE_RETRY_INITIAL_BACKOFF: {{ .Values.inboundWorker.salesforce.retry_initial_backoff_duration | quote }}
{{- end }}
{{- if not (eq .Values.inboundWorker.salesforce.retry_max_backoff_duration "") }}
EVENT_SALESFORCE_RETRY_MAX_BACKOFF: {{ .Values.inboundWorker.salesforce.retry_max_backoff_duration | quote }}
{{- end }}
{{- if not (eq .Values.inboundWorker.salesforce.retry_status_code_list "") }}
EVENT_SALESFORCE_RETRY_GRPC_STATUS_CODES: {{ .Values.inboundWorker.salesforce.retry_status_code_list | quote }}
{{- end }}
{{- end }}