Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

fixes #104 run-time detection of namespace without helm #107

Merged
merged 1 commit into from
Jan 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/core-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ spec:
{{- if not .Values.core.standalone }}
# We advertise the discovery-lb addresses (see discovery-lb.yaml) because
# it is for internal cluster comms and is limited to private ports.
export DISCOVERY_HOST="discovery-{{ template "neo4j.fullname" . }}-${core_idx}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}"
# See also: https://github.com/neo4j-contrib/neo4j-helm/issues/104
export NAMESPACE=$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace)
export DISCOVERY_HOST="discovery-{{ template "neo4j.fullname" . }}-${core_idx}.$NAMESPACE.svc.{{ .Values.clusterDomain }}"
export NEO4J_causal__clustering_discovery__advertised__address="$DISCOVERY_HOST:5000"
export NEO4J_causal__clustering_transaction__advertised__address="$DISCOVERY_HOST:6000"
export NEO4J_causal__clustering_raft__advertised__address="$DISCOVERY_HOST:7000"
Expand Down