Open matthieu-foucault opened 5 years ago
It sounds like we should add a check to the lint macro that does something along the lines of an array equality check between
oc process --parameters -f template.yml | awk 'NR>1 { print $1 }' | sort | uniq
and
awk 'match($0, /\$\{.+\}/) { print substr($0, RSTART+2, RLENGTH-3) }' template.yml | sort | uniq
since the oc
cli doesn't actually check if templates are well-formed, and since we are currently validating the configured templates for schema conformance after interpolation so we don't discover template errors like this.
For instance, the following template currently passes
oc_validate
, but it should fail as the${FOO}
parameter is undefined: