Commit Graph

7073 Commits (09a2e49a94aeef7162d5874a663aea7930976d2f)

Author SHA1 Message Date
SataQiu a957c83181 fix golint failures on cmd/kubeadm/app 2019-02-13 12:02:28 +08:00
Kubernetes Prow Robot 5c780c8cb1
Merge pull request #73978 from oomichi/golint-e2e-framework-timer
Fix golint failures of test/e2e/framework/timer
2019-02-12 17:29:43 -08:00
Kubernetes Prow Robot e4a8ffc9b5
Merge pull request #73218 from danielqsj/kube-aggregator
fix shellcheck in kube-aggregator
2019-02-12 17:28:54 -08:00
Kenichi Omichi 60ded1d54a Fix golint failures of test/e2e/framework/timer 2019-02-12 21:01:39 +00:00
Kubernetes Prow Robot df7c54fbe4
Merge pull request #73690 from ipuustin/verify-generated-files-remake-2
verify-generated-files-remake.sh: fix issues reported by shellcheck (part 2)
2019-02-12 06:40:50 -08:00
Kubernetes Prow Robot a1539747db
Merge pull request #73926 from alculquicondor/fix/kubelet-app-lint
Fix cmd/kubelet/app lint issues
2019-02-12 00:19:06 -08:00
Kubernetes Prow Robot 0ae81c986a
Merge pull request #67678 from caesarxuchao/remove-storage-versions-flag
Remove storage versions flag
2019-02-11 17:40:27 -08:00
Elijah Oyekunle 805a9e7036 Fixes Golint Errors: staging/src/k8s.io/kube-aggregator (#73369)
* fixed golint errors in staging/src/k8s.io/kube-aggregator

* update openapi

* unexported autoRegisterController
2019-02-11 14:16:05 -08:00
Kubernetes Prow Robot 6912bbb153
Merge pull request #71223 from sttts/sttts-openapi-aggreation-without-clone
openapi-aggregation: speed up merging from 1 sec to 50-100 ms
2019-02-11 10:30:56 -08:00
Aldo Culquicondor 17a635448a Fix cmd/kubelet/app lint issues 2019-02-11 13:18:25 -05:00
Dr. Stefan Schimanski 2393799e2e hack/update-openapi-spec.sh: normalize indention of spec through jq 2019-02-11 13:16:36 +01:00
danielqsj 342dc93187 fix shellcheck in kube-aggregator 2019-02-11 10:30:34 +08:00
Kubernetes Prow Robot e47973bd31
Merge pull request #69086 from bruceauyeung/log-useful-info-instead-of-silent-exit-when-etcd-already-installed
log useful information instead of silent exit without error
2019-02-10 18:14:26 -08:00
Ismo Puustinen f1cb820b16 Remove verify-generated-files-remake.sh from shellcheck failures. 2019-02-09 22:41:53 +02:00
Ismo Puustinen b06533af65 verify-generated-files-remake: quote return value.
Fix a shellcheck error by quoting a return value properly.
2019-02-09 22:41:53 +02:00
Ismo Puustinen c23c83724c verify-generated-files-remake.sh: use strings instead of arrays.
Move away from arrays to strings to fix several shellcheck-reported
issues. It isn't useful to expand the found files into arrays, because
only things that are checked are if the array is empty or the contents
of the first array item.

Fix also a shellcheck issue about using a literal string as regexp
match. It appears that the original reason for using a regexp was to
avoid specifying the directory in which the script is run. However, due
to the need of calling 'make generated_files', the directory is fixed
anyway, and the regexp can be left out.

Testing the change can be done with the following script which emulates
the different cases which the script can see. In the output the variable
'X' is the array and 'Z' is the string.

  #!/bin/bash

  set -o errexit
  set -o nounset
  set -o pipefail

  function find_genfiles() {
      find .                         \
          \(                         \
            -not \(                  \
              \(                     \
                  -path ./_\* -o     \
                  -path ./.\*        \
              \) -prune              \
            \)                       \
          \) -name "$1"
  }

  # $1 = filename pattern as in "zz_generated.$1.go"
  # $2 timestamp file
  function newer() {
      find_genfiles "$1" | while read -r F; do
          if [[ "${F}" -nt "$2" ]]; then
              echo "${F}"
          fi
      done
  }

  STAMP=stamp

  mkdir -p xxx
  touch xxx/foobar

  touch "${STAMP}"

  mkdir -p foo
  touch foo/foobar

  mkdir -p bar
  touch bar/foobar

  # two newer files

  X=($(newer foobar "${STAMP}"))
  if [[ "${#X[*]}" != 0 ]]; then
      echo "X1:"
      echo "  ${X[*]:-(none)}"
  fi

  Z="$(newer foobar "${STAMP}")"
  if [[ -n "$Z" ]]; then
      echo "Z1:"
      echo "  ${Z}" | tr '\n' ' '
      echo ""
  fi

  # no newer files

  touch "${STAMP}"

  X=($(newer foobar "${STAMP}"))
  if [[ "${#X[*]}" != 0 ]]; then
      echo "X2:"
      echo "  ${X[*]:-(none)}"
  fi

  Z="$(newer foobar "${STAMP}")"
  if [[ -n "$Z" ]]; then
      echo "Z2:"
      echo "  ${Z}" | tr '\n' ' '
      echo ""
  fi

  # one newer file, name matches

  touch "${STAMP}"
  touch bar/foobar

  X=($(newer foobar "${STAMP}"))
  if [[ "${#X[@]}" != 1 || ! ( "${X[0]}" =~ "bar/foobar" ) ]]; then
      echo "X3:"
      echo "  ${X[*]:-(none)}"
  fi

  Z="$(newer foobar "${STAMP}")"
  if [[ -z "${Z}" || ${Z} != "./bar/foobar" ]]; then
      echo "Z3:"
      echo "  ${Z:-(none)}" | tr '\n' ' '
      echo ""
  fi

  # one newer file, name doesn't match

  touch "${STAMP}"
  touch foo/foobar

  X=($(newer foobar "${STAMP}"))
  if [[ "${#X[@]}" != 1 || ! ( "${X[0]}" =~ "bar/foobar" ) ]]; then
      echo "X4:"
      echo "  ${X[*]:-(none)}"
  fi

  Z="$(newer foobar "${STAMP}")"
  if [[ -z "${Z}" || ${Z} != "./bar/foobar" ]]; then
      echo "Z4:"
      echo "  ${Z:-(none)}" | tr '\n' ' '
      echo ""
  fi

The expected output from running this script:

X1:
  ./bar/foobar ./foo/foobar
Z1:
  ./bar/foobar ./foo/foobar
X4:
  ./foo/foobar
Z4:
  ./foo/foobar
2019-02-09 22:32:31 +02:00
Ismo Puustinen fefdfc2ad7 verify-generated-files-remake.sh: fix BASH_SOURCE array. 2019-02-09 22:32:31 +02:00
Kubernetes Prow Robot 40a4c1f723
Merge pull request #73854 from RajatVaryani/master
Fix linting in cmd/kubemark package
2019-02-08 22:00:24 -08:00
Kubernetes Prow Robot 2a664f4820
Merge pull request #73213 from danielqsj/nodeapi
fix shellcheck in node-api
2019-02-08 13:14:25 -08:00
Kubernetes Prow Robot b50c643be0
Merge pull request #73540 from rlenferink/patch-5
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Rajat Varyani 17fd66946b Fix linting in cmd/kubemark package 2019-02-08 21:30:34 +05:30
Kubernetes Prow Robot 30397a3d23
Merge pull request #73219 from danielqsj/csi-api
fix shellcheck in csi-api
2019-02-08 06:53:52 -08:00
Kubernetes Prow Robot 999e2e0ce8
Merge pull request #73581 from krzysied/test_KUBE_JUNIT_REPORT_DIR_revert
KUBE_JUNIT_REPORT_DIR fixes
2019-02-08 02:39:14 -08:00
Kubernetes Prow Robot 92db54cc53
Merge pull request #73335 from oomichi/cleanup-hack
Add check-file-in-alphabetical-order for cleanup
2019-02-07 18:24:41 -08:00
Kubernetes Prow Robot 22b74dc67b
Merge pull request #73768 from mattjmcnaughton/mattjmcnaughton/support-what-subdirs-for-test
Support make test WHAT=path/to/pkg/...
2019-02-07 09:10:17 -08:00
danielqsj 81b7407557 fix shellcheck in csi-api 2019-02-07 22:08:28 +08:00
danielqsj 253c7aa0ca fix shellcheck in node-api 2019-02-07 21:58:11 +08:00
Krzysztof Siedlecki c20262eb33 adding FULL_LOG flag 2019-02-07 12:04:43 +01:00
Krzysztof Siedlecki f461759dc9 adding go-junit-report install 2019-02-07 11:48:22 +01:00
Benjamin Elder bccf95b10c add bentheelder to reviewers 2019-02-06 16:26:51 -08:00
Kubernetes Prow Robot fb4bbc72f8
Merge pull request #73257 from ds-ms/shellCheckFailures
Shellcheck failures print-workspace-status.sh, run-in-gopath.sh
2019-02-06 13:23:39 -08:00
Kubernetes Prow Robot fcb0d60d4c
Merge pull request #73716 from deads2k/delete-all
add --all-namespaces to kubectl delete
2019-02-06 01:20:15 -08:00
ds-ms b88195c575 Fixes shellcheck failures run-in-gopath.sh, test-go.sh
Signed-off-by: ds-ms <desattir@microsoft.com>

fixes shellcheck in hack/print-workspace-status.sh, /hack/test-integration.sh

Signed-off-by: ds-ms <desattir@microsoft.com>

reverting test-go.sh test-integration.sh

Signed-off-by: ds-ms <desattir@microsoft.com>

Removing export

Signed-off-by: ds-ms <desattir@microsoft.com>
2019-02-06 11:32:14 +05:30
Kubernetes Prow Robot 04cc8f67fb
Merge pull request #73740 from krzysied/prettybench_vendor
Adding prettybench and go-junit-report to the vendor
2019-02-05 17:27:13 -08:00
mattjmcnaughton 2d3ad78cf9 Support make test WHAT=path/to/pkg/...
In 99cdc069e2, we added a check for
whether the directory the user was attempting to test existed or not.
However, adding this check prevented us from running `make test
WHAT=./path/to/pkg/...`, because we believed that `./path/to/pkg/...`
wasn't a valid path to a directory.

Fix this by stripping `/...` before checking whether the directory
exists.
2019-02-05 18:57:02 -05:00
David Eads 66b1f5ba67 add --all-namespaces to 2019-02-05 13:37:14 -05:00
Krzysztof Siedlecki 4384845ec5 installing github.com/jstemmer/go-junit-report 2019-02-05 14:54:01 +01:00
Krzysztof Siedlecki 491c000eeb installing github.com/cespare/prettybench 2019-02-05 14:54:01 +01:00
Krzysztof Siedlecki 6c1a842248 adding prettybench and go-junit-report to vendor 2019-02-05 14:54:01 +01:00
Davanum Srinivas 0f2c948df7
Run verify generated files remake in a tmp directory
We already do this in hack/verify-generated-files.sh so we should do it
in verify-generated-files-remake.sh as well.

The idea is that any local changes made because of code generation
should not persist beyond the current run of the script.

Change-Id: I7af176773ae16c393dc2b46c006595243c9fa05b
2019-02-04 20:14:03 -05:00
Roy Lenferink 478880d232 Adding link to docs to godep-save.sh as well 2019-02-04 22:33:12 +01:00
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Kubernetes Prow Robot 1b741f4c77
Merge pull request #73246 from danielqsj/code-generator
fix shellcheck in code-generator
2019-01-31 21:58:21 -08:00
Kubernetes Prow Robot 85f1205efa
Merge pull request #73464 from ipuustin/verify-generated-files-remake
verify-generated-files-remake.sh: fix issues reported by shellcheck.
2019-01-31 13:00:04 -08:00
Kubernetes Prow Robot 3b02f17b35
Merge pull request #73477 from liggitt/storage-media-type
Allow control over media-type
2019-01-30 22:03:24 -08:00
Kubernetes Prow Robot 1f7e9fd9a2
Merge pull request #73488 from andrewsykim/replace-utils-file
Replace pkg/util/file with k8s.io/utils/path
2019-01-30 17:50:16 -08:00
Chao Xu a76c266693 don't run test-update-storage-objects.sh 2019-01-30 13:28:48 -08:00
Daniel (Shijun) Qian 5a1b78ca0c
Merge branch 'master' into code-generator 2019-01-30 22:09:26 +08:00
Kubernetes Prow Robot dcdd114d0a
Merge pull request #73252 from danielqsj/apie
fix shellcheck in k8s.io/apiextensions-apiserver
2019-01-30 04:06:36 -08:00
Kubernetes Prow Robot 529785e355
Merge pull request #73210 from danielqsj/sample
fix shellcheck pass in sample-apiserver
2019-01-30 00:57:00 -08:00