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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]