fix: убрать --no-cache из kaniko Args — флаг не поддерживается в gcr.io/kaniko-project/executor:latest, кэш отключён по умолчанию

This commit is contained in:
Naeel
2026-03-19 17:38:07 +03:00
parent 0ebae25877
commit 8a8b815492
+1 -1
View File
@@ -125,7 +125,7 @@ func (b *Builder) Build(ctx context.Context, namespace, funcName, s3Key string)
Args: []string{ Args: []string{
"--context=" + s3ContextURL, "--context=" + s3ContextURL,
"--destination=" + imageRef, "--destination=" + imageRef,
"--no-cache", // без кэша — гарантирует что COPY берёт свежий код из S3 // --no-cache не поддерживается этой версией kaniko; кэш отключён по умолчанию
}, },
Env: []corev1.EnvVar{ Env: []corev1.EnvVar{
{Name: "AWS_ACCESS_KEY_ID", Value: b.s3AccessKey}, {Name: "AWS_ACCESS_KEY_ID", Value: b.s3AccessKey},