Skip to content

Commit 5f8fd3c

Browse files
committed
chore(workflow): remove cluster domain
1 parent e7375a7 commit 5f8fd3c

5 files changed

Lines changed: 8 additions & 23 deletions

File tree

charts/helmbroker/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies:
99
- name: valkey
1010
repository: {{repository}}
1111
version: x.x.x
12+
condition: valkey.enabled
1213
description: Drycc Workflow helmbroker.
1314
maintainers:
1415
- name: Drycc Team

charts/helmbroker/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ env:
1313
secretKeyRef:
1414
name: helmbroker-creds
1515
key: valkey-url
16-
{{- else if eq .Values.global.valkeyLocation "on-cluster" }}
16+
{{- else if .Values.valkey.enabled }}
1717
- name: VALKEY_PASSWORD
1818
valueFrom:
1919
secretKeyRef:
2020
name: valkey-creds
2121
key: password
2222
- name: HELMBROKER_VALKEY_URL
23-
value: "redis://:$(VALKEY_PASSWORD)@drycc-valkey.{{.Release.Namespace}}.svc.{{.Values.global.clusterDomain}}:26379/0?master_set=drycc"
23+
value: "redis://:$(VALKEY_PASSWORD)@drycc-valkey:26379/0?master_set=drycc"
2424
{{- end }}
2525
{{- range $key, $value := .Values.environment }}
2626
- name: {{ $key }}

charts/helmbroker/templates/helmbroker-celery-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ spec:
3333
args:
3434
- netcat
3535
- -v
36-
- -a
37-
- $(DRYCC_HELMBROKER_SERVICE_HOST):$(DRYCC_HELMBROKER_SERVICE_PORT)
36+
- -u
37+
- http://drycc-helmbroker
3838
{{- include "helmbroker.envs" . | indent 10 }}
3939
containers:
4040
- name: drycc-helmbroker-celery

charts/helmbroker/values.yaml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,5 @@ persistence:
9595
storageClass: ""
9696
volumeName: ""
9797

98-
global:
99-
# Set the location of Workflow's valkey instance
100-
# Valid values are:
101-
# - on-cluster: Run Valkey within the Kubernetes cluster
102-
# - off-cluster: Run Valkey outside the Kubernetes cluster (configure in controller section)
103-
valkeyLocation: "on-cluster"
104-
# Enable usage of RBAC authorization mode
105-
#
106-
# Valid values are:
107-
# - true: all RBAC-related manifests will be installed (in case your cluster supports RBAC)
108-
# - false: no RBAC-related manifests will be installed
109-
rbac: true
110-
# A domain name consists of one or more parts.
111-
# Periods (.) are used to separate these parts.
112-
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
113-
# It must start and end with a lowercase letter or digit.
114-
clusterDomain: "cluster.local"
98+
valkey:
99+
enabled: true

rootfs/helmbroker/wsgi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ def readiness():
1818
if "KUBECONFIG" in os.environ:
1919
return "OK"
2020
elif "KUBERNETES_SERVICE_PORT" in os.environ and \
21-
("KUBERNETES_SERVICE_HOST" in os.environ or
22-
"KUBERNETES_CLUSTER_DOMAIN" in os.environ):
21+
"KUBERNETES_SERVICE_HOST" in os.environ:
2322
return "OK"
2423
return make_response("kubernetes not available", 500)
2524

0 commit comments

Comments
 (0)