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:
parent
9d91ec4aa9
commit
4672ded043
3 changed files with 57 additions and 72 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue