From 4b9cb90f30f6140c83c2b7bfade5194e84bc26dd Mon Sep 17 00:00:00 2001 From: fqsghostcloud Date: Thu, 22 Mar 2018 19:14:06 +0800 Subject: [PATCH] Correct typo (#2238) * correct spelling * correct typo --- internal/ingress/controller/nginx.go | 2 +- internal/ingress/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"`