Skip to content

Commit 7766b94

Browse files
committed
chore(charts): simplify the connection controller
1 parent efe9607 commit 7766b94

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

charts/quickwit/templates/_helpers.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ env:
3131
name: database-creds
3232
key: password
3333
- name: DRYCC_DATABASE_URL
34-
value: "postgres://$(DRYCC_PG_USER):$(DRYCC_PG_PASSWORD)@drycc-database.{{.Release.Namespace}}.svc.{{.Values.global.clusterDomain}}:5432/quickwit"
34+
value: "postgres://$(DRYCC_PG_USER):$(DRYCC_PG_PASSWORD)@drycc-database:5432/quickwit"
3535
{{- end }}
3636
{{- if (.Values.storageEndpoint) }}
3737
- name: "DRYCC_STORAGE_LOOKUP"
@@ -65,7 +65,7 @@ env:
6565
- name: "DRYCC_STORAGE_BUCKET"
6666
value: "quickwit"
6767
- name: "DRYCC_STORAGE_ENDPOINT"
68-
value: {{ printf "http://drycc-storage.%s.svc.%s:9000" .Release.Namespace .Values.global.clusterDomain }}
68+
value: http://drycc-storage:9000
6969
- name: "DRYCC_STORAGE_ACCESSKEY"
7070
valueFrom:
7171
secretKeyRef:
@@ -82,11 +82,11 @@ env:
8282
- name: QW_NODE_ID
8383
value: "$(POD_NAME)"
8484
- name: QW_PEER_SEEDS
85-
value: drycc-quickwit.{{ $.Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}
85+
value: drycc-quickwit
8686
- name: QW_ADVERTISE_ADDRESS
8787
value: "$(POD_IP)"
8888
- name: QW_CLUSTER_ENDPOINT
89-
value: http://drycc-quickwit-metastore.{{ $.Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:7280
89+
value: http://drycc-quickwit-metastore:7280
9090
{{- end }}
9191

9292
{{/* Generate quickwit ports */}}

charts/quickwit/templates/quickwit-job-upgrade.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
- bash
3838
- -ec
3939
- |
40-
QUICKWIT_API="http://drycc-quickwit-indexer.{{ $.Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:7280/api/v1/templates"
40+
QUICKWIT_API="http://drycc-quickwit-indexer:7280/api/v1/templates"
4141
TEMPLATE_FILE="/opt/drycc/quickwit/config/log-indexes-template.json"
4242
response=$(curl -s -o /dev/null -w "%{http_code}" -XGET "$QUICKWIT_API/{{ .Values.logIndexTemplateName }}")
4343
if [ "$response" -eq 404 ]; then

charts/quickwit/values.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,3 @@ database:
135135

136136
storage:
137137
enabled: true
138-
139-
global:
140-
# Admin email, used for each component to send email to administrator
141-
email: "drycc@drycc.cc"
142-
# A domain name consists of one or more parts.
143-
# Periods (.) are used to separate these parts.
144-
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
145-
# It must start and end with a lowercase letter or digit.
146-
clusterDomain: "cluster.local"

0 commit comments

Comments
 (0)