KUBE-182: Make agent version follow Ops Manager version#1395
Open
nammn wants to merge 6 commits into
Open
Conversation
Contributor
MCK 1.10.0 Release NotesNew Features
Bug Fixes
|
nammn
commented
Jul 20, 2026
nammn
commented
Jul 20, 2026
| for entry in release_data.get("latestOpsManagerAgentMapping", []): | ||
| for major, info in entry.items(): | ||
| agent_tools = ops_manager_versions.get(info["opsManagerVersion"]) | ||
| if agent_tools: |
Collaborator
Author
There was a problem hiding this comment.
this code was too complex, since we now use om_version and get its agent we can just get release.json and build their agents.
Realistically, we might not even need the whole file in the near future
nammn
force-pushed
the
change-default-agent
branch
from
July 20, 2026 11:23
e527097 to
4f6393d
Compare
nammn
marked this pull request as ready for review
July 20, 2026 11:26
MaciejKaras
approved these changes
Jul 20, 2026
MaciejKaras
left a comment
Collaborator
There was a problem hiding this comment.
Nice! This make total sense and I like how this is now more verbose. Those context file versions were problematic to me multiple times as well 👍
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.
Summary
Development contexts should use an agent version compatible with the selected Ops Manager version without requiring per-context pins. This change resolves the agent version dynamically from the Ops Manager mapping in
release.jsonbased on each variant'sCUSTOM_OM_VERSION, removes hardcoded agent pins from theom70/om80context files, and keeps the agent rebuild task aware of dynamically selected versions by readinglatestOpsManagerAgentMappingdirectly fromrelease.json.For OM variants, the new
resolve-agent-version.shresolves a version different from the default, so the new code path is exercised by CI:CUSTOM_OM_VERSIONagentVersion7.0.23107.0.23.8833-1108.0.12.8846-18.0.25108.0.25.9029-1108.0.12.8846-1Variants that don't set
CUSTOM_OM_VERSION(e.g. community operator contexts likee2e_mdb_community,e2e_mco_tests) fall back to the defaultagentVersion(108.0.12.8846-1) via the fallback path inresolve-agent-version.sh.Proof of Work
e2e_om80_kind_ubi_large✅e2e_om80_kind_ubi✅e2e_multi_cluster_om_appdb✅resolve-agent-version.sh, confirming the dynamic resolution path is validated without any manual default bump.Checklist
skip-changeloglabel applied