-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can set booleans (--live-update
and/or --debug
) to a non-boolean value via workload.yaml
#91
Comments
Had some additional offline discussions with @scothis regarding this issue.
Any changes to the params must be coordinated with corresponding changes to Cartographer supply chain(s). |
label |
Not migrated: |
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: