fix: Add missing Name and WorkingDir fields to Kaniko task container
@@ -464,9 +464,12 @@ func (action *schedulePodAction) addKanikoTaskToPod(ctx context.Context, build *
}
container := corev1.Container{
+ Name: task.Name,
Image: fmt.Sprintf("gcr.io/kaniko-project/executor:v%s", defaults.KanikoVersion),
+ ImagePullPolicy: corev1.PullIfNotPresent,
Args: args,
Env: env,
+ WorkingDir: path.Join(builderDir, build.Name, builder.ContextDir),
VolumeMounts: volumeMounts,
}
