Join Slack
Powered by
Hey guys, is it possible to make field required if...
# general
s
square-psychiatrist-19087
04/24/2024, 8:51 PM
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
curved-television-6568
04/25/2024, 4:56 AM
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
square-psychiatrist-19087
04/25/2024, 8:04 AM
Thanks for the suggestion!
3
Views
Open in Slack
Previous
Next