Skip to content

Commit

Permalink
Move the network crds to have special case handling
Browse files Browse the repository at this point in the history
  • Loading branch information
abhat committed Jan 16, 2020
1 parent 6809daa commit b3c6452
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions test/extended/cli/explain.go
Expand Up @@ -137,12 +137,6 @@ var (
{Group: "samples.operator.openshift.io", Version: "v1", Resource: "configs"},

{Group: "tuned.openshift.io", Version: "v1", Resource: "tuneds"},

{Group: "network.openshift.io", Version: "v1", Resource: "clusternetworks"},
{Group: "network.openshift.io", Version: "v1", Resource: "egressnetworkpolicies"},
{Group: "network.openshift.io", Version: "v1", Resource: "hostsubnets"},
{Group: "network.openshift.io", Version: "v1", Resource: "netnamespaces"},
{Group: "network.operator.openshift.io", Version: "v1", Resource: "operatorpkis"},
}

specialTypes = []explainExceptions{
Expand Down Expand Up @@ -321,6 +315,26 @@ var (
field: "consoleyamlsamples.spec",
pattern: `DESCRIPTION\:.*`,
},
{
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
field: "clusternetworks",
pattern: `DESCRIPTION\:.*`,
},
{
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
field: "hostsubnets",
pattern: `DESCRIPTION\:.*`,
},
{
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
field: "netnamespaces",
pattern: `DESCRIPTION\:.*`,
},
{
gv: schema.GroupVersion{Group: "network.openshift.io", Version: "v1"},
field: "egressnetworkpolicies",
pattern: `DESCRIPTION\:.*`,
},
}
)

Expand Down

0 comments on commit b3c6452

Please sign in to comment.