Skip to content

Commit

Permalink
SessionPersistence field should have omitempty tag (#3059)
Browse files Browse the repository at this point in the history
Signed-off-by: Sunjay Bhatia <[email protected]>
  • Loading branch information
sunjayBhatia authored May 6, 2024
1 parent 6fc4f83 commit 95d865e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apis/v1/grpcroute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ type GRPCRouteRule struct {
//
// +optional
// <gateway:experimental>
SessionPersistence *SessionPersistence `json:"sessionPersistence"`
SessionPersistence *SessionPersistence `json:"sessionPersistence,omitempty"`
}

// GRPCRouteMatch defines the predicate used to match requests to a given
Expand Down
2 changes: 1 addition & 1 deletion apis/v1/httproute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ type HTTPRouteRule struct {
//
// +optional
// <gateway:experimental>
SessionPersistence *SessionPersistence `json:"sessionPersistence"`
SessionPersistence *SessionPersistence `json:"sessionPersistence,omitempty"`
}

// HTTPRouteTimeouts defines timeouts that can be configured for an HTTPRoute.
Expand Down
2 changes: 1 addition & 1 deletion apis/v1alpha2/backendlbpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ type BackendLBPolicySpec struct {
// Support: Extended
//
// +optional
SessionPersistence *SessionPersistence `json:"sessionPersistence"`
SessionPersistence *SessionPersistence `json:"sessionPersistence,omitempty"`
}

0 comments on commit 95d865e

Please sign in to comment.