1 min readSep 1, 2020
While elegant, in this case it will not work. If you use .Values.global.foo in this kind of ternary IF form when .global does not exist in the parent umbrella chart, Helm will attempt to evaulate the entire variable and produce an error.
Checking for the existence of global first is the trick. The Helm ternary form does not support this.