MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ErrorCannotChangeKindOfDeployedAPI

Function ErrorCannotChangeKindOfDeployedAPI

pkg/operator/resources/errors.go:78–83  ·  view source on GitHub ↗
(name string, newKind, prevKind userconfig.Kind)

Source from the content-addressed store, hash-verified

76}
77
78func 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
85func 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"

Callers 1

UpdateAPIFunction · 0.85

Calls 2

WithStackFunction · 0.92
StringMethod · 0.45

Tested by

no test coverage detected