From 106ac4c6a7ab8fcbaba29d2255b077a0fb17fb58 Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Tue, 17 Dec 2024 11:53:35 +0100 Subject: [PATCH] Hint user about wrong docker-registry configuration (#2288) --- internal/cmd/alpha/app/push.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/cmd/alpha/app/push.go b/internal/cmd/alpha/app/push.go index 0bc1cd97d..7b1562f1d 100644 --- a/internal/cmd/alpha/app/push.go +++ b/internal/cmd/alpha/app/push.go @@ -203,7 +203,11 @@ func buildAndImportImage(client kube.Client, cfg *appPushConfig, registryConfig }, ) if cliErr != nil { - return "", clierror.WrapE(cliErr, clierror.New("failed to import image to in-cluster registry")) + return "", clierror.WrapE(cliErr, clierror.New( + "failed to import image to in-cluster registry", + "make sure cluster is available and properly configured", + "enable docker registry module by calling `kyma alpha module enable docker-registry -c experimental`", + )) } return pushedImage, nil