-
Notifications
You must be signed in to change notification settings - Fork 398
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
Implement a CLI command to bind a user workspace to some compute. #2102
Comments
Creating the APIExport - not sure. I could see a flow like:
We might also think about what happens when someone upgrades their export from k8s-1.24 to k8s-1.25 - a CLI that can handle existing exports & do validation for you might help there too. |
@stevekuznetsov I understand your point, and I don't think that implementing this command would prevent the flow you're proposing. It wouldn't prevent you to create a binding without running this CLI command. For now users know what locationWorkspace they plan to use: it is the one inside which they (or some admin user) ran the So the purpose of this issue is to provide, with a CLI command, the simplest and most straightforward way to bind to this already-known location Workspace. It makes it :
|
should it be |
We do now 😄 #2027 |
From a user POV it should be |
We should implement a KCP CLI command that allows "bind" a user workspace to some compute.
More precisely this command would allow providing:
APIExport
s of resources we want to sync.Command line could something like:
Based on these provided information:
Placement
would be created,APIBinding
s would be created in the user workspace to the correspondingAPIExport
s (if they don't already exist). We should check that the every requestedAPIExport
is effectively part of thesupportedAPIExports
list of at least oneSyncTarget
of the location Workspace.If no
APIExport
is mentioned, then for both the localkubernetes
and globalkubernetes
APIExport
s, if it is supported in at least oneSyncTarget
of the location Workspace, automatically create a binding to it (if it doesn't already exist).When creating an
APIBinding
, set theapis.kcp.dev/kind
label to theworkload
value, in order to identify this binding as a workload-relatedAPIBinding
later on.In this task we should also remove the defaultplacement_controller.go, since this command would replace it.
The text was updated successfully, but these errors were encountered: