Skip to content

Commit

Permalink
fix fmt and remove [STABLE] in e2e Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hausertt committed Nov 12, 2024
1 parent 0d35c3f commit 7ea2c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/store/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func createNodeStatusImagesFamilyGenerator() generator.FamilyGenerator {
imageDigest := ""
imageName := ""

if len(images.Names) == 2{
if len(images.Names) == 2 {
imageDigest = images.Names[0]
imageName = images.Names[1]
} else if len(images.Names) == 1 {
Expand Down
2 changes: 1 addition & 1 deletion internal/store/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func TestNodeStore(t *testing.T) {
},
},
Want: `
# HELP kube_node_status_images [STABLE] Container Images on the Node
# HELP kube_node_status_images Container Images on the Node
# TYPE kube_node_status_images gauge
kube_node_status_images{image_digest="",image_name="registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.13.0",image_size_bytes="253421"} 1
kube_node_status_images{image_digest="registry.k8s.io/busybox/busybox@sha256:5d462a2f5f5eae1e9a9a5dd0f8a0b7d5a5d12",image_name="registry.k8s.io/busybox/busybox:v1.28.0",image_size_bytes="23342213"} 1
Expand Down

0 comments on commit 7ea2c0d

Please sign in to comment.