mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
Fix typos in kubefed package
This commit is contained in:
parent
2495cc602f
commit
33fa153702
@ -284,7 +284,7 @@ func (i *initFederation) Run(cmdOut io.Writer, config util.AdminConfig) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// If the error is type NoRBACAPIError, We continue to create the rest of
|
// If the error is type NoRBACAPIError, We continue to create the rest of
|
||||||
// the resources, without the SA and roles (in the abscense of RBAC support).
|
// the resources, without the SA and roles (in the absence of RBAC support).
|
||||||
rbacAvailable = false
|
rbacAvailable = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ func buildConfigFromSecret(secret *api.Secret, serverAddress string) (*restclien
|
|||||||
|
|
||||||
// GetVersionedClientForRBACOrFail discovers the versioned rbac APIs and gets the versioned
|
// GetVersionedClientForRBACOrFail discovers the versioned rbac APIs and gets the versioned
|
||||||
// clientset for either the preferred version or the first listed version (if no preference listed)
|
// clientset for either the preferred version or the first listed version (if no preference listed)
|
||||||
// TODO: We need to evaluate the usage of RESTMapper interface to achieve te same functionality
|
// TODO: We need to evaluate the usage of RESTMapper interface to achieve the same functionality
|
||||||
func GetVersionedClientForRBACOrFail(hostFactory cmdutil.Factory) (client.Interface, error) {
|
func GetVersionedClientForRBACOrFail(hostFactory cmdutil.Factory) (client.Interface, error) {
|
||||||
discoveryclient, err := hostFactory.DiscoveryClient()
|
discoveryclient, err := hostFactory.DiscoveryClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user