Can set booleans (--live-update
and/or --debug
) to a non-boolean value via workload.yaml
#91
Open
2 tasks done
Labels
Please fill out the issue checklist below and provide ALL the requested information.
Describe the bug
There are currently two boolean flags that can be set via command flags and/or workload.yaml:
--live-update
--debug
The apps plugin validates the values passed via command flags today and will throw an error if a non-boolean value is provided (e.g.
--debug foo
will fail validation).However, it's possible to set
spec.params.debug
orspec.params.live-update
to a value offoo
and submit the workload.yaml without error.Expected behavior
apps plugin should throw an error if/when workload.yaml includes non-boolean values for boolean workload spec properties.
Steps to Reproduce
Version (Apps plugin version, Version of K8s running on cluster)
Put the output of the following command
tanzu version && tanzu apps version
version: v0.11.2
buildDate: 2022-03-17
sha: 9f16f375
v0.5.1
Environment where the bug was observed (cloud, OS, etc)
Additional context & Relevant Debug Output (Logs, etc)
cc @shashwathi (Hey Shash - I ended up logging this bug since I didn't see it this morning).
The text was updated successfully, but these errors were encountered: