diff --git a/chart/Chart.lock b/chart/Chart.lock index f45b0561..b674bc63 100644 --- a/chart/Chart.lock +++ b/chart/Chart.lock @@ -10,6 +10,6 @@ dependencies: version: 16.13.2 - name: replicated repository: oci://registry.replicated.com/library - version: 1.0.0-beta.15 -digest: sha256:08e13946b5fb3eed5caedcc405fba76a38586c1bd2c6568bad100da65c18ae10 -generated: "2024-02-19T18:23:46.443684702+01:00" + version: 1.0.0-beta.21 +digest: sha256:e5e9be5949b002165bed577fdbbef4b22b497542916ae544360f8b0da8394719 +generated: "2024-06-11T13:43:46.305989+02:00" diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 44fdbf10..c4036787 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -18,7 +18,7 @@ dependencies: version: 16.x.x - name: replicated repository: oci://registry.replicated.com/library - version: 1.0.0-beta.15 + version: 1.0.0-beta.21 condition: replicated.enabled description: CARTO Location Intelligence Platform. Unlock the power of spatial analysis in the cloud engine: gotpl diff --git a/chart/templates/_commonChecks.tpl b/chart/templates/_commonChecks.tpl index 27a2e6fc..5e4932a5 100644 --- a/chart/templates/_commonChecks.tpl +++ b/chart/templates/_commonChecks.tpl @@ -8,7 +8,9 @@ Return common collectors for preflights and support-bundle namespace: {{ .Release.Namespace | quote }} timeout: 180s podSpec: + {{- if lookup "v1" "ServiceAccount" .Release.Namespace (include "carto.commonSA.serviceAccountName" .) }} serviceAccountName: {{ template "carto.commonSA.serviceAccountName" . }} + {{- end }} restartPolicy: Never securityContext: {{- toYaml .Values.tenantRequirementsChecker.podSecurityContext | nindent 10 }} initContainers: diff --git a/chart/templates/cdn-invalidator-sub/configmap.yaml b/chart/templates/cdn-invalidator-sub/configmap.yaml index b4de0098..56ce9885 100644 --- a/chart/templates/cdn-invalidator-sub/configmap.yaml +++ b/chart/templates/cdn-invalidator-sub/configmap.yaml @@ -12,6 +12,9 @@ metadata: annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} data: + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} EVENT_BUS_PROJECT_ID: {{ .Values.cartoConfigValues.cartoAccGcpProjectId | quote }} CDN_INVALIDATOR_BACKEND_ENGINE: "varnish" diff --git a/chart/templates/import-api/configmap.yaml b/chart/templates/import-api/configmap.yaml index e065068c..db2da980 100644 --- a/chart/templates/import-api/configmap.yaml +++ b/chart/templates/import-api/configmap.yaml @@ -15,6 +15,9 @@ data: AUTH0_AUDIENCE: "carto-cloud-native-api" AUTH0_DOMAIN: {{ .Values.cartoConfigValues.cartoAuth0CustomDomain | quote }} AUTH0_NAMESPACE: "http://app.carto.com" + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} IMPORT_ERROR_RESPONSE_STACK_TRACE: {{ .Values.cartoConfigValues.enableErrorResponseStackTrace | quote }} IMPORT_PORT: {{ .Values.importApi.containerPorts.http | quote }} diff --git a/chart/templates/import-worker/configmap.yaml b/chart/templates/import-worker/configmap.yaml index d92d6505..47df9331 100644 --- a/chart/templates/import-worker/configmap.yaml +++ b/chart/templates/import-worker/configmap.yaml @@ -13,6 +13,9 @@ metadata: {{- end }} data: BIGQUERY_OAUTH2_CLIENT_ID: {{ .Values.appConfigValues.bigqueryOauth2ClientId | quote }} + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} {{- if not .Values.commonBackendServiceAccount.enableGCPWorkloadIdentity }} GOOGLE_APPLICATION_CREDENTIALS: {{ include "carto.google.secretMountAbsolutePath" . }} diff --git a/chart/templates/maps-api/configmap.yaml b/chart/templates/maps-api/configmap.yaml index c64548ad..9412109d 100644 --- a/chart/templates/maps-api/configmap.yaml +++ b/chart/templates/maps-api/configmap.yaml @@ -16,6 +16,9 @@ data: AUTH0_DOMAIN: {{ .Values.cartoConfigValues.cartoAuth0CustomDomain | quote }} AUTH0_NAMESPACE: "http://app.carto.com" BIGQUERY_OAUTH2_CLIENT_ID: {{ .Values.appConfigValues.bigqueryOauth2ClientId | quote }} + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} EVENT_BUS_PROJECT_ID: {{ .Values.cartoConfigValues.cartoAccGcpProjectId | quote }} EVENT_BUS_TOPIC: "projects/{{ .Values.cartoConfigValues.cartoAccGcpProjectId }}/topics/{{ .Values.cartoConfigValues.cartoAccGcpProjectRegion }}-event-bus" diff --git a/chart/templates/sql-worker/configmap.yaml b/chart/templates/sql-worker/configmap.yaml index bd26d796..fbb46a16 100644 --- a/chart/templates/sql-worker/configmap.yaml +++ b/chart/templates/sql-worker/configmap.yaml @@ -15,6 +15,9 @@ data: AUTH0_AUDIENCE: "carto-cloud-native-api" AUTH0_DOMAIN: {{ .Values.cartoConfigValues.cartoAuth0CustomDomain | quote }} AUTH0_NAMESPACE: "http://app.carto.com" + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} EXPORTS_GCS_BUCKET_NAME: {{ .Values.appConfigValues.workspaceExportsBucket | quote }} EXPORTS_S3_BUCKET_NAME: {{ .Values.appConfigValues.awsExportBucket | quote }} diff --git a/chart/templates/workspace-api/configmap.yaml b/chart/templates/workspace-api/configmap.yaml index 4c9057d2..928d648c 100644 --- a/chart/templates/workspace-api/configmap.yaml +++ b/chart/templates/workspace-api/configmap.yaml @@ -23,6 +23,9 @@ data: CARTO_SELFHOSTED_NAME: {{ .Values.cartoConfigValues.selfHostedTenantId | quote }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} CARTO_SELFHOSTED_DEPLOYMENT: "kubernetes" + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} EVENT_BUS_PROJECT_ID: {{ .Values.cartoConfigValues.cartoAccGcpProjectId | quote }} EVENT_BUS_TOPIC: "projects/{{ .Values.cartoConfigValues.cartoAccGcpProjectId }}/topics/{{ .Values.cartoConfigValues.cartoAccGcpProjectRegion }}-event-bus" EXPORTS_GCS_BUCKET_NAME: {{ .Values.appConfigValues.workspaceExportsBucket | quote }} diff --git a/chart/templates/workspace-subscriber/configmap.yaml b/chart/templates/workspace-subscriber/configmap.yaml index 20aa3d10..244e449e 100644 --- a/chart/templates/workspace-subscriber/configmap.yaml +++ b/chart/templates/workspace-subscriber/configmap.yaml @@ -19,6 +19,9 @@ data: CARTO_SELFHOSTED_GCP_PROJECT_ID: {{ .Values.cartoConfigValues.selfHostedGcpProjectId | quote }} CARTO_SELFHOSTED_NAME: {{ .Values.cartoConfigValues.selfHostedTenantId | quote }} CARTO_SELFHOSTED_VERSION: {{ .Chart.AppVersion | quote }} + {{- if .Values.replicated.enabled }} + CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN: "replicated:3000" + {{- end }} COMPUTE_PUBSUB_DATA_UPDATES_SUBSCRIPTION: "projects/{{ .Values.cartoConfigValues.selfHostedGcpProjectId }}/subscriptions/data-updates-compute-sub" EVENT_BUS_PROJECT_ID: {{ .Values.cartoConfigValues.cartoAccGcpProjectId | quote }} EVENT_BUS_TOPIC: "projects/{{ .Values.cartoConfigValues.cartoAccGcpProjectId }}/topics/{{ .Values.cartoConfigValues.cartoAccGcpProjectRegion }}-event-bus"