mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-30 21:33:53 +00:00
Move Plugin Args defaults to versioned packages
Signed-off-by: Aldo Culquicondor <acondor@google.com>
This commit is contained in:
@@ -78,9 +78,6 @@ func New(plArgs runtime.Object, handle framework.FrameworkHandle) (framework.Plu
|
||||
}
|
||||
|
||||
func getArgs(obj runtime.Object) (config.ServiceAffinityArgs, error) {
|
||||
if obj == nil {
|
||||
return config.ServiceAffinityArgs{}, nil
|
||||
}
|
||||
ptr, ok := obj.(*config.ServiceAffinityArgs)
|
||||
if !ok {
|
||||
return config.ServiceAffinityArgs{}, fmt.Errorf("want args to be of type ServiceAffinityArgs, got %T", obj)
|
||||
|
||||
Reference in New Issue
Block a user