WIP
to do:
- create separate issue for the enhancement, leave create --dry-run error issue as bug
- spec supported flag values/default
- update help
- default = server (start deprecation)
- deprecation warning
- consider time-bomb (once deprecation window is up, automatic switch of default , hide warning message, update default in helpoutput)
Please fill out the issue checklist below and provide ALL the requested information.
Describe the bug
2 issues:
- running
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.
- running
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 validation
Expected 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:
- create a workload named foo
- run
tanzu apps workload create foo --env foo=bar --dry-run
- returned the full workload object including status rather than just the workload object that would be submitted
issue 2:
- create a workload named foo
- run
tanzu apps workload create foo --env foo=bar --dry-run
- error
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
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-runfor 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-runfor 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-runis 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-runissue 2:
tanzu apps workload create foo --env foo=bar --dry-runScreenshots
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