-
Notifications
You must be signed in to change notification settings - Fork 61
Propagate DevWorkspace .spec.started status to an annotation on routings #617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add annotation 'controller.devfile.io/devworkspace-started' to be applied to DevWorkspaceRoutings. If a workspace is stopped, the annotation is set to "false", otherwise it is "true". If the DevWorkspaceRouting reconciler encounters a DevWorkspaceRouting with the annotation set to false, it ends the reconcile early. This ensures that every workspace start/stop event triggers a reconcile, and allows the routing to clean up resources if necessary. Signed-off-by: Angel Misevski <[email protected]>
/test v8-devworkspace-operator-e2e, v8-che-happy-path |
Che Happy path test fails with the following error on DWO side:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Probably it's too late to name that alternative but we could do spec.started as well, with help of mutating webhooks and restoring value from the existing state. It's the same we do for creator annotation.
I have no idea why it did not appear for me earlier.
But I don't have a strong opinion, I let you decide which you like more.
/test v8-devworkspace-operator-e2e, v8-che-happy-path |
@amisevsk: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Che Happy path failure is the same as in #605 (comment) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amisevsk, JPinkney, sleshchenko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is a backwards-compatible re-do of #604
What does this PR do?
Add annotation 'controller.devfile.io/devworkspace-started' to be applied to DevWorkspaceRoutings. If a workspace is stopped, the annotation is set to "false", otherwise it is "true". If the DevWorkspaceRouting reconciler encounters a DevWorkspaceRouting with the annotation set to false, it ends the reconcile early.
This ensures that every workspace start/stop event triggers a reconcile, and allows the routing to clean up resources if necessary.
What issues does this PR fix or reference?
Re-closes #602
Is it tested? How?
Check that DevWorkspaceRoutings get the annotation, and that this doesn't break the Che operator.
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che