Registry Mirror
Skip to content

Conversation

@laoj2

Copy link
Copy Markdown
Collaborator

Breaking change

DeleteActor now deletes an actor in any state, and the any_state field and the kubectl ate delete actor --any-state flag are gone.

  • Callers that relied on DeleteActor returning FAILED_PRECONDITION for a running actor no longer get that guard. A running actor is now terminated, its volumes detached, and its worker released. To avoid deleting an actor that changed since you read it, check its state yourself before deleting, or pass options.uid and options.version.
  • DeleteActorRequest.options moved from field 3 to field 2. Regenerate clients from the new ateapi.proto. Old stubs that send options will have it silently dropped, and old stubs that set any_state will fail to parse.
  • Remove any_state / AnyState from DeleteActorRequest in your code.
  • Drop --any-state from any scripts that call kubectl ate delete actor. The flag is now rejected as unknown.

Fixes #1161

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@juli4n

Copy link
Copy Markdown
Collaborator

Needs rebase

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

Labels

area/api User-facing API changes area/api-machinery breaking-change PRs with breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename DeleteActorRequest.any_state

2 participants