errors=append(errors,fmt.Errorf("--kubernetes-service-node-port %v must be between 0 and 65535, inclusive. If 0, the Kubernetes master service will be of type ClusterIP",options.KubernetesServiceNodePort))
errs=append(errs,fmt.Errorf("--kubernetes-service-node-port %v must be between 0 and 65535, inclusive. If 0, the Kubernetes master service will be of type ClusterIP",options.KubernetesServiceNodePort))
errors=append(errors,fmt.Errorf("kubernetes service port range %v doesn't contain %v",options.ServiceNodePortRange,(options.KubernetesServiceNodePort)))
errs=append(errs,fmt.Errorf("kubernetes service port range %v doesn't contain %v",options.ServiceNodePortRange,(options.KubernetesServiceNodePort)))
}
}
returnerrors
returnerrs
}
}
// Validate checks ServerRunOptions and return a slice of found errors.
errs=append(errs,errors.New("the TokenRequest feature is not enabled but --service-account-signing-key-file, --service-account-issuer and/or --api-audiences flags were passed"))
errs=append(errs,errors.New("the BoundServiceAccountTokenVolume feature depends on the TokenRequest feature, but the TokenRequest features is not enabled"))
lastErr=fmt.Errorf("the TokenRequest feature is not enabled but --service-account-signing-key-file, --service-account-issuer and/or --service-account-api-audiences 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")