error handling\!

pull/12237/head
Sharif Elgamal 2021-08-23 14:06:23 -07:00
parent 32577cc801
commit 8470a955db
1 changed files with 8 additions and 2 deletions

View File

@ -482,8 +482,14 @@ func generateNewConfigFromFlags(cmd *cobra.Command, k8sVersion string, drvName s
}
if detect.IsCloudShell() {
cc.KubernetesConfig.ExtraOptions.Set("kubelet.cgroups-per-qos=false")
cc.KubernetesConfig.ExtraOptions.Set("kubelet.enforce-node-allocatable=\"\"")
err := cc.KubernetesConfig.ExtraOptions.Set("kubelet.cgroups-per-qos=false")
if err != nil {
exit.Error(reason.InternalConfigSet, "failed to set cloud shell kubelet config options", err)
}
err = cc.KubernetesConfig.ExtraOptions.Set("kubelet.enforce-node-allocatable=\"\"")
if err != nil {
exit.Error(reason.InternalConfigSet, "failed to set cloud shell kubelet config options", err)
}
}
return cc