remove redundant getKey functions from tests
This commit is contained in:
@@ -84,15 +84,6 @@ var (
|
||||
}}
|
||||
)
|
||||
|
||||
func getKey(ds *apps.DaemonSet, t *testing.T) string {
|
||||
key, err := controller.KeyFunc(ds)
|
||||
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error getting key for ds %v: %v", ds.Name, err)
|
||||
}
|
||||
return key
|
||||
}
|
||||
|
||||
func newDaemonSet(name string) *apps.DaemonSet {
|
||||
two := int32(2)
|
||||
return &apps.DaemonSet{
|
||||
|
Reference in New Issue
Block a user