Skip to content

Correctly look for known tag when matching versions.json tag not found - #1274

Merged
APErebus merged 3 commits into
mainfrom
ap/fix-incorrect-latest-tag-use
Jul 23, 2026
Merged

Correctly look for known tag when matching versions.json tag not found#1274
APErebus merged 3 commits into
mainfrom
ap/fix-incorrect-latest-tag-use

Conversation

@APErebus

Copy link
Copy Markdown
Contributor

Background

I noticed in my k3s cluster, which is running 1.36.x of K8s, that the agent was using the latest tag of the agent tools. We are publishing a 1.36 of the agent tools image, so what's going on?

Results

There was a bug/issue where if the cluster version was newer than the latest value in the versions metadata, it would just fallback to the latest tag.

Now if we can't get the version metadata or specifically use a deprecated image tag or a known tag matching the cluster version, we just fallback to the list of known tags or latest if nothing matches

How to review this PR

Quality ✔️

Pre-requisites

  • I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
  • I have considered informing or consulting the right people, according to the ownership map.
  • I have considered appropriate testing for my change.

@APErebus
APErebus requested review from a team as code owners July 23, 2026 02:48
@APErebus APErebus changed the title Correctly look for known tag when cluster version is newer Correctly look for known tag when matching versions.json tag not found Jul 23, 2026
@APErebus
APErebus merged commit 3d31d42 into main Jul 23, 2026
53 checks passed
@APErebus
APErebus deleted the ap/fix-incorrect-latest-tag-use branch July 23, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants