Skip to content

Commit 5c757be

Browse files
fixup! Start using the new resource models
1 parent 4e92f25 commit 5c757be

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

gwctl/pkg/cmd/describe/describe.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ func runDescribe(args []string, params *utils.CmdParams, flags *describeFlags) {
122122
case "backend", "backends":
123123
filter := resourcediscovery.Filter{
124124
Namespace: ns,
125-
// We default the backends to just "Service" types initially.
126-
ResourceType: "service",
127125
}
128126
if len(args) > 1 {
129127
filter.Name = args[1]

gwctl/pkg/printer/httproutes.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"strings"
2323
"text/tabwriter"
2424

25-
gatewayv1beta1 "sigs.k8s.io/gateway-api/apis/v1beta1"
25+
gatewayv1 "sigs.k8s.io/gateway-api/apis/v1"
2626
"sigs.k8s.io/yaml"
2727

2828
"sigs.k8s.io/gateway-api/gwctl/pkg/policymanager"
@@ -55,12 +55,12 @@ func (hp *HTTPRoutesPrinter) Print(resourceModel *resourcediscovery.ResourceMode
5555
}
5656

5757
type httpRouteDescribeView struct {
58-
Name string `json:",omitempty"`
59-
Namespace string `json:",omitempty"`
60-
Hostnames []gatewayv1beta1.Hostname `json:",omitempty"`
61-
ParentRefs []gatewayv1beta1.ParentReference `json:",omitempty"`
62-
DirectlyAttachedPolicies []policymanager.ObjRef `json:",omitempty"`
63-
EffectivePolicies any `json:",omitempty"`
58+
Name string `json:",omitempty"`
59+
Namespace string `json:",omitempty"`
60+
Hostnames []gatewayv1.Hostname `json:",omitempty"`
61+
ParentRefs []gatewayv1.ParentReference `json:",omitempty"`
62+
DirectlyAttachedPolicies []policymanager.ObjRef `json:",omitempty"`
63+
EffectivePolicies any `json:",omitempty"`
6464
}
6565

6666
func (hp *HTTPRoutesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel) {

0 commit comments

Comments
 (0)