feat(helm): add ability for a dry-run to evaluate lookup functions

When a helm command is run with the --dry-run-option=server flag, it will try to connect to the cluster
to be able to render lookup functions.
Closes #8137

Signed-off-by: Tapas Kapadia <tapaskapadia10@gmail.com>
pull/9426/head
Tapas Kapadia 2 years ago
parent ddb33580db
commit d66c7db55a

@ -121,7 +121,7 @@ func (cfg *Configuration) renderResources(ch *chart.Chart, values chartutil.Valu
var err2 error var err2 error
// A `helm template` should not talk to the remote cluster. However, commands // A `helm template` should not talk to the remote cluster. However, commands
// with the flag `--dry-run-option` with the value of false, none, or sever // with the flag `--dry-run-option` with the value of false, none, or sever
// or with the flag `--dry-run` with the value of false should try to interact with the cluster. // or with the flag `--dry-run` with the value of false should try to interact with the cluster.
// It may break in interesting and exotic ways because other data (e.g. discovery) // It may break in interesting and exotic ways because other data (e.g. discovery)
// is mocked. // is mocked.

Loading…
Cancel
Save