Add missing field label conversions
Added missing field labels conversion functions for kinds: - ConfigMap - DaemonSet - Deployment - Endpoints - Event - Ingress - Job - PersistentVolume - PersistentVolumeClaim - ResourceQuota - Secret - Service Completed conversion functions of few other kinds: - Namespace - ServiceAccount Added tests suite for the above. Signed-off-by: Michal Minar <miminar@redhat.com>
This commit is contained in:
@@ -20,6 +20,9 @@ import (
|
||||
"testing"
|
||||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/testapi"
|
||||
apitesting "k8s.io/kubernetes/pkg/api/testing"
|
||||
"k8s.io/kubernetes/pkg/labels"
|
||||
)
|
||||
|
||||
func TestControllerStrategy(t *testing.T) {
|
||||
@@ -138,3 +141,12 @@ func TestControllerStatusStrategy(t *testing.T) {
|
||||
t.Errorf("Unexpected error %v", errs)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSelectableFieldLabelConversions(t *testing.T) {
|
||||
apitesting.TestSelectableFieldLabelConversionsOfKind(t,
|
||||
testapi.Default.GroupVersion().String(),
|
||||
"ReplicationController",
|
||||
labels.Set(ControllerToSelectableFields(&api.ReplicationController{})),
|
||||
nil,
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user