Merge pull request #4227 from aledbf/lint

Fix misspelled and e2e check
This commit is contained in:
Kubernetes Prow Robot 2019-06-24 21:30:34 -07:00 committed by GitHub
commit c8cbf0db29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View file

@ -58,7 +58,7 @@ func (lint DeploymentLint) Link() string {
return ""
}
// GetDeploymentLints retuns all of the lints for ingresses
// GetDeploymentLints returns all of the lints for ingresses
func GetDeploymentLints() []DeploymentLint {
return []DeploymentLint{
removedFlag("sort-backends", 3655, "0.22.0"),

View file

@ -58,7 +58,7 @@ func (lint IngressLint) Version() string {
return lint.version
}
// GetIngressLints retuns all of the lints for ingresses
// GetIngressLints returns all of the lints for ingresses
func GetIngressLints() []IngressLint {
return []IngressLint{
removedAnnotation("add-base-url", 3174, "0.22.0"),

View file

@ -60,7 +60,7 @@ func printOrError(s string, e error) error {
return nil
}
// ParseVersionString returns the major, minor, and patch numbers of a verison string
// ParseVersionString returns the major, minor, and patch numbers of a version string
func ParseVersionString(v string) (int, int, int, error) {
parts := versionRegex.FindStringSubmatch(v)

View file

@ -57,7 +57,7 @@ import (
"k8s.io/ingress-nginx/internal/k8s"
)
// IngressFilterFunc decides if an Ingress should be ommited or not
// IngressFilterFunc decides if an Ingress should be omitted or not
type IngressFilterFunc func(*ingress.Ingress) bool
// Storer is the interface that wraps the required methods to gather information

View file

@ -76,6 +76,7 @@ var _ = framework.IngressNginxDescribe("Debug Tool", func() {
getCmd := "/dbg backends get " + backends[0]
output, err = f.ExecIngressPod(getCmd)
Expect(err).Should(BeNil())
var f map[string]interface{}
unmarshalErr := json.Unmarshal([]byte(output), &f)