Merge pull request #546 from Collaborne/pr/typos-does-not-contains

Fix a couple of 'does not contains' typos
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-04-03 09:28:14 -03:00 committed by GitHub
commit 403cf5e989
5 changed files with 8 additions and 8 deletions

View file

@ -125,7 +125,7 @@ func dumpSecret(filename string, secret *api.Secret) error {
val, ok := secret.Data["auth"]
if !ok {
return ing_errors.LocationDenied{
Reason: errors.Errorf("the secret %v does not contains a key with value auth", secret.Name),
Reason: errors.Errorf("the secret %v does not contain a key with value auth", secret.Name),
}
}

View file

@ -65,7 +65,7 @@ func (a ipwhitelist) Parse(ing *extensions.Ingress) (interface{}, error) {
ipnets, err := sets.ParseIPNets(values...)
if err != nil {
return &SourceRange{CIDR: defBackend.WhitelistSourceRange}, ing_errors.LocationDenied{
Reason: errors.Wrap(err, "the annotation does not contains a valid IP address or network"),
Reason: errors.Wrap(err, "the annotation does not contain a valid IP address or network"),
}
}

View file

@ -139,7 +139,7 @@ func (e *annotationExtractor) ContainsCertificateAuth(ing *extensions.Ingress) b
func (e *annotationExtractor) CertificateAuthSecret(ing *extensions.Ingress) (*api.Secret, error) {
val, _ := parser.GetStringAnnotation("ingress.kubernetes.io/auth-tls-secret", ing)
if val == "" {
return nil, fmt.Errorf("ingress rule %v/%v does not contains the auth-tls-secret annotation", ing.Namespace, ing.Name)
return nil, fmt.Errorf("ingress rule %v/%v does not contain the auth-tls-secret annotation", ing.Namespace, ing.Name)
}
return e.secretResolver.GetSecret(val)

View file

@ -632,7 +632,7 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
if rule.HTTP == nil &&
host != defServerName {
glog.V(3).Infof("ingress rule %v/%v does not contains HTTP rules. using default backend", ing.Namespace, ing.Name)
glog.V(3).Infof("ingress rule %v/%v does not contain HTTP rules, using default backend", ing.Namespace, ing.Name)
continue
}
@ -996,7 +996,7 @@ func (ic *GenericController) createServers(data []interface{},
servers[host].SSLCertificate = cert.PemFileName
servers[host].SSLPemChecksum = cert.PemSHA
} else {
glog.Warningf("ssl certificate %v does not contains a common name for host %v", key, host)
glog.Warningf("ssl certificate %v does not contain a common name for host %v", key, host)
}
} else {
glog.Warningf("ssl certificate \"%v\" does not exist in local store", key)

View file

@ -23,7 +23,7 @@ import (
)
var (
// ErrMissingAnnotations the ingress rule does not contains annotations
// ErrMissingAnnotations the ingress rule does not contain annotations
// This is an error only when annotations are being parsed
ErrMissingAnnotations = errors.New("ingress rule without annotations")
@ -39,7 +39,7 @@ var (
// NewInvalidAnnotationContent returns a new InvalidContent error
func NewInvalidAnnotationContent(name string, val interface{}) error {
return InvalidContent{
Name: fmt.Sprintf("the annotation %v does not contains a valid value (%v)", name, val),
Name: fmt.Sprintf("the annotation %v does not contain a valid value (%v)", name, val),
}
}
@ -76,7 +76,7 @@ func IsLocationDenied(e error) bool {
}
// IsMissingAnnotations checks if the err is an error which
// indicates the ingress does not contains annotations
// indicates the ingress does not contain annotations
func IsMissingAnnotations(e error) bool {
return e == ErrMissingAnnotations
}