Skip to content

Add support for namespaces for all commands that take a --sink option #1143

Closed

Description

@rhuss

Feature request

It should be possible to specify the namespace of a sink for all commands that support a --sink option

Use case

Allowing the namespace for a sink allows to create cross-namespace eventing meshes, which is a not uncommon use case. It adds a new level of flexibility for creating complex eventing architectures.

UI Example

kn source ping ... --sink channel:mychannel:myothernamespace

would create a destination which points to another namespace. the last component after the last colon should be optional, and if not provided the namespace of the source itself is used (aka the current namespace)

Activity

  1. added
    kind/feature
    on Nov 26, 2020
  2. navidshaikh commented on Nov 26, 2020

    @navidshaikh
    Contributor

    /assign
    /milestone v0.20.0

  3. added this to the v0.20.0 milestone on Nov 26, 2020
  4. duglin commented on Nov 26, 2020

    @duglin
    Contributor

    @lionelvillard does eventing have a flag to disable support for this? There are some envs where it would not be allowed. And if there is a way to disable it how would that error be surfaced to the user with this new CLI feature?

  5. rhuss commented on Dec 3, 2020

    @rhuss
    ContributorAuthor

    tbh, at the current state of eventing disabling cross-namespace support doesn't make much sense. A user can always provide the URL to the sink which is not secured on an eventing level. you can work with k8s authentication to avoid accessing the sink on the control plane level, but still, if you have the URL (and you can easily guess it as it follows a common naming scheme) you can access anything (broker, channel, services).

    So I wouldn't care too much about this (but more about how to secure the eventing data plane in general)

  6. modified the milestones: v0.20.0, v0.21.0 on Jan 14, 2021
  7. removed this from the v0.21.0 milestone on Mar 15, 2021
  8. navidshaikh commented on Mar 15, 2021

    @navidshaikh
    Contributor

    /unassign

  9. Kaustubh-pande commented on Mar 15, 2021

    @Kaustubh-pande
    Contributor

    I would like to work on this
    /assign

  10. added this to the v0.22.0 milestone on Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/feature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions