lastErr=fmt.Errorf("the TokenRequest feature is not enabled but --service-account-signing-key-file and/or --service-account-issuer-id flags were passed")
lastErr=fmt.Errorf("service-account-signing-key-file, service-account-issuer, service-account-api-audiences and service-account-key-file should be specified together")
allErrs=append(allErrs,field.Forbidden(fldPath.Child("shareProcessNamespace"),"Process Namespace Sharing is disabled by PodShareProcessNamespace feature-gate"))
allErrs=append(allErrs,field.Invalid(fldPath.Child("shareProcessNamespace"),*securityContext.ShareProcessNamespace,"ShareProcessNamespace and HostPID cannot both be enabled"))
}
allErrs=append(allErrs,field.Forbidden(fldPath.Child("shareProcessNamespace"),"Process Namespace Sharing is disabled by PodShareProcessNamespace feature-gate"))
allErrs=append(allErrs,field.Forbidden(field.NewPath("spec","configSource"),"configSource may only be set if the DynamicKubeletConfig feature gate is enabled)"))
glog.Warningln("Accelerators feature is deprecated and will be removed in v1.11. Please use device plugins instead. They can be enabled using the DevicePlugins feature gate.")
returnadmission.NewForbidden(a,fmt.Errorf("the integer value of priority must not be provided in pod spec. Priority admission controller populates the value from the given PriorityClass name"))
allErrs=append(allErrs,field.Invalid(fldPath.Child("openAPIV3Schema"),*schema,fmt.Sprintf("if subresources for custom resources are enabled, only properties can be used at the root of the schema")))
allErrs=append(allErrs,field.Invalid(fldPath.Child("scale.statusReplicasPath"),subresources.Scale.StatusReplicasPath,"should be a json path under .status"))
}
}
// if labelSelectorPath is present, it should be a constrained json path under .status
allErrs=append(allErrs,field.Invalid(fldPath.Child("scale.labelSelectorPath"),subresources.Scale.LabelSelectorPath,"should be a json path under .status"))