Skip to content

Commit

Permalink
Merge pull request #120 from radiofrance/fix-kaniko-bug
Browse files Browse the repository at this point in the history
fix: Handle kaniko error when running on recent kubernetes version
  • Loading branch information
Thibaut-gauvin authored Jun 13, 2022
2 parents 684f46b + 2d536d5 commit 2a62dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ func createKanikoKubernetesExecutor(cfg kanikoConfig) (*kaniko.KubernetesExecuto
EnvSecrets: cfg.Executor.Kubernetes.EnvSecrets,
Env: map[string]string{
"AWS_REGION": cfg.Context.S3.Region,
"container": "kube", // Fix for https://github.com/GoogleContainerTools/kaniko/issues/1542
},
PodOverride: cfg.Executor.Kubernetes.PodTemplateOverride,
ContainerOverride: cfg.Executor.Kubernetes.ContainerOverride,
Expand Down

0 comments on commit 2a62dea

Please sign in to comment.