-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Value is not cleared inside if condition for index #31
Comments
Indexing structures in TemplatesIf the data passed to the template is a map, slice, or array it can be indexed from the template. We use |
After exported .Values is not cleared for index. Index is a sprig function not sure how to handle this.
To produce use either use zetcd helm charts or use following template
Template
Expected :
{% if etcd.operatorEnabled %}
- "-endpoints"
- "{{ index "etcd-operator" "cluster" "name" }}-client:2379"
{% else %}
- "-endpoints"
- "{{ etcd.endpoints }}"
{% endif %}
Actual Result:
{% if etcd.operatorEnabled %}
- "-endpoints"
- "{{ index .Values "etcd-operator" "cluster" "name" }}-client:2379"
{% else %}
- "-endpoints"
- "{{ etcd.endpoints }}"
{% endif %}
The text was updated successfully, but these errors were encountered: