diff --git a/internal/ingress/controller/nginx.go b/internal/ingress/controller/nginx.go index 93ca53fe3..6efdd7201 100644 --- a/internal/ingress/controller/nginx.go +++ b/internal/ingress/controller/nginx.go @@ -452,7 +452,7 @@ Error: %v // 2. write the custom template (the complexity depends on the implementation) // 3. write the configuration file // -// returning nill implies the backend will be reloaded. +// returning nil implies the backend will be reloaded. // if an error is returned means requeue the update func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error { cfg := n.store.GetBackendConfiguration() diff --git a/internal/ingress/types.go b/internal/ingress/types.go index 7653226f1..279a641ab 100644 --- a/internal/ingress/types.go +++ b/internal/ingress/types.go @@ -84,7 +84,7 @@ type Backend struct { SSLPassthrough bool `json:"sslPassthrough"` // Endpoints contains the list of endpoints currently running Endpoints []Endpoint `json:"endpoints,omitempty"` - // StickySessionAffinitySession contains the StickyConfig object with stickness configuration + // StickySessionAffinitySession contains the StickyConfig object with stickyness configuration SessionAffinity SessionAffinityConfig `json:"sessionAffinityConfig"` // Consistent hashing by NGINX variable UpstreamHashBy string `json:"upstream-hash-by,omitempty"`