Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.13.2
version: v2.14.0
args: --timeout=10m

dco:
Expand Down
6 changes: 2 additions & 4 deletions pkg/commands/preflight_upgrade_verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ func parseTargetVersion(image string) string {
// suffix after `:`. Splitting on `/` first isolates that
// component, so a registry port (`registry.local:5000`) in an
// earlier path component cannot be mistaken for a tag separator.
lastSlash := strings.LastIndex(image, "/")

tail := image
if lastSlash >= 0 {
tail = image[lastSlash+1:]
if _, after, found := strings.CutLast(image, "/"); found {
tail = after
}

idx := strings.LastIndex(tail, ":")
Expand Down
Loading