Skip to content

Support embedded versions in YAML values (e.g., image tags)#7

Merged
ChrisJBurns merged 1 commit intomainfrom
feature/embedded-versions
Jan 15, 2026
Merged

Support embedded versions in YAML values (e.g., image tags)#7
ChrisJBurns merged 1 commit intomainfrom
feature/embedded-versions

Conversation

@ChrisJBurns
Copy link
Collaborator

Summary

  • Adds support for updating versions embedded within larger YAML values
  • Uses the current version from VERSION file to find and replace just the version portion
  • No new config fields needed - works automatically with existing prefix option

Example

For a value like:

toolhiveRunnerImage: ghcr.io/stacklok/toolhive/proxyrunner:v0.7.1

Config:

version_files:
  - file: values.yaml
    path: toolhiveRunnerImage
    prefix: "v"

Result after bump from 0.7.1 to 0.8.0:

toolhiveRunnerImage: ghcr.io/stacklok/toolhive/proxyrunner:v0.8.0

How it works

  1. Reads the full value at the YAML path
  2. Searches for prefix + currentVersion within the value
  3. If found, replaces just that portion with prefix + newVersion
  4. If not found, replaces the entire value (original behavior)

Test plan

  • Added tests for embedded version in image tags
  • Added tests for embedded version without prefix
  • All existing tests updated and passing

🤖 Generated with Claude Code

When the current version (with prefix) is found within a YAML value,
only that portion is replaced instead of the entire value.

Example: `ghcr.io/stacklok/toolhive/proxyrunner:v0.7.1`
with prefix "v" and current version "0.7.1" will update to
`ghcr.io/stacklok/toolhive/proxyrunner:v0.8.0`

This allows updating version references embedded in container
image tags without needing regex patterns.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChrisJBurns ChrisJBurns merged commit 95c9ace into main Jan 15, 2026
3 checks passed
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.

1 participant