Hey guys, is it possible to make field required if...
# general
s
Hey guys, is it possible to make field required if backend declares it as optional? Specifically I want to make sure
namespace
is always set for
helm_deployment
target. Thanks!
1
c
Another option besides macros as suggested by Benjy, is less enforcing but may be easier to implement is to set a global default namespace with a dummy value. It won’t stop bad usage but at least contain it to some know namespace.. https://www.pantsbuild.org/2.20/docs/using-pants/key-concepts/targets-and-build-files#field-default-values
s
Thanks for the suggestion!