ayush sharma
05/06/2021, 5:07 PMhelm -n my-pinot-kube install pinot-zookeeper incubator/zookeeper --set replicaCount=1
and disabled the zookeeper in helm/pinot/values.yaml by modifying zookeeper.enabled to false.
But we see face an error from _helpers.tpl
indicating not able to fetch the zookeeper.url
and related to configurationOverride
.
Error: template: pinot/templates/server/statefulset.yml:63:27: executing "pinot/templates/server/statefulset.yml" at <include "zookeeper.url" .>: error calling include: template: pinot/templates/_helpers.tpl:79:33: executing "zookeeper.url" at <index .Values "configurationOverrides" "zookeeper.connect">: error calling index: index of nil pointer
Any help is appreciated !Xiang Fu
zookeeper
section in values.yaml
file:
persistence:
enabled: true
## zookeeper data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
##
# storageClass: "-"
accessMode: ReadWriteOnce
size: 5Gi
_helpers.tpl
scriptzookeeper.url
in the values.yml
file and that should provide the overrided zk urlayush sharma
05/06/2021, 6:05 PMzookeeper:
enabled: false
url: <ip>
port: <pod-exposed-port>
When I install pinot using
helm -n my-pinot-kube install pinot .
it throws error:
Error: template: pinot/templates/server/statefulset.yml:63:27: executing "pinot/templates/server/statefulset.yml" at <include "zookeeper.url" .>: error calling include: template: pinot/templates/_helpers.tpl:79:33: executing "zookeeper.url" at <index .Values "configurationOverrides" "zookeeper.connect">: error calling index: index of nil pointer
Line 79 in _helpers.tpl is
{{- $zookeeperConnectOverride := index .Values "configurationOverrides" "zookeeper.connect" }}
Xiang Fu
zookeeper:
enabled: false
url: <ip>
port: <pod-exposed-port>
connect: <ip>:<pod-exposed-port>
ayush sharma
05/06/2021, 6:14 PMzookeeper:
enabled: false
url: <ip>
port: <pod-exposed-port>
connect: 192.168.49.2:30760
zookeeper.connect: 192.168.49.2:30760
Still
Error: template: pinot/templates/server/statefulset.yml:63:27: executing "pinot/templates/server/statefulset.yml" at <include "zookeeper.url" .>: error calling include: template: pinot/templates/_helpers.tpl:79:33: executing "zookeeper.url" at <index .Values "configurationOverrides" "zookeeper.connect">: error calling index: index of nil pointer
Does it have issue with index .Values "configurationOverrides" ?Xiang Fu