mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Update strategy.go
This commit is contained in:
parent
a9b183db7f
commit
995d8d3380
@ -96,7 +96,7 @@ func MatchConfigMap(label labels.Selector, field fields.Selector) apistorage.Sel
|
|||||||
GetAttrs: func(obj runtime.Object) (labels.Set, fields.Set, error) {
|
GetAttrs: func(obj runtime.Object) (labels.Set, fields.Set, error) {
|
||||||
cfg, ok := obj.(*api.ConfigMap)
|
cfg, ok := obj.(*api.ConfigMap)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, nil, fmt.Errorf("given object is not of type ConfigMap")
|
return nil, nil, fmt.Errorf("given object is not a ConfigMap")
|
||||||
}
|
}
|
||||||
|
|
||||||
return labels.Set(cfg.ObjectMeta.Labels), ConfigMapToSelectableFields(cfg), nil
|
return labels.Set(cfg.ObjectMeta.Labels), ConfigMapToSelectableFields(cfg), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user