-
Notifications
You must be signed in to change notification settings - Fork 24
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
✨ Enable CAPI UI extension installation for development purposes #1083
Conversation
28ead87
to
d463f94
Compare
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.
Thanks for addressing this, apart from a minor typo this looks good.
eaf8ab2
// SetupWithManager sets up the controller with the Manager. | ||
func (r *UIPluginReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager, _ controller.Options) error { | ||
uiPlugin := &metav1.PartialObjectMetadata{} | ||
uiPlugin.SetGroupVersionKind(schema.GroupVersionKind{ |
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.
should this be a part of the rancher API wrapper?
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.
It can be, but this controller does not set any spec fields, only moves the UI plugin to the cattle-ui-system-namespace
, once this namespace is created. It may also be used later to not move and simply delete UIPlugin
if it interferes with existing one in the namespace already. Helm has problems with cleaning up or replacing resources if they weren’t created by it, so a controller is better suited to accommodate this custom logic.
253dea1
253dea1
to
2963f1d
Compare
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2963f1d
to
8aa63dc
Compare
I think we need to postpone this addition until we have a clear installation path supported by the org. I’ll close it for now. |
What this PR does / why we need it:
Fixes #1082