| 76 | } |
| 77 | |
| 78 | func ErrorCannotChangeKindOfDeployedAPI(name string, newKind, prevKind userconfig.Kind) error { |
| 79 | return errors.WithStack(&errors.Error{ |
| 80 | Kind: ErrCannotChangeTypeOfDeployedAPI, |
| 81 | Message: fmt.Sprintf("cannot change the kind of %s to %s because it has already been deployed with kind %s; please delete it with `cortex delete %s` and redeploy after updating the api configuration appropriately", name, newKind.String(), prevKind.String(), name), |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | func ErrorNoAvailableNodeComputeLimit(api *userconfig.API, compute userconfig.Compute, maxMemMap map[string]kresource.Quantity) error { |
| 86 | msg := "no instance types in your cluster are large enough to satisfy the requested resources for your pod\n\n" |