This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch pinot-helm-adding-controller-vip
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 13b316585e56e55cfdeaefd35ee228d80aa21f09
Author: Xiang Fu <fx19880...@gmail.com>
AuthorDate: Mon Sep 28 23:54:21 2020 -0700

    Allow configurable controller vip
---
 kubernetes/helm/pinot/templates/controller/configmap.yaml | 6 ++++--
 kubernetes/helm/pinot/values.yaml                         | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/kubernetes/helm/pinot/templates/controller/configmap.yaml 
b/kubernetes/helm/pinot/templates/controller/configmap.yaml
index 3d40a27..ada7145 100644
--- a/kubernetes/helm/pinot/templates/controller/configmap.yaml
+++ b/kubernetes/helm/pinot/templates/controller/configmap.yaml
@@ -25,8 +25,10 @@ data:
   pinot-controller.conf: |-
     controller.helix.cluster.name={{ .Values.cluster.name }}
     controller.port={{ .Values.controller.port }}
-    controller.vip.host={{ include "pinot.controller.fullname" . }}
-    controller.vip.port={{ .Values.controller.service.port }}
+{{- if .Values.controller.vip.enabled }}
+    controller.vip.host={{ .Values.controller.vip.host }}
+    controller.vip.port={{ .Values.controller.vip.port }}
+{{- end }}
     controller.data.dir={{ .Values.controller.data.dir }}
     controller.zk.str={{ include "zookeeper.url" . }}
 {{ .Values.controller.extra.configs | indent 4 }}
\ No newline at end of file
diff --git a/kubernetes/helm/pinot/values.yaml 
b/kubernetes/helm/pinot/values.yaml
index 4e6c347..c36009e 100644
--- a/kubernetes/helm/pinot/values.yaml
+++ b/kubernetes/helm/pinot/values.yaml
@@ -44,6 +44,7 @@ controller:
 
 
   vip:
+    enabled: false
     host: pinot-controller
     port: 9000
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to