Repository navigation
feat: bump aws-iam-authenticator to 0.7.22 and pick binaries by TARGETARCH - #462
Merged
Merged
Conversation
2 tasks
zapraum
marked this pull request as ready for review
October 20, 2026 19:50
narikazu
approved these changes
Oct 21, 2026
This was referenced Oct 21, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The hokusai Docker image installs aws-iam-authenticator 0.4.0 (2019). That version only emits
client.authentication.k8s.io/v1alpha1ExecCredentials. Support forv1beta1starts at 0.5.5.The shared kubeconfigs in
s3://artsy-citadel/k8s/still usev1alpha1. Current clients such as kubectl 1.24+ and k9s 0.51 rejectv1alpha1. Those kubeconfigs can't move tov1beta1while this image ships 0.4.0. kubectl would reject the token withexec plugin is configured to use API version v1beta1, plugin returned version v1alpha1.The Dockerfile also hardcodes amd64 downloads for both docker-compose and the authenticator, so the image can't be built for arm64.
Solution
AUTHENTICATOR_VERSIONfrom 0.4.0 to 0.7.22. 0.7.22 returns whichever ExecCredential version kubectl asks for throughKUBERNETES_EXEC_INFO, so the currentv1alpha1kubeconfigs should keep working.TARGETARCH. BuildKit/buildx sets it per platform, and the legacy builder leaves it empty, so the build falls back toamd64. The currentmake build-docker-image(plaindocker buildon CircleCI amd64) gets the same binaries as before.linux_<arch>and matchTARGETARCHdirectly (amd64,arm64; every release from 0.5.5 on ships both).x86_64/aarch64, so the Dockerfile maps them and fails on any other architecture.-fto bothcurlcalls, so a missing asset fails the build instead of saving an error page as the binary.This PR doesn't publish a multi-arch image. CI still runs
docker buildand pushes a single-architecture image. Publishing arm64 would needdocker buildx build --platform linux/amd64,linux/arm64 --pushin the Makefile/CI. That's a separate change.Testing
Built the Dockerfile up to and including the authenticator install, then ran both binaries:
buildx --platform linux/amd64buildx --platform linux/arm64DOCKER_BUILDKIT=0)TARGETARCHempty → x86-64 binaries (checked withfile)Also tested 0.7.22 locally against
kubernetes-production-dracoandkubernetes-staging-leo(both v1.23.17) using av1beta1kubeconfig.I didn't build the full image (it needs
poetry buildoutput) or run it in CI.Alternatives considered
artsy-provisioning-public, the way the orb does in feat(hokusai): bump aws-iam-authenticator 0.4.0 -> 0.7.22 orbs#178. That bucket only haslinux_amd64, so every version bump would need a manual upload per architecture. GitHub releases have all architectures.To-dos
make build-docker-imagein CI, thenhokusai staging statusfrom the image with the currentconfig-ci.buildxmulti-platform build and push.Follow-up (not in this PR)
Once this and the orb ship, the S3 kubeconfigs move to
v1beta1, the staleprod-blue/pictor entries (left over from substance#279) get removed, and thehokusai.ymlkubectl pin goes from 1.19.16 to 1.24.x.Assisted-by: Claude Opus 5.5