Conversation
Add -o json/yaml flag to delete commands for task, pipeline,
pipelinerun, customrun, eventlistener, triggerbinding,
triggertemplate, and clustertriggerbinding resources.
When used, the result is returned as machine-readable output
in the format {"deleted": ["name1", "name2"]}.
Signed-off-by: Ankur Sinha <anksinha@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Thanks for adding structured output to |
|
@chmouel Thanks for the review and for catching these.
This is intentional as this PR does not focus on bulk delete (with flags like --all, --pipeline, --keep). This will be handled in a seperate PR.
Agreed on this, i will update the PR for handling these two issues. |
Part of #2850
Changes
Add
--output json/yaml(-o) structured output support for deletecommand (by name, without bulk flags) across 8 resource types:
task, pipeline, pipelinerun, customrun, eventlistener, triggerbinding,
triggertemplate, and clustertriggerbinding.
TaskRun is excluded (covered by #3086).
When used, the result is returned as machine-readable output
Example:
--all,--keep,--trs,--prsisnot in scope and will be a follow-up.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make checkmake generatedSee the contribution guide
for more details.
Release Notes