Skip to content

Add support for DomainMapping resource #1197

Closed

Description

@dsimansk

Feature request

It'd be great is if we could add support for DomainMapping custom resource, that was recently added to Serving API.

Use case

With the use of DomainMapping it's possible to create custom domains per namespace and per Service reference to address the endpoints.

The required parameters are domain name (fqdn) and reference (Addressable, currently only ksvc). The initial goal should be to have CRUD ops available on pair with other cmds.

UI Example

kn domain create <custom-domain> --ref <Service-name> --namespace <namespace>
kn domain delete <custom-domain> 
kn domain describe <custom-domain> 
kn domain list

/kind good-first-issue
/kind proposal

/cc @nak3

Activity

  1. added
    kind/feature
    on Jan 20, 2021
  2. added
    good first issue
    kind/proposal
    on Jan 20, 2021
  3. rhuss commented on Jan 20, 2021

    @rhuss
    Contributor

    Thanks, definitely something we should add !

    I wonder whether we should call it --sink as it is essentially the same type that a sink uses. But on the other hand sink is an eventing concept and only because it is sharing the same type doesn't mean it has to be the same option name. So --ref or --reference (with a short -r option) would be fine IMO.

  4. dsimansk commented on Jan 20, 2021

    @dsimansk
    ContributorAuthor

    Thanks, definitely something we should add !

    I wonder whether we should call it --sink as it is essentially the same type that a sink uses. But on the other hand sink is an eventing concept and only because it is sharing the same type doesn't mean it has to be the same option name. So --ref or --reference (with a short -r option) would be fine IMO.

    I gave it a thought during writing the initial description and it seemed to me that --reference|--ref is more suitable as it reflects the naming from DomainMapping as well.
    As pointed out by @navidshaikh, the sink flag is extensible with custom flag name.

  5. julz commented on Jan 26, 2021

    @julz

    Agree with @dsimansk that ref is better. As well as ref being what the yaml version uses, as of now the requirements for ref are slightly stricter than for sink (can't resolve to an address with a path, for example) so I think it's less confusing to keep them distinct.

  6. dsimansk commented on Mar 17, 2021

    @dsimansk
    ContributorAuthor

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issuekind/featurekind/proposal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions