Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

builtin/k8s/task: Explicitly set container env var for Kaniko #3322

Merged
merged 2 commits into from
May 9, 2022

Conversation

briancain
Copy link
Member

Prior to this commit, if a certain version of Kaniko was used with the
current latest version of Kubernetes 1.23, Kaniko would fail to detect
that it was being run inside a container. This means Waypoint would then
faill back to try to use Docker inside a container for the build step.
This commit fixes this by setting the proper env var for Kaniko and
keeps ODR remote builds working.

Fixes #2984

Prior to this commit, if a certain version of Kaniko was used with the
current latest version of Kubernetes 1.23, Kaniko would fail to detect
that it was being run inside a container. This means Waypoint would then
faill back to try to use Docker inside a container for the build step.
This commit fixes this by setting the proper env var for Kaniko and
keeps ODR remote builds working.

Fixes #2984
@briancain briancain added pr/no-changelog No automatic changelog entry required for this pull request backport/0.8.x labels May 9, 2022
@briancain briancain requested a review from a team May 9, 2022 17:50
@briancain briancain removed the pr/no-changelog No automatic changelog entry required for this pull request label May 9, 2022
Copy link
Contributor

@evanphx evanphx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we upgrade Kaniko instead? This is fine, just asking!

@briancain
Copy link
Member Author

@evanphx good question! I had been under the assumption the bug hasn't been fixed yet. I'll double check before merging this, because that would be a better fix.

@briancain
Copy link
Member Author

@evanphx - Doesn't look like there's any mention of addressing the open issue in the latest release of Kaniko, so I don't think upgrading will fix this. I think we'll have to watch that issue and see when it gets in a release of Kaniko, and bump the version then!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kanikos's Waypoint ODR image failing in K8s 1.23 (run with --force flag message)
2 participants