--dry-run fails with workload create for pre-existing workload and returns full workload object with status rather than just example of what would be created/applied. #426
Labels
bug
Something isn't working
MIGRATED-MIGRATED
Migrated to private repo
needs-design
needs-pm
needs-triage
WIP
to do:
Please fill out the issue checklist below and provide ALL the requested information.
Describe the bug
2 issues:
tanzu apps workload create/apply appname -f workload.yaml --dry-run
for an existing workload should return output the workload object that would be created/applied if the command were to actually run - but currently, the entire object including status is returned -- that's not expected.tanzu apps workload create appname -f workload.yaml --dry-run
for an existing workload throws an error -- but in the case of --dry-run, the intention is to see what changes would be made - but the changes aren't applied** the validation which errors because you can't create something that's already been created is happening here, but when
--dry-run
is included, that should short-circuit the validationExpected behavior
issue 1: return output the workload object that would be created/applied
issue 2: return output the workload object that would be created/applied
Steps to Reproduce
issue 1:
tanzu apps workload create foo --env foo=bar --dry-run
issue 2:
tanzu apps workload create foo --env foo=bar --dry-run
Screenshots
If applicable, add screenshots to help explain your problem.
Version (Apps plugin version, Version of K8s running on cluster)
apps v0.9.0, but this issue likely goes all the way back to v0.1.0
The text was updated successfully, but these errors were encountered: