Skip to content

Commit

Permalink
fix comments for global rate limit type
Browse files Browse the repository at this point in the history
Signed-off-by: Arko Dasgupta <[email protected]>
  • Loading branch information
arkodg committed Dec 21, 2022
1 parent 77936da commit e1e9cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/ratelimitfilter_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ type RateLimitFilterSpec struct {
// Global rate limit configuration.
//
// +optional
Global *GlobalRateLimit `json:"global"`
Global *GlobalRateLimit `json:"global,omitempty"`
}

// RateLimitType specifies the types of RateLimiting.
// +kubebuilder:validation:Enum=Global
type RateLimitType string

const (
// In this mode, the rate limits are applied across all Envoy proxy instances.
// GlobalRateLimitType allows the rate limits to be applied across all Envoy proxy instances.
GlobalRateLimitType RateLimitType = "Global"
)

Expand Down

0 comments on commit e1e9cd5

Please sign in to comment.