Comments (6)
@matzew @pierDipi @rhuss I was looking at switching to v1beta2 support and kn eventtype create
flags. And I was wondering.
There are 2 paths here:
- Single
--reference
flag, that would parse the input for various format:
--reference "broker:<name>"
--reference "broker:<name>:<namespace>"
--reference "channel:<name>:<namespace>"
# fully qualified GVK
--reference "special.eventing.dev/v1beta3:Channel:<name>"
--reference "special.eventing.dev/v1beta3:Channel:<name>:<namespace>"
- Multiple flags for well know and popular references (broker, channel, kafka-broker) and single
--reference
for complete GVK. We already have--broker
flag, that I'd like to keep for backward compatibility and convenience of use. Hence the idea with other well known flags.
The issue with this approach we faced in the past is that we will have opinionated defaults, but there's N+ other brokers out there. And we need to fiddle the popularity contest. :)
--broker "<name>"
--channel "<name>"
--broker-kafka "<name>"
# Only accepts qualified GVK
--reference "special.eventing.dev/v1beta3:Channel:<name>"
--reference "special.eventing.dev/v1beta3:Channel:<name>:<namespace>"
from client.
I'd go single
from client.
I think it should be aligned with the syntax options that we have for --sink
, i.e. allowing shortcuts and full qualified entries. Algo would be:
- Split on
:
- Check for a well-known shortcut (that should not have any
.
included) - If found, take the latest version of the GVK as known, when kn was compiled (we could list these version in the help message where we should also list all available prefixes
- If not found, take the part as a full GVK (and split on
/
). So, I would use something likespecial.eventing.dev/channel/v1beta3
instead of another:
(so that it's clear that the first part of that expression specifies the reference type, either in shortcut form or in full form.
from client.
Perhaps also add support for reference
field (and deprecation warnings for broker
field).
But that can be a separate issue
from client.
This's done in PR #1831, and released in Knative v1.11.0
.
/close
from client.
@dsimansk: Closing this issue.
In response to this:
This's done in PR #1831, and released in Knative
v1.11.0
./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from client.
Related Issues (20)
- Add config option to specify `readOnly` volumes HOT 2
- Add `--scale-activation` flag to match new Serving option HOT 5
- Option to specify Node Selector HOT 2
- support uninstallation of local cluster using kn HOT 6
- Compile errors with Go 1.20 HOT 2
- kn does not show new trigger filters HOT 2
- Service export should handle securityContext field HOT 12
- Missing example of fully qualified GVR in`--sink` flag HOT 3
- Eventing TLS: support Eventing TLS in kn-plugin-event HOT 5
- `kn trigger update --help` information is incorrect HOT 2
- CLI: add support for experimental new filters API in trigger HOT 4
- Ability to set toleration, affinity and node selector HOT 10
- 48h Knative - A Hackathon-Style Event
- Remove deprecated `--inject-broker` flag from `trigger` cmds HOT 1
- Upgrade deprecated v1alpha1 DomainMapping API to newer one HOT 5
- Distinguish missing Serving/Eventing API from unsupported version HOT 8
- Fix shellcheck warnings in hack/build.sh script HOT 1
- Update plugin development docs HOT 5
- Can not get my broker through `kn broker list` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from client.