Skip to content

Service lets you point traffic at revisions it does not own #11916

@dprotaso

Description

@dprotaso

What version of Knative?

Repro'd with 0.25.1

Expected Behavior

Update the traffic rules of a Service to point to another revision should fail

Actual Behavior

The traffic rule is realized and hitting Service A will route traffic to a revision owned by a different Service

Steps to Reproduce the Problem

$ kn service create aaa --image gcr.io/knative-samples/helloworld-go --env TARGET=A
...
$ kn service create bbb --image gcr.io/knative-samples/helloworld-go --env TARGET=B
...
$ curl aaa.default
Hello A!
$ curl bbb.default
Hello B!
$  kn service update aaa --traffic bbb-00001=100
$ curl aaa.default
Hello B!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.triage/acceptedIssues which should be fixed (post-triage)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions