-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mark provider name optional for Custom providers, and remove for predefined #64
Comments
Hi @Danil-Grigorev, the "Name" field from your screenshot sets metadata.name field. We only allow user to provide spec.name when creating Custom provider ('Provider' field). Are you suggesting we should not be asking the user to provide metadata.name and supply the name ourselves instead? |
I’m not aware of the internals that much to tell that |
Hi @kwwii, what do you think? |
|
Currently, the backend allows the creation of multiple providers of a given type. Is this expected to change? |
Given that we currently allow for more than one provider of a given type, we cannot remove the name field as we need it to differentiate between providers of the same type in the provider list. |
We’ve discussed the issue on the call. The conclusion is that we can’t have multiple providers of the same type due to cluster-api-operator limitation (thanks @alexander-demicev for pointing this out). The reason being that this may lead to clashing cluster-scoped objects, like CRDs whenever there more then one provider of this type is installed. More context on this: kubernetes-sigs/cluster-api#9875 (comment) Since the CAPI operator uses clusterctl libraries, this limitation extends on the project too. @kwwii pointed out that this limitation may have larger impact on UI and credentials handling mechanism and it requires additional changes. |
The
CAPIProvider
since v0.8.0 no longer requiresspec.name
to be specified at all times. In case when it is not set, it usesmetadata.name
, so this field can be marked as optional.It makes sense to specify
spec.name
only if the kind of provider is unknown. For existing set of providers like Docker, AWS, etc., the default one for the applied resource coming from UI code is enough.Why
This will remove ambiguity. Users may supply a name for docker provider like
aws
and installaws
provider underdocker
label.The text was updated successfully, but these errors were encountered: