Bug 2002266
Summary: | SinkBinding create form doesn't allow to use subject name, instead of label selector | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Chris Suszynski <ksuszyns> |
Component: | Dev Console | Assignee: | Mohammed Saud <msaud> |
Status: | CLOSED ERRATA | QA Contact: | spathak <spathak> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4.6 | CC: | aos-bugs, cjerolim, dsantra, jakumar, msaud, nmukherj, sbudhwar |
Target Milestone: | --- | ||
Target Release: | 4.10.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
* Before this update, you could only specify a subject in the `SinkBinding` form by label, not by name. With this update, you can use a drop-down list to select whether to specify a subject by name or label. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2002266[BZ#2002266])
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-10 16:08:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2027269 |
Description
Chris Suszynski
2021-09-08 11:31:03 UTC
Hi Chris, can you pls provide an example/scenario for name-based or label-based resource selection and this will only be for sinkBinding form right? Sure. This page gives an example of creating Sink Binding subject: https://knative.dev/docs/developer/eventing/sources/sinkbinding/getting-started/#create-a-subject There you can see that it supports: * Deployment * Job * DaemonSet * StatefulSet * Service.serving.knative.dev All of them could be referenced by name instead of label selector. Name-based selection is far easier, I just deploy my knative service, and the use it as a subject, for example using `kn`: ``` $ kn source binding create bind-br-default \ --subject Service:serving.knative.dev/v1:showcase \ --sink broker:default \ --ce-override sink=bound ``` Label based is only required when using CronJob, as we are, in fact, targeting Job's created by CronJob, and their names contain random strings. And yes, this applies only to Sink Binding, as we are talking on subject field, which is present only in Sink binding type. Hey Chris, can you verify this changes (https://github.com/openshift/console/pull/10527), if this matches your requirements, and mark this issue as verified when you have tested this on a cluster? I did try to verify this. I've deployed the OCP 4.10.0-0.nightly-2021-12-14-083101 version, but this fix wasn't there. verified this on 4.10.0-0.ci-2021-12-16-184808 Confirmed, it works. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:0056 |