Skip to content

fix(lint): strip k8s version suffix from EC version in DiscoverECVersion#704

Merged
emosbaugh merged 1 commit intomainfrom
worktree-parsed-bubbling-kay
Apr 27, 2026
Merged

fix(lint): strip k8s version suffix from EC version in DiscoverECVersion#704
emosbaugh merged 1 commit intomainfrom
worktree-parsed-bubbling-kay

Conversation

@emosbaugh
Copy link
Copy Markdown
Member

Summary

  • EC versions include a +k8s-<major>.<minor> suffix (e.g. 3.0.0-beta.2+k8s-1.34) that needs to be stripped before use
  • parseECVersionFromFile now applies the same regex the EC project uses: \+k8s-(\d+\.\d+)$
  • Added unit tests covering the suffix-stripping cases including plain, pre-release, complex pre-release, wrong kind, and multi-doc YAML

Test plan

  • go test ./pkg/lint2/ -run TestParseECVersionFromFile
  • go test ./pkg/lint2/ -run TestDiscoverECVersion

🤖 Generated with Claude Code

EC versions include a +k8s-<major>.<minor> suffix (e.g. "3.0.0-beta.2+k8s-1.34")
that should be stripped before use, matching the behavior in the EC project.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@emosbaugh emosbaugh changed the title fix: strip k8s version suffix from EC version in DiscoverECVersion fix(lint): strip k8s version suffix from EC version in DiscoverECVersion Apr 27, 2026
@emosbaugh emosbaugh merged commit 2a597b9 into main Apr 27, 2026
6 checks passed
@emosbaugh emosbaugh deleted the worktree-parsed-bubbling-kay branch April 27, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants