Skip to content

Commit 0aca569

Browse files
authored
Update image version mismatch error message (#1036)
1 parent 7b162da commit 0aca569

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: pkg/lib/configreader/errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,6 @@ func ErrorCortexResourceNotAllowed(resourceName string) error {
364364
func ErrorImageVersionMismatch(image, tag, cortexVersion string) error {
365365
return errors.WithStack(&errors.Error{
366366
Kind: ErrImageVersionMismatch,
367-
Message: fmt.Sprintf("the specified image (%s) has a tag (%s) which does not match your Cortex version (%s); please update the image tag, remove the image from your configuration file (to use the default value), or update your CLI by following the instructions at https://www.cortex.dev/install", image, tag, cortexVersion),
367+
Message: fmt.Sprintf("the specified image (%s) has a tag (%s) which does not match your Cortex version (%s); please update the image tag, remove the image registry path from your configuration file (to use the default value), or update your CLI by following the instructions at https://www.cortex.dev/install", image, tag, cortexVersion),
368368
})
369369
}

Diff for: pkg/workloads/cortex/serve/serve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from cortex.lib.exceptions import UserRuntimeException
4141

4242
if os.environ["CORTEX_VERSION"] != consts.CORTEX_VERSION:
43-
errMsg = f"your Cortex operator version ({os.environ['CORTEX_VERSION']}) doesn't match your predictor image version ({consts.CORTEX_VERSION}); please update your cluster by following the instructions at https://www.cortex.dev/cluster-management/update, or update your predictor image by modifying the appropriate `image_*` field(s) in your cluster configuration file (e.g. cluster.yaml) and running `cortex cluster configure --config cluster.yaml`"
43+
errMsg = f"your Cortex operator version ({os.environ['CORTEX_VERSION']}) doesn't match your predictor image version ({consts.CORTEX_VERSION}); please update your predictor image by modifying the `image` field in your API configuration file (e.g. cortex.yaml) and re-running `cortex deploy`, or update your cluster by following the instructions at https://www.cortex.dev/cluster-management/update"
4444
raise ValueError(errMsg)
4545

4646

0 commit comments

Comments
 (0)