From 68954ceb9b029dfa0029e58dbb12b80b391f4c18 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Thu, 30 May 2024 10:29:54 +0200 Subject: [PATCH] Rename variable to fix typo --- internal/ingress/controller/config/config.go | 6 +++--- internal/ingress/controller/template/template.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/ingress/controller/config/config.go b/internal/ingress/controller/config/config.go index bad82b8b0b..3098f5cba1 100644 --- a/internal/ingress/controller/config/config.go +++ b/internal/ingress/controller/config/config.go @@ -734,9 +734,9 @@ type Configuration struct { // simultaneous connections. GlobalRateLimitMemcachedPoolSize int `json:"global-rate-limit-memcached-pool-size"` - // GlobalRateLimitStatucCode determines the HTTP status code to return + // GlobalRateLimitStatusCode determines the HTTP status code to return // when limit is exceeding during global rate limiting. - GlobalRateLimitStatucCode int `json:"global-rate-limit-status-code"` + GlobalRateLimitStatusCode int `json:"global-rate-limit-status-code"` // DebugConnections Enables debugging log for selected client connections // http://nginx.org/en/docs/ngx_core_module.html#debug_connection @@ -909,7 +909,7 @@ func NewDefault() Configuration { GlobalRateLimitMemcachedConnectTimeout: 50, GlobalRateLimitMemcachedMaxIdleTimeout: 10000, GlobalRateLimitMemcachedPoolSize: 50, - GlobalRateLimitStatucCode: 429, + GlobalRateLimitStatusCode: 429, DebugConnections: []string{}, StrictValidatePathType: false, // TODO: This will be true in future releases } diff --git a/internal/ingress/controller/template/template.go b/internal/ingress/controller/template/template.go index 7cd6a06042..c70406cf02 100644 --- a/internal/ingress/controller/template/template.go +++ b/internal/ingress/controller/template/template.go @@ -413,7 +413,7 @@ func configForLua(input interface{}) string { all.Cfg.GlobalRateLimitMemcachedConnectTimeout, all.Cfg.GlobalRateLimitMemcachedMaxIdleTimeout, all.Cfg.GlobalRateLimitMemcachedPoolSize, - all.Cfg.GlobalRateLimitStatucCode, + all.Cfg.GlobalRateLimitStatusCode, ) }