Fix copyright header, add more tests
@@ -103,6 +103,20 @@ func TestToIntWithRange(t *testing.T) {
min: 1024,
max: 8192,
},
+ {
+ name: corev1.ResourceMemory,
+ input: "4Gi",
+ baseline: 4295,
+ min: 2048,
+ max: 16384,
+ },
+ {
+ name: corev1.ResourceMemory,
+ input: "4G",
+ baseline: 4000,
+ min: 1024,
+ max: 8192,
+ },
}
for _, c := range cases {
t.Run(string(c.name)+c.input, func(t *testing.T) {
