• Kubernetes Submit Queue's avatar
    Merge pull request #34153 from zmerlynn/log-dump-optionally-use-kubectl · 6656929b
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    log-dump.sh: Add a LOG_DUMP_USE_KUBECTL mode, refactor
    
    **What this PR does / why we need it**: This refactors log-dump.sh so that it can optionally just use `"kubectl get node"` output, for dumping logs off a cluster that was brought up using something other than kube-up.sh (e.g. kops or kubeadm).
    
    Note that for obvious reasons, if the cluster is fried, it'll probably fail to hit the apiserver and all bets are off, but for the 95% case where you're debugging tests, this is good. To cover the remaining 5%, you could actually squirrel away the relevant external IPs after the e2e.go:Up stage (because we better be able to hit the apiserver then) and fetch them from cache later.
    
    **Special notes for your reviewer**: Sorry for so many changes. :)
    6656929b
Name
Last commit
Last update
..
addons Loading commit data...
aws Loading commit data...
azure Loading commit data...
azure-legacy Loading commit data...
centos Loading commit data...
gce Loading commit data...
gke Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
lib Loading commit data...
libvirt-coreos Loading commit data...
local Loading commit data...
mesos/docker Loading commit data...
openstack-heat Loading commit data...
ovirt Loading commit data...
photon-controller Loading commit data...
rackspace Loading commit data...
saltbase Loading commit data...
skeleton Loading commit data...
ubuntu Loading commit data...
vagrant Loading commit data...
vsphere Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-push.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubectl.sh Loading commit data...
log-dump.sh Loading commit data...
options.md Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...