Skip to content

Commit ba0d93a

Browse files
author
mandochen
committed
bugfix: handle latest images tag
1 parent 1a3163e commit ba0d93a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/spf13/cobra"
1010
)
1111

12-
const version = "0.6.0"
12+
const version = "0.6.1"
1313

1414
var rootCmd *cobra.Command
1515

kubectl_images.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,13 @@ func (ki *KubeImage) execNodeCommand() {
207207
if err != nil {
208208
continue
209209
}
210+
210211
ki.imageSize[items[0]] = size
211212
ki.imageSize[items[1]] = size
213+
parts := strings.Split(items[1], ":")
214+
if len(parts) == 2 && parts[1] == "latest" {
215+
ki.imageSize[parts[0]] = size
216+
}
212217
}
213218
}
214219

0 commit comments

Comments
 (0)