Skip to content

Check for revision existance when updating traffic #445

@rhuss

Description

@rhuss

When the traffic distribution is updated e.g. via

kn service update random --traffic v1=10 --traffic latest=90

and if the revision does not exist (note the typo here with latest instead of @latest, then the update hangs because the service waits for this revision to exists before becoming Ready (but this will be never the case). So either the server should already go into an error state or as this doesn't seem to be the case, the client should refuse to create traffic targets to revisions that do not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions