Correct typo (#2238)

* correct spelling

* correct typo
This commit is contained in:
fqsghostcloud 2018-03-22 19:14:06 +08:00 committed by Manuel Alejandro de Brito Fontes
parent 8575769781
commit 4b9cb90f30
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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"`