You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that we removed the if conditional from the previous exercise because it is now unnecessary - the block after with only executes if the value of PIPELINE is not empty.
However, the now omitted conditional was:
{{- if eq .Values.favorite.drink "coffee" }}
mug: "true"
{{- end }}
That statement does not check if the value is empty but if .drink matches "coffee".
Has the example been changed without modifying the text or am I missing something here?
In my opinion the example should now be:
apiVersion: v1kind: ConfigMapmetadata:
name: {{ .Release.Name }}-configmapdata:
myvalue: "Hello World"{{- with .Values.favorite }}drink: {{ .drink | default "tea" | quote }}food: {{ .food | upper | quote }}{{- if eq .drink "coffee" }}mug: true{{- end }}{{- end }}
The text was updated successfully, but these errors were encountered:
The section Flow Control of the Chart Template Guide has this listing:
In the next paragraph it states:
However, the now omitted conditional was:
That statement does not check if the value is empty but if
.drink
matches "coffee".Has the example been changed without modifying the text or am I missing something here?
In my opinion the example should now be:
The text was updated successfully, but these errors were encountered: