CLI: add support for experimental new filters API in trigger

Open
#1,833 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@JuneOh710 is already working on this.

Since Nov 29, 2023.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
api, cli

Research direction

Start at the kn trigger create entry point and trace how trigger filters are parsed and sent to the API. Compare the experimental filters API in issue 5204 with existing trigger creation behavior. Done means users can create the new filters through the proposed CLI option, with the resulting trigger accepted by the API.

Written by the indexing model from the issue text.

Description

kind/feature triage/accepted
Feature request

As part of preparing the experimental new filters API to Beta (tracked here: https://github.com/knative/eventing/issues/5204), we should add support to kn to create these filters when creating a trigger.

Use case

With the new filters API entering Beta, more users will want to try it out. It would be convenient for them if they can use kn to create them, instead of being required to use yaml files to try out the new filters.

UI Example
kn trigger create mytrigger --new-filter filtertype=filtervalue
Dominant language
Go
Stars
387
Forks
279
Avg merge
2d 10h
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knative/client

All issues in knative/client

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.