-
Notifications
You must be signed in to change notification settings - Fork 68
Add support for configuring the workspace routing controllers through annotations on DevWorkspace. #245
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
annotations on DevWorkspace.
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
please wait @amisevsk approval
/retest |
/test v5-devworkspaces-operator-e2e |
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.
Does it make sense to extend this in the future so that e.g. any annotations with the .routing.controller.devfile.io/
infix are propagated to the WorkspaceRouting subresource?
Alternatively (and more long term) we could use the attributes field from the devfile to pass more structured data (e.g. we could pass json
instead of a string). Currently, raw devfiles support top-level attributes but DevWorkspaces do not, so it's not an easy 1-1 translation.
We can improve this later if we find the need for it.
+1
I don't think Devfile attributes should be used to convey information about how a DevWorkspace instance will behave. So everything related to routing or more generally the setup of a workspace instance should probably live in the |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amisevsk, davidfestal, JPinkney, metlos, 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 |
Wait, that's what I thought I was doing here :) This should propagate all the annos with the appropriate prefix (composed of the concrete routing class and the infix) to the workspace routing subresource. Have I missed some place where this needs to be done, too? |
@metlos You've done what you think (e.g. |
I'm merging this as is and we can revisit later if we find the need to propagate more loosely as suggested by @amisevsk . |
What does this PR do?
It copies annotations with certain format to the workspace routing objects expecting them to contain the configuration of the external routing controller in question.
What issues does this PR fix or reference?
#243