kpt icon indicating copy to clipboard operation
kpt copied to clipboard

Functions in catalog should report better error message when functionConfig is missing

Open natasha41575 opened this issue 4 years ago • 1 comments

See test case fn-render/no-fnconfig.

The error message for set-label is failed to configure function: function config must be a ConfigMap or SetLabelConfig. This can be improved, e.g. missing functionConfig, must specify ConfigMap or SetLabelConfig.

All functions should have a good error message for a missing functionConfig.

cc @droot @mengqiy @Shell32-Natsu

natasha41575 avatar May 10 '21 22:05 natasha41575

Also, note functionConfig is one word: https://kpt.dev/book/02-concepts/03-functions

frankfarzan avatar May 10 '21 22:05 frankfarzan