kubernetes/test/e2e/framework
Kubernetes Submit Queue 90a6a4f1f8 Merge pull request #53569 from leblancd/v6_e2e_ext_ip
Automatic merge from submit-queue (batch tested with PRs 53000, 52870, 53569). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fallback to internal addrs in e2e tests when no external addrs available

This change modifies the way that config.NodeIP is selected at the
start of e2e Networking tests such that if no external addresses are
available from the cloud provider (e.g. either no cloud provider being
used [baremetal or VMs], or the provider doesn't have external IPs
configured), then one of the internal addresses is used.

Without this change, the e2e service-related Networking tests will always
panic when config.ExternalAddrs[0] is accessed and the slice is empty.

This change eliminates the panic, and in some setups, the fallback choice
of using an internal address will provide the necessary connectivity
for the e2e Networking tests to access each node.

fixes #53568



**What this PR does / why we need it**:
This change modifies the way that config.NodeIP is selected at the
start of e2e Networking tests such that if no external addresses are
available from the cloud provider (e.g. either no cloud provider being
used [baremetal or VMs], or the provider doesn't have external IPs
configured), then one of the internal addresses is used.

Without this change, the e2e service-related Networking tests will always
panic when no cloud provider is being used, or the cloud provider does
not have external addresses configured.

This change eliminates the panic, and in some setups, the fallback choice
of using an internal address will provide the necessary connectivity
for the e2e Networking tests to access each node.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53568

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-10-26 14:18:29 -07:00
..
ginkgowrapper update BUILD files 2017-10-15 18:18:13 -07:00
metrics update BUILD files 2017-10-15 18:18:13 -07:00
authorizer_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
BUILD Move deployment e2e test for rollback with no revision to integration 2017-10-23 18:58:05 -07:00
cleanup.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
deployment_util.go Move deployment e2e test for rollback with no revision to integration 2017-10-23 18:58:05 -07:00
exec_util.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
federation_util.go Add the ability to customize federation system namespace in e2e turn up scripts. 2017-03-24 14:42:50 -07:00
firewall_util.go Remove some helpers associated with ESIPP. 2017-08-09 14:25:08 +08:00
framework.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
get-kubemark-resource-usage.go add grabbing CA metrics in e2e tests 2017-08-10 11:22:45 +02:00
google_compute.go Tolerate a missing MasterName (for GKE) 2017-07-18 09:55:15 -07:00
gpu_util.go Modified test/e2e_node/gpu-device-plugin.go to make sure it passes. 2017-09-22 20:21:26 +02:00
ingress_utils.go add e2e test for syncing endpoints to NEG 2017-10-23 17:21:25 -07:00
jobs_util.go Job failure policy support in JobController 2017-09-03 12:07:12 +02:00
kubelet_stats.go Move prometheus metrics for docker operations into dockershim 2017-09-25 10:03:17 -07:00
log_size_monitoring.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
metrics_util.go Increase api latency threshold for cluster-scoped list calls 2017-09-21 13:33:22 +02:00
networking_utils.go Merge pull request #53569 from leblancd/v6_e2e_ext_ip 2017-10-26 14:18:29 -07:00
nodes_util.go use multi-arch busybox for e2e 2017-10-19 10:36:31 +08:00
perf_util.go Report scope in e2e test metrics 2017-09-11 22:13:55 -04:00
pods.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
pv_util.go wait for pod to be fully deleted 2017-10-10 10:58:50 -07:00
rc_util.go Migrate api.Registry to testapi.Groups in tests. 2017-07-17 15:05:38 -07:00
resource_usage_gatherer.go Fix usage a make(struct, len()) followed by append() 2017-07-31 14:43:29 -04:00
rs_util.go add replicaset upgrade test 2017-10-16 12:10:04 -07:00
service_util.go Skip ILB e2e test on GCP if cluster size exceeds limit 2017-10-19 11:42:16 -07:00
size.go log gcloud command error 2017-09-13 11:56:55 +02:00
statefulset_utils.go Merge pull request #51310 from xiangpengzhao/sc-eg 2017-10-18 20:31:15 -07:00
test_context.go Try in-cluster config before using localhost:8080 2017-10-14 19:30:19 -04:00
upgrade_util.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
util.go Merge pull request #54105 from janetkuo/e2e-deploy-inte-label-adopted 2017-10-26 11:13:44 -07:00
volume_util.go Speed up volume tests by reducing pod grace period 2017-10-19 14:19:42 +02:00