Skip to content

Commit

Permalink
Merge pull request #842 from freehan/test-fix
Browse files Browse the repository at this point in the history
fix a typo
  • Loading branch information
k8s-ci-robot committed Sep 4, 2019
2 parents 55824fc + ddbae6c commit 6eae189
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pkg/e2e/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ import (

const (
echoheadersImage = "gcr.io/k8s-ingress-image-push/ingress-gce-echo-amd64:master"

// TODO: remove beta topology key once it is GAed
zoneBetaTopologyKey = "failure-domain.beta.kubernetes.io/zone"
zoneGATopologyKey = "failure-domain.beta.kubernetes.io/zone"
)

// NoopModify does not modify the input deployment
Expand All @@ -56,20 +52,12 @@ func SpreadPodAcrossZones(deployment *apps.Deployment) {
Weight: int32(1),
PodAffinityTerm: v1.PodAffinityTerm{
LabelSelector: metav1.SetAsLabelSelector(labels.Set(podLabels)),
TopologyKey: zoneBetaTopologyKey,
},
},
{
Weight: int32(2),
PodAffinityTerm: v1.PodAffinityTerm{
LabelSelector: metav1.SetAsLabelSelector(labels.Set(podLabels)),
TopologyKey: zoneGATopologyKey,
TopologyKey: v1.LabelZoneFailureDomain,
},
},
},
},
}

}

// CreateEchoService creates the pod and service serving echoheaders
Expand Down

0 comments on commit 6eae189

Please sign in to comment.