Skip to content

Commit cdbe64f

Browse files
Merge pull request #411 from chlunde/route-subdomain-omitempty
route/v1: add omitempty to subdomain struct tag
2 parents c4807bb + a45959f commit cdbe64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

route/v1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type RouteSpec struct {
8484
// `apps.mycluster.com` to have a full hostname `frontend.apps.mycluster.com`.
8585
//
8686
// +optional
87-
Subdomain string `json:"subdomain" protobuf:"bytes,8,opt,name=subdomain"`
87+
Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,8,opt,name=subdomain"`
8888

8989
// path that the router watches for, to route traffic for to the service. Optional
9090
Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"`

0 commit comments

Comments
 (0)