Commit Graph

75856 Commits

Author SHA1 Message Date
jennybuckley
2474c48294 run godep-save 2019-03-04 16:21:34 -08:00
Aaron Crickenberger
feb0937fa4
Merge pull request #74902 from liggitt/regen-proto
Update generated protobuf files
2019-03-04 15:52:03 -08:00
Lubomir I. Ivanov
fe2301f17d conformace/run_e2e.sh: pass shellcheck and autodetect ginkgo nodes
- for ginkgo parallel mode pass -p to autodetect ginkgo nodes.
- disable parallel mode by default (false).
- use provider "skeleton" instead of "local".
- make run_e2e.sh pass shellcheck.
2019-03-05 01:32:57 +02:00
Zhen Wang
87faa00a14 Fix NPD E2E test on clusters with Ubuntu nodes 2019-03-04 15:26:21 -08:00
danielqsj
ae7c1187bf fix init pattern 2019-03-05 07:21:55 +08:00
danielqsj
5cf1950ef8 Fix golint in test/e2e/instrumentation/logging 2019-03-05 07:10:39 +08:00
danielqsj
873fbf9112 Fix golint in test/e2e/instrumentation/monitoring 2019-03-05 07:07:06 +08:00
Yassine TIJANI
5f7c60859c explicit the restartPolicy on the dockershim
This change explicits the restart policy, as on some docker version
(e.g. 11.07-ce) the default for this field is "". which seems to be not
respected by dockerd
2019-03-04 23:11:20 +01:00
Joe Betz
add956f00f Revert "Perform GCE log rotation check every 5 minutes"
This reverts commit 1ba05d51a6.
2019-03-04 14:10:20 -08:00
jennybuckley
bd984960c1 godeps 2019-03-04 14:10:14 -08:00
Kubernetes Prow Robot
79e8a29544
Merge pull request #74852 from dims/expand-reviewers-approvers-add-label
Expand reviewers/approvers and add labels for conformance image
2019-03-04 13:25:50 -08:00
Kubernetes Prow Robot
dddb13c690
Merge pull request #74711 from SataQiu/fix-golint-2019022802
Fix golint failures in staging/src/k8s.io/apiserver/pkg/storage/errors, staging/src/k8s.io/apiserver/pkg/storage/etcd
2019-03-04 13:25:38 -08:00
Kubernetes Prow Robot
5756eea804
Merge pull request #74700 from SataQiu/fix-golint-20190228
Fix golint failures in test/e2e/instrumentation, test/e2e_node/environment
2019-03-04 13:25:26 -08:00
Ismo Puustinen
f7e1058c98 shellcheck failures: remove hack/lib/util.sh 2019-03-04 23:23:20 +02:00
Ismo Puustinen
1e34d9df7d hack/lib/util.sh: replace sed with bash replace.
Test script:

  #!/bin/bash

  rev1="foo"
  rev2="\"bar\""
  rev3="'bar'"

  newrev1="${rev1//[\'\"]}"
  newrev2="${rev2//[\'\"]}"
  newrev3="${rev3//[\'\"]}"

  oldrev1=$(echo "${rev1}" | sed "s/['\"]//g")
  oldrev2=$(echo "${rev2}" | sed "s/['\"]//g")
  oldrev3=$(echo "${rev3}" | sed "s/['\"]//g")

  echo "$newrev1 vs. $oldrev1"
  echo "$newrev2 vs. $oldrev2"
  echo "$newrev3 vs. $oldrev3"

expected output:

  foo vs. foo
  bar vs. bar
  bar vs. bar
2019-03-04 23:23:20 +02:00
Ismo Puustinen
0078fce5bd hack/lib/util.sh: don't implicitly convert "find" results into array.
Also fix array item comparison. Test script for the comparison change:

  #!/bin/bash

  staging_apis=(extensions/v1beta1 extensions/v1 extensions/v1alpha)
  group_versions=(v1 extensions/v1beta1 extensions/v1 extensions.k8s.io/v1)

  for group_version in ${group_versions[@]}; do
    # original code
    if [[ " ${staging_apis[@]} " =~ " ${group_version/.*k8s.io/} " ]]; then
      echo "orig: vendor/k8s.io/api/${group_version/.*k8s.io/}"
    fi
    # new code
    for api in ${staging_apis[@]}; do
      if [[ "${api}" = "${group_version/.*k8s.io/}" ]]; then
        echo "new: vendor/k8s.io/api/${group_version/.*k8s.io/}"
      fi
    done
  done

Expected output:

  orig: vendor/k8s.io/api/extensions/v1beta1
  new: vendor/k8s.io/api/extensions/v1beta1
  orig: vendor/k8s.io/api/extensions/v1
  new: vendor/k8s.io/api/extensions/v1
  orig: vendor/k8s.io/api/extensions/v1
  new: vendor/k8s.io/api/extensions/v1
2019-03-04 23:23:20 +02:00
Ismo Puustinen
edd806330a hack/lib/util.sh: mark variables to be used in a sourcing context.
"Decorate" the variables with a no-op function to prevent shellcheck
from complaining that they are not being used. This method provides
visibility to which variables are supposed to be used in a sourcing
script compared to just disabling the warning.
2019-03-04 23:23:20 +02:00
Ismo Puustinen
24b5c67723 hack/lib/util.sh: various shellcheck-reported cleanups.
Use "command -v" instead of "which".  Also remove the redirections,
since "command -v" does not return an error message if the command isn't
found. Also use "read -r" instead of "read" and quote variables
properly. Do some error handling if "pushd" or "popd" fail. Read values
properly into arrays.

However, one shellcheck error is ignored in trap mechanism.  The logic
in trap_add function requires the trap command to be expanded when run.
Just storing the variable into trap doesn't work. Add a shellcheck
disable directive to ignore the error.

An alternative to ignoring could be tricking shellcheck with:

  trap ''"${new_cmd}" "${trap_add_name}"
2019-03-04 23:18:54 +02:00
Bobby (Babak) Salamat
a1b8777d42 Revert "Merge pull request #73934 from bsalamat/num_cpu"
This reverts commit cfe4ca8012, reversing
changes made to f16035600a.
2019-03-04 13:14:25 -08:00
Jordan Liggitt
f6f1d5abf5 Update generated protobuf files
Change-Id: Ie01ce38d25d05e90d79ddc6e80584a21cf7ff299
2019-03-04 20:14:55 +00:00
Kubernetes Prow Robot
d0c3b70802
Merge pull request #74804 from sttts/sttts-crd-validation-nullable
apiextensions: add nullable support to OpenAPI v3 validations
2019-03-04 10:43:30 -08:00
Nikhita Raghunath
5102b27660 publishing: add component-base as dependency for 1.14 branches 2019-03-04 23:52:35 +05:30
Hemant Kumar
2567d1b5dd Always make CSI driver attachable when checking for pod info
Fixes https://github.com/kubernetes/kubernetes/issues/74724
2019-03-04 12:35:16 -05:00
Kubernetes Prow Robot
8770e0cd39
Merge pull request #74664 from dims/prepare-publishing-bot-for-1.14-branch
Add 1.14 branches for the publishing-bot
2019-03-04 09:01:21 -08:00
Davanum Srinivas
5616e23b75
Add 1.14 branches for the publishing-bot
Change-Id: Id34d1f12361e587e02f7dba077a9600618737878
2019-03-04 08:43:41 -05:00
Kubernetes Prow Robot
b1d4d40679
Merge pull request #74668 from sttts/sttts-kube-apiserver-endpoints-when-ready
kube-apiserver: don't create endpoints before being ready
2019-03-04 01:57:41 -08:00
Kubernetes Prow Robot
3b4a9e4e71
Merge pull request #74869 from neolit123/fix-reset-fetch
kubeadm-reset: fetch init config only if client is non-nil
2019-03-04 00:25:57 -08:00
Claudiu Belu
fd03127cac tests: Adds retry for dig for ExternalName test
The network connection might not yet be established by the time the
container starts, causing the dig command to fail.

Retrying the dig command will solve this issue. This approach is similar
to the other DNS Conformance tests.
2019-03-03 21:28:47 -08:00
Claudiu Belu
d5f2ec4b6a tests: Adds TODO for Windows only test
It has been suggested to replace the "e2eteam/busybox:1.29" image
used in the test "should be able to pull image from docker hub [NodeConformance]"
with a nanoserver image manifest list.

Adds a TODO for it.
2019-03-03 21:11:24 -08:00
Jeff Grafton
e7888f2cf0 bazel: add a small TODO comment 2019-03-03 21:09:23 -08:00
Jeff Grafton
84a5a176a5 bazel: add target for multi-arch docker tags on server images
These aren't used in the images saved in the release tars, but could be
used for images that are pushed to gcr.io.
2019-03-03 21:09:23 -08:00
Jeff Grafton
c98b3edb88 bazel: make conformance and hyperkube images multiarch 2019-03-03 21:09:22 -08:00
Niko Pen
32f4bf6edf
cherry picks usage info link 2019-03-04 03:20:41 +00:00
Lubomir I. Ivanov
269a07c077 kubeadm-reset: fetch init config only if client is non-nil 2019-03-04 04:14:51 +02:00
Kubernetes Prow Robot
37f0138278
Merge pull request #71874 from neolit123/fix-kubeconfig-path
kubeadm: use DefValue for the --kubeconfig flag
2019-03-03 17:28:44 -08:00
Claudiu Belu
5edc073122 tests: getRestartDelay waits for the next Terminated state
Kubelet might miss reporting the new Running state when restarting
a pod after its backoff period expired, and thus, the pod will
continue to remain in CrashLoopBackOff state, causing the
"should cap back-off at MaxContainerBackOff" and
"should have their auto-restart back-off timer reset on image update"
tests to fail, since they're waiting the Pods to enter a Running state.

Waiting for the next Terminated state instead of the next Running state
is more reliable.

Note that this adds 5 seconds to the restart delay due to the fact that
the Container runs for 5 seconds (it's command is "sleep 5"), but it is
within the test's expectations.
2019-03-03 08:35:51 -08:00
Kubernetes Prow Robot
1f6ea0455b
Merge pull request #74780 from pytimer/kubeadm-reduce
kubeadm: reduce some functions number of parameters
2019-03-03 04:23:24 -08:00
Kubernetes Prow Robot
d62de16fbe
Merge pull request #74857 from andyzhangx/azure-disk-lib
make some functions in azure cloud provider as public
2019-03-03 01:36:18 -08:00
pytimer
f600348006 kubeadm: reduce some functions number of parameters 2019-03-03 15:16:19 +08:00
Kubernetes Prow Robot
c54978a6cf
Merge pull request #74806 from mxinden/increase-bucket-resolution
src/k8s.io/apiserver: Increase cert expiration histogram resolution
2019-03-02 21:13:03 -08:00
Xing Yang
3260d3a7b5 Add generated files 2019-03-02 18:40:23 -08:00
Xing Yang
ba4ccfa8b1 Add review comments in the APIs 2019-03-02 18:40:22 -08:00
Kubernetes Prow Robot
125410aedc
Merge pull request #74834 from fabriziopandini/join-phases-texts
Improve join phases labels and help messages
2019-03-02 18:16:12 -08:00
andyzhangx
38f0908597 make funcs in azure cloud provider as public 2019-03-03 01:58:59 +00:00
Aaron Crickenberger
3b3c977fc7
Update test/cmd/legacy-script.sh
Co-Authored-By: runyontr <runyontr@gmail.com>
2019-03-02 20:41:42 -05:00
Kubernetes Prow Robot
79ce30cc6a
Merge pull request #74851 from dims/apparently-conformance-tests-have-run-run-serially
Apparently conformance tests have to run serially
2019-03-02 12:59:11 -08:00
fabriziopandini
a3ed9f0c2c join-phases-texts 2019-03-02 21:52:04 +01:00
Xing Yang
743d3a26e9 Add generated files 2019-03-02 12:31:05 -08:00
Xing Yang
bb45b8ee34 Make CSINodeInfo and CSIDriver Core APIs
This PR is the first step to transition CSINodeInfo and CSIDriver
CRD's to in-tree APIs. It adds them to the existing API group
“storage.k8s.io” as core storage APIs.
2019-03-02 12:31:05 -08:00
Kubernetes Prow Robot
e1b79abfec
Merge pull request #74831 from fabriziopandini/remove-discovery-flags
Remove discovery flags from kubeadm join phases (when possible)
2019-03-02 11:16:12 -08:00