Skip to content

Commit

Permalink
Merge pull request #16771 from justinsb/skip_service_endpoints_test
Browse files Browse the repository at this point in the history
tests: skip "service endpoints using hostNetwork" test across all clouds
  • Loading branch information
k8s-ci-robot authored Aug 25, 2024
2 parents f486a95 + f70fe6b commit 51fb9b6
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions tests/e2e/pkg/tester/skip_regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ func (t *Tester) setSkipRegexFlag() error {

if cluster.Spec.LegacyCloudProvider == "digitalocean" {
skipRegex += "|Services.should.respect.internalTrafficPolicy=Local.Pod.and.Node,.to.Pod"
if k8sVersion.Minor < 32 {
// https://github.com/kubernetes/kubernetes/issues/121018
skipRegex += "|Services.should.function.for.service.endpoints.using.hostNetwork"
}
}

if cluster.Spec.LegacyCloudProvider == "gce" {
Expand Down Expand Up @@ -143,14 +139,6 @@ func (t *Tester) setSkipRegexFlag() error {
}

if cluster.Spec.LegacyCloudProvider == "aws" {
// This test fails on RHEL-based distros because they return fully qualified hostnames yet the k8s node names are not fully qualified.
// Dedicated job testing this: https://testgrid.k8s.io/kops-misc#kops-aws-k28-hostname-bug123255
// ref: https://github.com/kubernetes/kops/issues/16349
// ref: https://github.com/kubernetes/kubernetes/issues/123255
if k8sVersion.Minor < 32 {
skipRegex += "|Services.should.function.for.service.endpoints.using.hostNetwork"
}

if k8sVersion.Minor <= 26 {
// Prow jobs are being migrated to community-owned EKS clusters.
// The e2e.test binaries from older k/k builds dont have new enough aws-sdk-go versions to authenticate from EKS pods.
Expand All @@ -164,6 +152,15 @@ func (t *Tester) setSkipRegexFlag() error {
}
}

// This test fails on RHEL-based distros because they return fully qualified hostnames yet the k8s node names are not fully qualified.
// Dedicated job testing this: https://testgrid.k8s.io/kops-misc#kops-aws-k28-hostname-bug123255
// ref: https://github.com/kubernetes/kops/issues/16349
// ref: https://github.com/kubernetes/kubernetes/issues/123255
// ref: https://github.com/kubernetes/kubernetes/issues/121018
if k8sVersion.Minor < 32 {
skipRegex += "|Services.should.function.for.service.endpoints.using.hostNetwork"
}

if cluster.Spec.CloudConfig != nil && cluster.Spec.CloudConfig.AWSEBSCSIDriver != nil && fi.ValueOf(cluster.Spec.CloudConfig.AWSEBSCSIDriver.Enabled) {
skipRegex += "|In-tree.Volumes.\\[Driver:.aws\\]"
}
Expand Down

0 comments on commit 51fb9b6

Please sign in to comment.