Skip to content

Commit

Permalink
bugfix: handle latest images tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mandochen committed May 31, 2023
1 parent 1a3163e commit ba0d93a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
)

const version = "0.6.0"
const version = "0.6.1"

var rootCmd *cobra.Command

Expand Down
5 changes: 5 additions & 0 deletions kubectl_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,13 @@ func (ki *KubeImage) execNodeCommand() {
if err != nil {
continue
}

ki.imageSize[items[0]] = size
ki.imageSize[items[1]] = size
parts := strings.Split(items[1], ":")
if len(parts) == 2 && parts[1] == "latest" {
ki.imageSize[parts[0]] = size
}
}
}

Expand Down

0 comments on commit ba0d93a

Please sign in to comment.