Skip to content

Commit 20f3023

Browse files
committed
fix(kube_pod_tolerations): test duplicate toleration
1 parent 170bbd4 commit 20f3023

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/store/pod_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,12 @@ func TestPodStore(t *testing.T) {
21142114
Operator: v1.TolerationOpEqual,
21152115
Value: "value3",
21162116
},
2117+
{
2118+
// Duplicate toleration, to ensure that doesn't result in a duplicate metric
2119+
Key: "key3",
2120+
Operator: v1.TolerationOpEqual,
2121+
Value: "value3",
2122+
},
21172123
{
21182124
// an empty toleration to ensure that an empty toleration does not result in a metric
21192125
},

0 commit comments

Comments
 (0)