Skip to content

Commit

Permalink
Add CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN when Replicated is enabled (
Browse files Browse the repository at this point in the history
…#557)

* Add CARTO_SELFHOSTED_REPLICATED_SDK_DOMAIN when Replicated is enabled

* Fix tenant-requirements-checker when commons-sa does not exist

* Fix

* Update replicated sdk version

* Fix

* Update dependencies
  • Loading branch information
moicalcob authored Jun 11, 2024
1 parent c54384d commit ecf6e46
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 4 deletions.
6 changes: 3 additions & 3 deletions chart/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions chart/templates/_commonChecks.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/cdn-invalidator-sub/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/import-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/import-worker/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/maps-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/sql-worker/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/workspace-api/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/workspace-subscriber/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ecf6e46

Please sign in to comment.