Commit Graph

8889 Commits

Author SHA1 Message Date
Stephen Augustus
71008247dc hack: Use zeitgeist instead of cmd/verifydependencies
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-02-22 08:48:02 -05:00
Stephen Augustus
68b9e70f3d hack/tools: Add zeitgeist@e06e277 for verifying external dependencies
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-02-22 08:30:57 -05:00
Kubernetes Prow Robot
0a5e4a0d9b
Merge pull request #99120 from dims/use-golangci-lint-to-find-unused-code
Use golangci-lint to find unused/dead code (Experimental!)
2021-02-20 19:19:42 -08:00
Davanum Srinivas
865fd2f04f
Use golangci-lint to find unused/dead code
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-02-19 12:12:02 -05:00
Maciej Szulik
3dab7462d1
Drop batch/v2alpha1 API 2021-02-12 17:51:12 +01:00
Joakim Roubert
3dd3211c81 Fix shellcheck failures in cluster/gce/gci/configure.sh
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-02-10 19:23:31 +01:00
Kubernetes Prow Robot
0f3aada51e
Merge pull request #90405 from joakimr-axis/joakimr-axis_util.sh
Fix shellcheck warnings/errors in cluster/gce/util.sh
2021-02-10 10:02:16 -08:00
Joakim Roubert
8bf2836e41 Fix remaining shellcheck issues in cluster/gce/util.sh
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-02-10 10:07:45 +01:00
Benjamin Elder
7f1c6740f7 suggest homebrew when bash is too old on macOS 2021-02-09 22:40:01 -08:00
Kubernetes Prow Robot
b87ae556b3
Merge pull request #95865 from joakimr-axis/joakimr-axis_master-helper.sh
Fix shellcheck issues in cluster/gce/gci/master-helper.sh
2021-02-09 17:43:00 -08:00
Kubernetes Prow Robot
d6c26a826a
Merge pull request #95281 from SaiHarshaK/staticcheck_test
fix staticcheck failures for test/e2e and test/integration
2021-02-09 03:40:38 -08:00
Kubernetes Prow Robot
141630d090
Merge pull request #98861 from tonistiigi/non-amd64-cross-compile
avoid hardcoding amd64 specifics on cross compiling
2021-02-09 00:45:53 -08:00
Kubernetes Prow Robot
2b7c61b1bb
Merge pull request #98205 from pacoxu/build/pauses
update pause image to 3.4.1 and also update the change log
2021-02-08 18:20:58 -08:00
Kubernetes Prow Robot
017d4dd832
Merge pull request #98739 from logicalhan/so-stable
Wire up static-analysis so that it executes in the normal 'hack' flow
2021-02-08 15:19:10 -08:00
Tonis Tiigi
fd01467c0c avoid hardcoding amd64 specifics on cross compiling
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-02-07 21:08:00 -08:00
Sai Harsha Kottapalli
a2ef69060a
fix staticcheck failures for test/e2e and test/integration 2021-02-07 23:47:23 +05:30
Han Kang
db107b190c remove the rest of the bazel test wiring for metrics stability 2021-02-05 10:48:48 -08:00
pacoxu
0c152cbbbe update pause to 3.4.1 for tests(e2e)
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-05 21:32:53 +08:00
Han Kang
73d797d474 Wire up static-analysis so that it executes in the normal 'hack' flow 2021-02-04 18:48:03 -08:00
Kubernetes Prow Robot
81d8ccfa8e
Merge pull request #97224 from tanjing2020/fix_SA2002
fix staticcheck failures on vendor/k8s.io/apiserver/pkg/endpoints
2021-02-04 13:23:03 -08:00
Kubernetes Prow Robot
2d9e9290e7
Merge pull request #98508 from tonistiigi/arm64-cross
enable cross-compile CC config for non-amd64
2021-02-02 18:00:28 -08:00
Kubernetes Prow Robot
ee2b7a5049
Merge pull request #98049 from pacoxu/enhancements/redir-links
fix all keps links 404 for kep folder migration
2021-02-01 21:48:28 -08:00
Kubernetes Prow Robot
e161051c83
Merge pull request #98668 from liggitt/gotestsum
Install gotestsum if needed for junit results
2021-02-01 14:52:36 -08:00
Jordan Liggitt
031e1c562c Install gotestsum if needed for junit results 2021-02-01 12:16:07 -05:00
Kubernetes Prow Robot
101cdbf932
Merge pull request #97295 from tiloso/staticcheck-test-integration
Fix staticcheck in test/integration/{examples,framework}
2021-02-01 04:49:48 -08:00
pacoxu
a10bdfed09 fix all keps links 404 for kep folder migration
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-01 19:41:59 +08:00
pacoxu
8811275ea4 update pause image 3.4.1 for hack testdatas only
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-02-01 15:09:25 +08:00
Kubernetes Prow Robot
081f68d685
Merge pull request #97999 from llhuii/hack-version-script-fix-err-to-stdout
hack/lib/version.sh: fix error log to stderr
2021-01-31 08:39:48 -08:00
llhuii
36aa8a24ce hack/lib/version.sh: fix error log to stderr
Since this invalid Semantic Version messages redirecting to stdout
will be captured by line 790 at hack/lib/golang.sh:
`goldflags="${GOLDFLAGS=-s -w -buildid=} $(kube::version::ldflags)"`

