put endpoints before service

This commit is contained in:
Donny Xia
2020-09-18 12:21:03 -07:00
parent 3514317b3d
commit f1dabbd4fc
2 changed files with 3 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ var orderFirst = []string{
"ClusterRoleBinding",
"ConfigMap",
"Secret",
"Endpoints",
"Service",
"LimitRange",
"PriorityClass",

View File

@@ -78,6 +78,8 @@ var lessThanTests = []struct {
Gvk{Group: "a", Version: "b", Kind: "ValidatingWebhookConfiguration"}},
{Gvk{Group: "a", Version: "b", Kind: "Service"},
Gvk{Group: "a", Version: "b", Kind: "APIService"}},
{Gvk{Group: "a", Version: "b", Kind: "Endpoints"},
Gvk{Group: "a", Version: "b", Kind: "Service"}},
}
func TestIsLessThan1(t *testing.T) {