It turned out to be crucial when calling helm-diff from another command. See https://github.com/roboll/helmfile/issues/2043 for more context.