13
0
Fork 0
mirror of https://github.com/yannh/kubeconform.git synced 2026-07-04 02:19:31 +00:00

only expose interfac

This commit is contained in:
Yann Hamon 2020-11-14 16:23:33 +01:00
parent 9d91ec4aa9
commit 4672ded043
3 changed files with 57 additions and 72 deletions

View file

@ -134,7 +134,7 @@ lastName: bar
Error,
},
} {
v := Validator{
val := v{
opts: Opts{
SkipKinds: map[string]bool{},
RejectKinds: map[string]bool{},
@ -149,7 +149,7 @@ lastName: bar
},
regs: nil,
}
if got := v.Validate(resource.Resource{Bytes: testCase.rawResource}); got.Status != testCase.expect {
if got := val.Validate(resource.Resource{Bytes: testCase.rawResource}); got.Status != testCase.expect {
t.Errorf("%d - expected %d, got %d", i, testCase.expect, got.Status)
}
}