Skip to content

Commit

Permalink
Fixed e2e tests (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
diptadas authored and tamalsaha committed Feb 12, 2018
1 parent c18f41e commit 3d8f3c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apis/voyager/v1beta1/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

const (
IngressKey = "ingress.kubernetes.io"
EngressKey = "ingress.appscode.com"

APISchema = EngressKey + "/" + "api-schema" // APISchema = {APIGroup}/{APIVersion}
Expand Down
4 changes: 2 additions & 2 deletions apis/voyager/v1beta1/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ func (r Ingress) HasChanged(o Ingress) (bool, error) {

ra := map[string]string{}
for k, v := range r.Annotations {
if strings.HasPrefix(k, EngressKey+"/") || strings.HasPrefix(k, IngressKey+"/") || k == ingressClassAnnotationKey {
if strings.HasPrefix(k, EngressKey+"/") || k == ingressClassAnnotationKey {
ra[k] = v
}
}
oa := map[string]string{}
for k, v := range o.Annotations {
if strings.HasPrefix(k, EngressKey+"/") || strings.HasPrefix(k, IngressKey+"/") || k == ingressClassAnnotationKey {
if strings.HasPrefix(k, EngressKey+"/") || k == ingressClassAnnotationKey {
oa[k] = v
}
}
Expand Down

0 comments on commit 3d8f3c6

Please sign in to comment.