You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/09/23 15:48:28 UTC

[GitHub] [apisix-helm-chart] kellyseeme opened a new issue, #352: how to set the values of consul

kellyseeme opened a new issue, #352:
URL: https://github.com/apache/apisix-helm-chart/issues/352

   in the apisix helm chart,there is no way to set the values of consul,just to use values.yaml,if i want to use helm install --set ,how to do it ? thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-helm-chart] tokers commented on issue #352: how to set the values of consul

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #352:
URL: https://github.com/apache/apisix-helm-chart/issues/352#issuecomment-1257172016

   I think this is a how-to problem about helm, see https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-helm-chart] kellyseeme commented on issue #352: how to set the values of consul

Posted by GitBox <gi...@apache.org>.
kellyseeme commented on issue #352:
URL: https://github.com/apache/apisix-helm-chart/issues/352#issuecomment-1257364272

   @tokers thanks,yes,its about helm,there is no way to set values use helm about --set:
   --in the chart the _helpers.tpl:
       {{- if .Values.discovery.enabled }}
       discovery:
         {{- range $key, $value := .Values.discovery.registry }}
         {{ $key }}:
           {{- include "apisix.tplvalues.render" (dict "value" $value "context" $) | nindent 8 }}
         {{- end }}
       {{- end }}
   
   --the template of the deployement :
   {{/*
   Renders a value that contains template.
   Usage:
   {{ include "apisix.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
   */}}
   {{- define "apisix.tplvalues.render" -}}
       {{- if typeIs "string" .value }}
           {{- tpl .value .context }}
       {{- else }}
           {{- tpl (.value | toYaml) .context }}
       {{- end }}
   {{- end -}}
   
   --the values.yaml:
   values:
   discovery:
     enabled: true
     registry:
       consul_kv:
         servers:
           - http://10.0.1.1:8500
           - http://10.0.1.1:8500
         prefix: "myservice"
      
     i found more articals,but can't find how to use --set


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org