This happens when only no valid tag exists in repo
2021-01-31 00:40:53 +08:00
tanjing2020
c38a06bca6 fix staticcheck failures on vendor/k8s.io/apiserver/pkg/endpoints 2021-01-29 11:39:25 +08:00
Kubernetes Prow Robot
d7cb340bc6
Merge pull request #83268 from odinuge/e2e_node_timeout
Add timeout config for node_e2e tests
2021-01-28 19:33:40 -08:00
Kubernetes Prow Robot
125a5f10a6
Merge pull request #96599 from tanjing2020/master
fix staticcheck:pkg/volume/testing
2021-01-28 18:43:40 -08:00
Davanum Srinivas
02eaf0f23d
remove references to golint in hack/tools
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-28 15:43:12 -05:00
Davanum Srinivas
8cec5fbd28
Remove golint based verifications
After a couple years of seeing changes spawned from this issue, I don't think this is a good use of contributors' or reviewers' time. golint is very opinionated about:

exported type and function names, leading to PRs attempting to change exported things people use downstream
missing documentation on interface implementation functions, which leads to not-very-useful copy/paste of interface godoc
the govet and staticcheck verify jobs are much more useful since they catch correctness issues

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-28 15:43:09 -05:00
Tonis Tiigi
f19f22b43e enable cross-compile CC config for non-amd64
Currently target CC can only be set if the host platform
is linux/amd64 . If target is already set in the environment
it is always safe to use it and enable cgo.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-01-28 07:11:04 -08:00
Li Bo
bb150cdd4f change minimum bash version to 4.2 2021-01-26 20:12:58 +08:00
Tim Hockin
33ad2fe019 Build: Don't find into _name dirs
This is a no-op now that _examples is renamed.
2021-01-25 10:20:49 -08:00
Tim Hockin
876c9f0d8c Rename _examples to examples
The alternative to this would be to special-case code-generator.  Since
it legit wants codegen, it seems wrong to make it be _examples (which tools
should ignore).

Make examples an "internal module" so the main go.mod for
k8s.io/code-generator does not get too polluted.
2021-01-25 10:20:46 -08:00
Tim Hockin
1b07b0d648 Fix bug in golint script when no files
The script would get a 1 return code from grep when there are no files
in a directory, after filtering generated filenames.  This would cause
the script to exit unexpectedly.
2021-01-25 10:15:59 -08:00
Tim Hockin
105e8f8467 Rename *-hack-tools.sh -> *-internal-modules.sh
Prep to add more such modules
2021-01-25 10:15:59 -08:00
Tim Hockin
3aa319c894 Don't generate LICENSES for hack/tools 2021-01-25 10:15:59 -08:00
Tim Hockin
91c401c964 Update-vendor: canonicalize pwd 2021-01-25 10:15:59 -08:00
Tim Hockin
187def4d4f Make: Retool how we cache go dirs
Now we can use /dev/null as an argument when running tools manually
2021-01-25 10:15:59 -08:00
Tim Hockin
ee170145b2 Make: prefix magic go-deps variables with GODEPS
This makes them easier to see and find.

Driving towards `make --warn-undefined-variables`.
2021-01-25 10:15:58 -08:00
Kubernetes Prow Robot
f5bb2c19b9
Merge pull request #97882 from ialidzhikov/staticcheck/x509
Fix staticcheck in staging/src/k8s.io/apiserver/pkg/authentication/request/x509
2021-01-25 09:26:54 -08:00
Kubernetes Prow Robot
bfe42562a1
Merge pull request #98309 from dims/ensure-bash-version-at-least-5.x
Ensure bash version at least 5.x
2021-01-23 22:02:53 -08:00
Davanum Srinivas
feecef7795
Ensure bash version at least 5.x
Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-01-22 13:08:53 -05:00
Kubernetes Prow Robot
7eef3ed8c7
Merge pull request #98003 from lauchokyip/fixlint2
Fix golint errors for k8s.io/cli-runtime/pkg/genericclioptions/
2021-01-21 09:57:40 -08:00
Kubernetes Prow Robot
6040a06a2e
Merge pull request #97841 from feranwq/patch-92402-2
fix vendor/k8s.io/cli-runtime/pkg/printers staticcheck
2021-01-21 09:57:27 -08:00
Kubernetes Prow Robot
a64c7ed1dc
Merge pull request #97930 from JieJhih/golint/fs
fix golint in volume fs
2021-01-19 13:14:00 -08:00