mirror of https://github.com/kubernetes/kops.git
Don't fail validation if Nvidia and containerRuntime defaults
This commit is contained in:
parent
b5be7d0229
commit
e40be401e5
|
@ -1423,7 +1423,7 @@ func validateNvidiaConfig(spec *kops.ClusterSpec, nvidia *kops.NvidiaGPUConfig,
|
|||
if kops.CloudProviderID(spec.CloudProvider) != kops.CloudProviderAWS {
|
||||
allErrs = append(allErrs, field.Forbidden(fldPath, "Nvidia is only supported on AWS"))
|
||||
}
|
||||
if spec.ContainerRuntime != "containerd" {
|
||||
if spec.ContainerRuntime != "" && spec.ContainerRuntime != "containerd" {
|
||||
allErrs = append(allErrs, field.Forbidden(fldPath, "Nvidia is only supported using containerd"))
|
||||
}
|
||||
return allErrs
|
||||
|
|
Loading…
Reference in New Issue