Commit Graph

9450 Commits

Author SHA1 Message Date
Tim Hockin
c6a8961534 testdata dirs are not useful go code
Minor.  This removes a few "testdata" dirs from .make/all_go_dirs.mk

-hack/make-rules/helpers/go2make/testdata/dir-with-gofiles
-test/conformance/testdata
-test/instrumentation/testdata/pkg/kubelet/metrics
-test/instrumentation/testdata/staging/src/k8s.io/metrics
-test/typecheck/testdata/bad
-test/typecheck/testdata/good
-test/typecheck/testdata/good/testdata
-vendor/k8s.io/kubectl/pkg/cmd/edit/testdata

This list of dirs is used to figure out which directories need codegen,
and none of these do.
2021-11-19 11:25:53 -08:00
Kubernetes Prow Robot
9b180d8913
Merge pull request #105481 from claudiubelu/tests/e2e-prepull-images
tests: Prepull images
2021-11-18 17:22:51 -08:00
Shivam Sandbhor
6652c54d83 Remove invalid comment in legacyregistry
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-18 15:05:00 +05:30
Kubernetes Prow Robot
1367cca8fd
Merge pull request #106448 from aojea/hlee/issue-103721/staticcheck
use golangci-lint
2021-11-17 09:25:54 -08:00
Kubernetes Prow Robot
557b5feb08
Merge pull request #106305 from shivanshu1333/fix/master/schedularMigration
migrated schedular to structured logging
2021-11-17 05:05:54 -08:00
Antonio Ojea
272b31da50 use golangci-lint and remove legacy verify-staticcheck.sh 2021-11-17 13:58:53 +01:00
Tim Hockin
3bca4e6d67 Move golangci-lint config to a file
Make verify-golangci-lint.sh work across modules and take an optional
argument for a package.
2021-11-17 08:56:57 +01:00
Hanna Lee
7ea01c0bdb Add staticcheck to verify-golangci-lint.sh 2021-11-17 08:56:01 +01:00
Jefftree
ae1984a89d Generate openapi v3 static files 2021-11-16 17:38:54 -08:00
Namanl2001
64a9988fce
small nit
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-11-16 22:23:52 +05:30
Kubernetes Prow Robot
552c2964bc
Merge pull request #106418 from SataQiu/hack-ignore-generated-files
Exclude generated files from the static check
2021-11-15 13:05:00 -08:00
Namanl2001
b990d8109a
adding runtime-config
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-11-16 01:27:16 +05:30
Kubernetes Prow Robot
1c127d3682
Merge pull request #105706 from uthark/oatamanenko/upgrade-etcd-3.5.1
Upgrade etcd to 3.5.1
2021-11-15 10:04:59 -08:00
Kubernetes Prow Robot
da73a24f6a
Merge pull request #106123 from pohly/log-go-runner-windows
package log runner as part of Kubernetes releases
2021-11-15 09:04:48 -08:00
SataQiu
7dedd412f0 exclude generated files from the static check 2021-11-15 18:07:45 +08:00
Neha Lohia
fa1b6765d5
move pkg/util/node to component-helpers/node/util (#105347)
Signed-off-by: Neha Lohia <nehapithadiya444@gmail.com>
2021-11-12 07:52:27 -08:00
Shivanshu Raj Shrivastava
b60e95444e
migrated schedular to structured logging 2021-11-12 13:42:12 +05:30
Kubernetes Prow Robot
3ca3daac76
Merge pull request #103415 from tiloso/staticcheck-kubelet
Fix staticcheck failure in pkg/kubelet/cm/cpuset
2021-11-11 15:15:13 -08:00
Kubernetes Prow Robot
0abc054933
Merge pull request #106190 from MikeSpreitzer/integration-scrape-etcd
Add periodic etcd scraping to integration tests
2021-11-09 15:30:38 -08:00
Kubernetes Prow Robot
8e02b78873
Merge pull request #102534 from wangyysde/create-hpav2stable
Create HPA v2 Stable API
2021-11-09 10:27:48 -08:00
Kubernetes Prow Robot
3ae56ab320
Merge pull request #106174 from markusthoemmes/buildx-check
Make the docker buildx check call --help
2021-11-09 04:31:46 -08:00
wangyysde
d2abddd909 rename v2beta2 to v2
Signed-off-by: wangyysde <net_use@bzhy.com>

Generation swagger.json.

Use v2 path for hpa_cpu_field.

run update-codegen.sh

Signed-off-by: wangyysde <net_use@bzhy.com>
2021-11-09 10:34:54 +08:00
Mike Spreitzer
4ca4ccdcc2 Add serving of scrapes as Prometheus metrics 2021-11-08 15:28:05 -05:00
Mike Spreitzer
dc07025470 Add periodic etcd scraping to integration tests
.. to help understand where and why things go bad.
2021-11-05 21:32:58 -04:00
Claudiu Belu
35e23afa50 tests: Prepull images commonly used test images
Some tests have a short timeout for starting the pods (1 minute), but if
those tests happen to be the first ones to run, and the images have to be
pulled, then the test could timeout, especially with larger images. This
commit will allow us to prepull commonly used E2E test images, so this issue
can be avoided.
2021-11-05 14:22:50 -07:00
Kubernetes Prow Robot
aa964e097c
Merge pull request #106150 from pohly/log-runner-kubemark
kubemark: replace deprecated --log-file parameter with runner
2021-11-05 04:01:52 -07:00
Markus Thömmes
671cd6c606 Make the docker buildx check call --help 2021-11-05 09:49:07 +01:00
Patrick Ohly
c3cd9a3902 kubemark: static binary, replace deprecated --log-file parameter
The --log-file parameter will be deprecated as of Kubernetes 1.23 and should be
avoided. The replacement for distroless images is the image with go-runner, a
tool that handles output redirection.

For kubemark to run in that image it must be built as static binary.
2021-11-04 20:52:56 +01:00
Patrick Ohly
d2a8a81639 Package kube-log-runner as part of Kubernetes releases
kube-log-runner was formerly known as go-runner when it was originally introduced
in 393e0952e9
It was moved to kubernetes/release/images/build/go-runner later but is now
needed again in Kubernetes itself as replacement for the deprecated --log-file
klog feature: when bringing up a Windows node, kube-proxy.exe and kubelet.exe must be wrapped
with the helper binary to redirect output.

It got renamed to avoid a naming conflict with
test/conformance/image/go-runner and because the name was too vague.

Other downstream Kubernetes users may have a similar need, therefore it makes
sense to provide a prebuilt binary also in the release archives.
2021-11-04 10:00:26 +01:00
Kubernetes Prow Robot
8facd72986
Merge pull request #106020 from ahrtr/replace_ioutil_with_io_os_hack
Replace ioutil with io and os for hack
2021-11-03 20:50:03 -07:00
Kubernetes Prow Robot
70e7876bef
Merge pull request #106099 from BenTheElder/bazel-linger-no-more
cleanup lingering bazel related scripts/references
2021-11-02 18:00:27 -07:00
Kubernetes Prow Robot
b489b03946
Merge pull request #105575 from endocrimes/dani/cleanup-launcher
Allow the e2e_node runner to receive a KubeletConfiguration rather than requiring flags
2021-11-02 18:00:10 -07:00
Benjamin Elder
71071d13ab remove make rule for test-e2e-kubeadm
this target depended on a broken binary and is clearly unused

kubeadm e2e development should be done with: https://github.com/kubernetes/kubeadm/tree/main/kinder
2021-11-02 12:04:14 -07:00
Benjamin Elder
a4476c8548 remove bazel from make clean, bazel is not in any supported branches 2021-11-02 11:41:32 -07:00
Benjamin Elder
69c3e1934c don't search under ./bazel-*, bazel is not in use. 2021-11-02 11:40:59 -07:00
Benjamin Elder
aa4d83961a remove hack/{update,verify}-bazel.sh
With Kubernetes 1.19.X no longer supported, there are no supported branches using bazel. Developers should not have errant bazel files, this will be left to reviewers to catch.
2021-11-02 11:38:42 -07:00
Danielle Lancashire
a4cf3a90a2 e2e_node: support passing kubelet-config-file to local runs 2021-11-02 15:10:29 +01:00
Danielle Lancashire
6e9e436026 e2e_node: kubelet config: move to file where possible 2021-11-02 15:10:28 +01:00
Danielle Lancashire
4097a3d472 e2e_node: allow customizing the base kubeletconfig
This commit forces Kubelet Configuration files to always be generated
and when possible will use the kubeletconfig file that has been provided
by the test orchestrator
2021-11-02 15:09:56 +01:00
ahrtr
6e3cf5eca2 replace ioutil with io and os for hack 2021-10-30 14:44:41 +08:00
Namanl2001
6d6bb48240
passing image-config-dir
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-30 01:23:02 +05:30
Kubernetes Prow Robot
03c76decb2
Merge pull request #105947 from thockin/worktree-head
Always pass HEAD to worktree
2021-10-28 09:21:02 -07:00
Tim Hockin
6545958921 Always pass HEAD to worktree
Without this, repeated runs can end up using the same SHA (because of
the "helpful" branch creation.
2021-10-27 15:43:48 -07:00
Kubernetes Prow Robot
7c715dbc68
Merge pull request #105637 from Namanl2001/ssh
adding `--ssh-key` and `--ssh-user` for kubetest2
2021-10-26 16:33:45 -07:00
Namanl2001
d721796259
reverted previous commit change
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-20 01:05:41 +05:30
Namanl2001
c6e0564f53
adding quote in SSH_KEY
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 23:30:01 +05:30
Namanl2001
dda8248a0e
trying quoting
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 21:59:05 +05:30
Oleg Atamanenko
965f10f539 Upgrade etcd to 3.5.1 2021-10-18 23:09:27 -07:00
Namanl2001
85d16760f0
adding defaultGceKey in remote/ssh.go
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-19 00:07:36 +05:30
CIPHERTron
27eb281e32 add new line 2021-10-17 21:25:41 +05:30
CIPHERTron
683e5bb2e1 sort directories 2021-10-17 20:32:39 +05:30
CIPHERTron
195cd8a575 rearrange direcctories 2021-10-17 15:34:06 +05:30
CIPHERTron
0de2040ada mark kube-proxy structured logs as migrated 2021-10-17 12:49:39 +05:30
Kubernetes Prow Robot
c2bff66b95
Merge pull request #104783 from YuviGold/fix-shellcheck-output-streams
Fix shellcheck output streams
2021-10-14 12:58:55 -07:00
Namanl2001
b99c2f4894
SSH_USER:-
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-14 23:59:57 +05:30
Yuval Goldberg
bcb5d29e90 Fix shellcheck output streams
Resolves https://github.com/kubernetes/kubernetes/issues/102975

shellcheck errors are printed to stdout by default, hence they need to be redirected
to stderr in order to be well parsed for Junit representation by `juLog` function.
2021-10-14 15:53:47 +03:00
Namanl2001
be3c851085
ssh key
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-13 01:02:38 +05:30
Namanl2001
ec7ad7e9fb
adding key and user
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-12 22:31:12 +05:30
Kubernetes Prow Robot
a7c67c03ff
Merge pull request #105399 from mopsfelder/ppc64le
Allow fast builds on ppc64le
2021-10-11 22:21:46 -07:00
David Eads
156fefa36a add verify script to catch most validation mutations 2021-10-08 14:37:55 -04:00
Umanga Chapagain
1dd30f6e05
update hack/verify-structured-logging.sh
hack/verify-structured-logging.sh now tests migrated packages
for use of unstructured logging functions and all other packages
for use of correct structured logging patterns.

Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2021-10-05 17:50:05 +05:30
Umanga Chapagain
f4ff6984cf
update hack/tools to pull latest logcheck
Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2021-10-05 15:55:58 +05:30
Kubernetes Prow Robot
04f747d09f
Merge pull request #104782 from kerthcet/cleanup/remove-cc-v1beta1
remove scheduler component config v1beta1
2021-10-04 08:53:08 -07:00
Kubernetes Prow Robot
f31453fe5b
Merge pull request #104894 from pacoxu/windows-arm
add windows arm support on client-side since go 1.17 supports
2021-10-04 04:19:07 -07:00
Murilo Opsfelder Araujo
1589605a7c Allow fast builds on ppc64le
On a ppc64le host, fast build was failing:

    # make KUBE_FASTBUILD=true quick-release
    +++ [0908 15:56:36] Verifying Prerequisites....
    +++ [0908 15:56:36] Building Docker image kube-build:build-fd009aaa81-5-v1.23.0-go1.17-buster.0
    +++ [0908 15:56:44] Syncing sources to container
    +++ [0908 15:56:48] Running build command...
    +++ [0908 15:56:56] Building go targets for linux/ppc64le:
        ./vendor/k8s.io/code-generator/cmd/prerelease-lifecycle-gen
    > non-static build: k8s.io/kubernetes/./vendor/k8s.io/code-generator/cmd/prerelease-lifecycle-gen
    touch: cannot touch '_output/bin/prerelease-lifecycle-gen': No such file or directory
    make[2]: *** [Makefile.generated_files:209: _output/bin/prerelease-lifecycle-gen] Error 1
    make[1]: *** [Makefile:552: generated_files] Error 2
    make: *** [Makefile:512: cross] Error 1
    !!! [0908 15:56:58] Call tree:
    !!! [0908 15:56:58]  1: build/../build/common.sh:476 kube::build::run_build_command_ex(...)
    !!! [0908 15:56:58]  2: build/release.sh:36 kube::build::run_build_command(...)
    make: *** [Makefile:454: quick-release] Error 1

This error happened because the _output/bin/ directory didn't exist at
the moment the file _output/bin/prerelease-lifecycle-gen was touched, so
the path didn't exist.

The _output/bin symlink was not created by kube::golang::place_bins()
because kube::golang::setup_platforms() assumed
KUBE_CLIENT_PLATFORMS=linux/amd64 despite being on a ppc64le host.

Fix build error by not assuming host_arch=amd64 when on ppc64le in
kube::golang::setup_platforms().

Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
2021-10-01 09:31:10 -03:00
Elana Hashman
132fa1cbf3
Revert "Build non-static binaries with PIE buildmode" 2021-09-29 11:36:20 -07:00
kerthcet
75a255d2ed remove scheduler component config v1beta1
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-09-28 13:13:17 +08:00
Kubernetes Prow Robot
40c9203472
Merge pull request #105171 from liggitt/gomodule-staticcheck
Make staticcheck package-compatible
2021-09-21 10:34:23 -07:00
Jordan Liggitt
00622da45e Make staticcheck package-compatible 2021-09-21 12:19:57 -04:00
Kubernetes Prow Robot
b92b799881
Merge pull request #102309 from pacoxu/track-unwanted-dependencies-1
add update-unwanted-dependencies.sh to track unwanted dependencies
2021-09-20 10:18:10 -07:00
pacoxu
b99e1e4aa9 use reference as we cannot distinguishing direct/indirect with go mod graph 2021-09-20 22:14:34 +08:00
Antonio Ojea
1846e42f7b alllocal-cluster-up: ow to specify the kubelet resolv.conf 2021-09-19 12:06:52 +02:00
pacoxu
22ccb37e88 add update-unwanted-dependencies.sh to track unwanted dependencies
Signed-off-by: pacoxu <paco.xu@daocloud.io>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-09-17 13:21:38 +08:00
Patrick Ohly
de47d00865 pin-dependency.sh: enhance forking of a dependency
This addresses a problem that occurred when trying the following replacement:
   hack/pin-dependency.sh k8s.io/klog/v2=github.com/pohly/klog/v2 flush-log-sink

That itself worked, but update-vendor.sh then failed:

   === tidying go.mod/go.sum in staging/src/k8s.io/code-generator/examples
  go: k8s.io/apimachinery@v0.0.0 requires
  	k8s.io/klog/v2@v2.4.1-0.20210909144920-0b91caa8c854: invalid version: unknown revision 0b91caa8c854
  go: k8s.io/apimachinery@v0.0.0 requires
  	k8s.io/klog/v2@v2.4.1-0.20210909144920-0b91caa8c854: invalid version: unknown revision 0b91caa8c854
2021-09-14 11:30:17 +02:00
Kubernetes Prow Robot
c79f7c1add
Merge pull request #104711 from claudiubelu/update-pause-3.6
update pause image references to use 3.6
2021-09-13 19:09:08 -07:00
Kubernetes Prow Robot
cdcf2a239e
Merge pull request #104399 from tkashem/apf-v1beta2
apf: introduce v1beta2
2021-09-13 18:01:08 -07:00
Paco Xu
9a2a4f1051 add windows arm support on client-side since go 1.17 supports 2021-09-10 15:42:45 +08:00
Abu Kashem
e2b8701545
apf: ebable v1beta2 2021-09-09 08:28:53 -04:00
Kubernetes Prow Robot
95390e6476
Merge pull request #103023 from tiloso/staticcheck-apiserver-clientgo
Fix staticcheck in k8s.io/{apiserver/pkg/storage,client-go/rest/watch}
2021-09-08 18:50:10 -07:00
tiloso
830a137d2e Fix staticcheck in apiserver and client-go pkgs 2021-09-07 21:53:41 +02:00
Vikram Jadhav
5f674101bb Added update and verify scripts for automated mock generation 2021-09-03 17:40:11 +00:00
Claudiu Belu
18936d4785 updates pause image references
The pause:3.6 image has been published.

Also updates older / incorrect references.
2021-08-29 21:50:05 -07:00
Antonio Ojea
2fee0c45e6 skip hack/tools/vendor folder
The makefiles scripts create a variable with all the go files
that are part of the Kubernetes source tree, including staging.

As today, this variable has a size of < 100kb

wc .make/all_go_dirs.mk
2326  2326 98905 .make/all_go_dirs.mk

This variable is passed as argument in the Makefiles, where it
is expanded. In Linux, there is a limit to the max size of
the arguments MAX_ARG_STRLEN.

If the arguments go above 128k, you get a nice:

execvp: /usr/bin/env: Argument list too long

If you, for whatever reason, do some go mod vendor inside the
hack/tools folder, these files will be added to the variable
and most probably you'll go above the limit and get that error.

Then, you'll learn a lot about Makefils, shell expansion, strace,
execpve, ARG_MAX and MAX_ARG_STRLEN,until you realize what is
the real problem :).
2021-08-26 20:02:43 +02:00
tiloso
2b86541313 Fix staticcheck failure in pkg/kubelet/cm/cpuset 2021-08-26 08:50:08 +02:00
Stephen Augustus
f11a3cd58f
hack/boilerplate: Tolerate new build tag format (//go:build)
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:49 -04:00
Stephen Augustus
e8d2bff6ba
[go1.17] Update to go1.17
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:41 -04:00
Antonio Ojea
06f2d678ee update and verify netparse
Add script to verify that net.ParseIP and net.ParseCIDR are
not being used.

Add another script to automatically replace those functions
for the ones forked in k8s.io/utils/net
2021-08-20 10:42:09 +02:00
Jordan Liggitt
a26f7f2b58 Add non-vendor version ldflags 2021-08-14 11:20:26 -04:00
Kubernetes Prow Robot
98e526390d
Merge pull request #103724 from claudiubelu/update-e2e-test-images-url
Update e2e test images url
2021-08-12 09:10:13 -07:00
Kubernetes Prow Robot
9c7426e14f
Merge pull request #104315 from yselkowitz/goflags-fix
Fix build with multiple GOFLAGS
2021-08-12 04:59:47 -07:00
Kubernetes Prow Robot
8156c82fa1
Merge pull request #99887 from yangjunmyfm192085/run-test26
Fix error path in file /verify-prerelease-lifecycle-tags.sh.
2021-08-11 18:37:48 -07:00
Yaakov Selkowitz
67e14290aa Fix build with multiple GOFLAGS
The tag extraction from GOFLAGS doesn't do anything if -tags is not
present in GOFLAGS.  Not only does that mean non-sensical tags are
passed, but because GOFLAGS is a space-separated variable, the build
will fail because the build flags because -tags must be comma-separated.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2021-08-11 19:23:41 -04:00
Davanum Srinivas
f63dbd481f
Warn if docker buildx is not available
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-10 14:42:11 -04:00
Patrick Ohly
808659cc42 pin-dependencies.sh: support switching repos
Sometimes it is useful to fork a dependency in a different repo and
then use that forked code in Kubernetes. Normally one would do `go mod
edit -replace ...=/local/path` but that has drawbacks:

- repos under staging are not updated
- sharing the modified Kubernetes with others is harder, for example
  in a WIP or RFC PR

The revised pin-dependencies.sh supports this with an optional
=<replacement> part in the dependency parameter.

Determining the revision upfront with `go mod download` also makes the
script simpler.
2021-08-09 16:54:30 +02:00
Kubernetes Prow Robot
0427b17395
Merge pull request #104164 from dims/allow-override-of-cgo-enabled
Allow override of KUBE_CGO_OVERRIDES (for switching on/off of `CGO_ENABLED`)
2021-08-05 16:37:26 -07:00
Kubernetes Prow Robot
4842242e7a
Merge pull request #103987 from ehashman/cherry-pick-release-note
Add release note block to cherry-pick script
2021-08-05 14:11:10 -07:00
Kubernetes Prow Robot
79c7584764
Merge pull request #103986 from GM1957/fix-scripts
fixing scripts from https://github.com/google/protobuf/releases to ht…
2021-08-05 08:17:59 -07:00
Kubernetes Prow Robot
58cde6c442
Merge pull request #103874 from liggitt/move-conformance
Move conformance image
2021-08-05 08:17:34 -07:00
Davanum Srinivas
af2129b77d
Allow override of CGO_ENABLED=0
When building inside a docker container, we fail to pass along enough
information for KUBE_CGO_OVERRIDES. The original PR was geared towards
building the binary from the command line

- dca376a03e
- e4ded2b3ec

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-08-05 10:45:14 -04:00
Kubernetes Prow Robot
e4efd1e360
Merge pull request #103710 from nckturner/configure-cloud-routes-local-hack
Make --configure-cloud-routes configurable in local-up-cluster
2021-08-04 22:12:04 -07:00
Tim Hockin
09dc055984
Update golang.org/x/time/rate (#104014)
* Add failing test case

* Update golang.org/x/time/rate

* Call update-internal-modules from update-vendor
2021-07-29 16:13:38 -07:00
Elana Hashman
fec260d083
Add release note block to cherry-pick script 2021-07-28 14:46:05 -07:00
Tanmoy Bhowmick
260b5ef155 fixing scripts from https://github.com/google/protobuf/releases to https://github.com/protocolbuffers/protobuf/releases 2021-07-29 02:24:39 +05:30
Caleb Woodbine
bbb368b701 Update e2e test images url
Removes any reference from the registry gcr.io/kubernetes-e2e-test-images in
kubernetes/kubernetes, replacing it with k8s.gcr.io/kubernetes-e2e-test-images.
In some cases, the images had to be updated since a few things have changed since
their original implementation, most notably being the fact that some of the images
have been centralized into the agnhost image.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-07-27 22:01:43 -07:00
Jordan Liggitt
4115bef826 Update references to test/conformance/image 2021-07-23 11:26:54 -04:00
Nick Turner
1887ddfc96 Make --configure-cloud-routes configurable in local-up-cluster
- Allow --configure-cloud-routes to be set in hack/local-up-cluster.sh
  using the env var $CONFIGURE_CLOUD_ROUTES.
2021-07-15 08:21:32 +00:00
Davanum Srinivas
75748c185e
enable verify-golangci-lint.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:53:33 -04:00
Davanum Srinivas
b74fe232e3
update golangci-lint to newer version
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-14 08:41:21 -04:00
Mikhail Mazurskiy
bc475373b2
Drop direct dependency on gotest.tools 2021-07-10 13:31:32 +10:00
Elana Hashman
642eff0c69
Rename NodeSwapEnabled flag to NodeSwap 2021-07-09 11:39:52 -07:00
Kubernetes Prow Robot
24a614cb4c
Merge pull request #103556 from dims/update-license-gathering-script-for-forked-code
Update license gathering script for forked code
2021-07-08 08:51:06 -07:00
Kubernetes Prow Robot
a2b1f00a8b
Merge pull request #103522 from atiratree/fix-translations-location
fix translations location in update-translations.sh
2021-07-08 05:58:53 -07:00
Davanum Srinivas
40f1db8d2d
update license gathering script for forked code
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-08 07:48:19 -04:00
Kubernetes Prow Robot
ac554af79b
Merge pull request #103142 from serathius/etcd-3.5.0
Upgrade etcd to 3.5.0
2021-07-07 12:40:22 -07:00
atiratree
1e0f695afa fix translations location in update-translations.sh 2021-07-07 20:01:25 +02:00
Kubernetes Prow Robot
561959f682
Merge pull request #102823 from ehashman/kep-2400-swap
Alpha node swap support
2021-07-06 22:11:11 -07:00
atiratree
66dbfbce10 update-translations.sh: add fix translations option (-k) 2021-07-05 22:39:11 +02:00
atiratree
079d8aeb1e fix update-translations.sh 2021-07-05 22:39:07 +02:00
Stephen Augustus
c24dfe528a
cluster,hack: Use community infra GCS bucket for retrieving CI builds
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-07-03 17:04:54 -04:00
Kubernetes Prow Robot
7e00f5d401
Merge pull request #103118 from wangyysde/remove-errors-from-check_conformance_test_requirements.go
use native error instead of github.com/pkg/errors
2021-07-01 07:39:55 -07:00
wangyysde
e2e1c94f06 use native error instead of github.com/pkg/errors
Signed-off-by: wangyysde <net_use@bzhy.com>
2021-07-01 10:54:09 +08:00
Kubernetes Prow Robot
044fd6fdf6
Merge pull request #99829 from palnabarun/migrate-to-go-embed
Replace go-bindata with //go:embed
2021-06-30 10:37:03 -07:00
Rishabh Jain
584eb5e947 Update local-cluster-up.sh to auto-detect darwin and skip kubelet and kube-proxy 2021-06-30 20:30:03 +05:30
Elana Hashman
9eeec68d67
Update local-up-cluster.sh swap warning 2021-06-29 11:57:35 -07:00
Nabarun Pal
d98b2dd2d6
generated: remove usage of go-bindata
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 19:16:48 +05:30
Nabarun Pal
43c2e454a0
hack: remove bindata generation logic for translations
also, remove generated bindata

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 13:36:28 +05:30
Nabarun Pal
5ece28b77a
kubectl: move translations to i18n package to kubectl staging directory
Go 1.16's embed directive doesn't allow embeding files from parent
directories. Hence, moving the translations data to inside the i18n package.

Logically speaking as well, kubectl related artifacts should be inside
the kubectl package.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-29 13:36:26 +05:30
pacoxu
669fb50136 upgrade staticcheck to v0.2.0 and update the static failure packages 2021-06-28 18:04:16 +08:00
Kubernetes Prow Robot
7163f8f810
Merge pull request #100771 from njuptlzf/fix_staticcheck_storage
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/storage
2021-06-25 01:16:45 -07:00
Mike Spreitzer
179e48c4be Add missing comments in APF API types 2021-06-25 00:27:40 -04:00
Marek Siarkowicz
ebe550bd48 Upgrade etcd to 3.5.0 2021-06-24 09:15:17 +02:00
njuptlzf
93365919b5 Fix staticcheck failures 2021-06-23 23:27:43 +08:00
Kubernetes Prow Robot
2d0821c2a0
Merge pull request #102960 from BenTheElder/nodataracesplease
enable race detector by default in make test
2021-06-18 19:26:49 -07:00
Benjamin Elder
8942cba24d log if we're running with -race 2021-06-18 14:49:53 -07:00
Benjamin Elder
68d8bcb64f remove redundant bits from test-dockerized.sh 2021-06-18 14:49:53 -07:00
Benjamin Elder
4ee729ce5f disable race detector in test-cmd.sh 2021-06-18 14:49:53 -07:00
Benjamin Elder
55d2868e9d don't redundantly set KUBE_RACE in test-integration.sh 2021-06-18 14:49:52 -07:00
Benjamin Elder
3c44b86ad6 enable race detector by default in make test 2021-06-18 14:49:52 -07:00
Kubernetes Prow Robot
d89c11a0d4
Merge pull request #102629 from tiloso/staticcheck-cluster-apimachinery-apiserver
Fix staticcheck in cluster & k8s.io/{apimachinery,apiserver}
2021-06-18 09:52:06 -07:00
Benjamin Elder
207f9e8b71 switch go-flow-levee to tagged version
this is actually a no-op source wise, but we want to prefer tagged versions
2021-06-15 19:37:20 -07:00
Kubernetes Prow Robot
95a62217ca
Merge pull request #102888 from BenTheElder/more-timeout-sad
bump KUBE_TIMEOUT to 180s
2021-06-15 17:04:23 -07:00
Benjamin Elder
14085c50d3 bump KUBE_TIMEOUT to 180s
observed some timeouts with 170s still
2021-06-15 12:25:00 -07:00
Jordan Liggitt
19db126d76 Exercise egress configuration in local-up-cluster 2021-06-15 09:53:07 -04:00
Kubernetes Prow Robot
3dd561ade4
Merge pull request #102768 from BenTheElder/tune-kube_timeout
Increase KUBE_TIMEOUT default to a passing default
2021-06-11 11:42:59 -07:00
Benjamin Elder
77c04d2284 Increase KUBE_TIMEOUT default to a passing default
Next we can stop overriding it in CI, so local and CI runs match more closely, see: https://github.com/kubernetes/kubernetes/issues/102607
2021-06-09 23:33:24 -07:00
Marek Siarkowicz
12447bc803 Upgrade etcd server version to 3.5.0-rc.0 2021-06-09 17:00:05 +02:00
Kubernetes Prow Robot
d849d9d057
Merge pull request #102697 from mlevesquedion/update-levee-analyzer-version
Update version of go-flow-levee for verify-govet-levee check.
2021-06-08 18:37:46 -07:00
Michaël Lévesque-Dion
a94aa0ea9a Update version of go-flow-levee for verify-govet-levee check. 2021-06-08 12:02:46 -04:00
Adhityaa Chandrasekar
3c8e56bef9 scheduler: graduate CC to v1beta2, deprecate plugins
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
2021-06-07 12:42:55 +00:00
tiloso
c5d70e9db1 Fix staticcheck in cluster & k8s.io/{apimachinery,apiserver} 2021-06-05 22:15:15 +02:00
Sascha Grunert
39d9e98a6f
Build non-static binaries with PIE buildmode
We now add the `-buildmode pie` flag when building non-static binaries,
which enables the ASLR security mechanism.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-05-27 14:51:36 +02:00
Kubernetes Prow Robot
02d0878690
Merge pull request #100435 from lauchokyip/fixSort
Fixed sort-by not sorting Resources as expected
2021-05-26 09:29:38 -07:00
Chok Yip Lau
e43e9696cc Fixed sort-by not sorting Resources as expected 2021-05-25 21:37:52 -04:00
Kubernetes Prow Robot
91200bac44
Merge pull request #102252 from smarterclayton/pod_termination
e2e: Flag questionable durations in container status on termination
2021-05-25 15:57:27 -07:00
Sascha Grunert
b167fc24d7
Update pause image to v3.5
Update dependencies and the test images to use pause 3.5. We also
provide a changelog entry for the new container image version.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-05-25 09:04:46 +02:00
Clayton Coleman
2d361d4306
e2e: Flag questionable durations in container status on termination
The e2e that create/deletes pods rapidly and verifies their status
was reporting a very long timing:

timings total=12.211347385s t=491ms run=2s execute=450402h8m25s

in a few scenarios. Add error checks that clarify when this happens
and why. Report p50/75/90/99 latencies on teardown as observed from
the test for baseline for future changes.
2021-05-24 11:48:42 -04:00
Kubernetes Prow Robot
04a0dcec8d
Merge pull request #99371 from tiloso/staticcheck-apimachinery-util
Fix staticcheck in k8s.io/apimachinery/pkg/util
2021-05-21 07:38:46 -07:00
Kubernetes Prow Robot
02be0dd784
Merge pull request #102046 from tnqn/shell-error
Fix exit code check in hack/grab-profiles.sh
2021-05-18 19:15:03 -07:00
Quan Tian
20f320c6bd Fix exit code check in hack/grab-profiles.sh
[ $? ] is True regardless of whether the last command succeeds or not,
which causes the script to not work.
2021-05-17 14:47:05 +08:00
AbdulBasitAlvi
29cfc68911 bug(staging_api_apps_v1): add descriptions to apps/v1/types.go files
#### What type of PR is this?
/kind bug

#### What this PR does / why we need it:

This PR adds descriptions for the following:
1. Metadata and List of Struct `StatefulSetLists`
2. Metadata of Struct `StatefulSet`

#### Which issue(s) this PR fixes:
Ref #99675
2021-05-16 07:09:40 +05:00
Kubernetes Prow Robot
68e97062de
Merge pull request #100008 from wangyysde/issue99675
Add descriptions to api/extensions/v1beta1/types.go
2021-05-12 14:45:28 -07:00
Jian Zeng
6c9ab10872
feat: set some auth flags for KCM and KS
Set `--authentication-kubeconfig` and `--authorization-kubeconfig` to enable
metrics to be grabbed from the secure port.

Signed-off-by: Jian Zeng <zengjian.zj@bytedance.com>
2021-05-12 22:47:53 +08:00
wangyysde
fb4b86bb98 Add descriptions to api/extensions/v1beta1/types.go
Signed-off-by: wangyysde <net_use@bzhy.com>
2021-05-11 22:03:27 +08:00
Kubernetes Prow Robot
aca84a38cc
Merge pull request #99754 from CaoDonghui123/fixissues5
Add descirptions to /kube-aggregator/pkg/apis/apiregistration/*/types.go
2021-05-10 12:43:49 -07:00
Kubernetes Prow Robot
1d2b1ed354
Merge pull request #101395 from tanjing2020/container_manager_test
no_proxy inherits the system settings to adapt to some special scenarios
2021-05-07 21:29:17 -07:00
caodonghui
1e7d26a02d Add descirptions to /kube-aggregator/pkg/apis/apiregistration/*/types.go files 2021-05-08 10:52:41 +08:00
Kubernetes Prow Robot
d76d217b0f
Merge pull request #97867 from lauchokyip/fixstaticerrors
Fix staticcheck on vendor/k8s.io/apiserver/pkg/server/httplog
2021-05-07 10:47:03 -07:00
Kubernetes Prow Robot
b5b3d1962c
Merge pull request #99842 from mowangdk/upgrade_struct_annotation
Upgrade struct annotation
2021-05-06 10:21:59 -07:00
Kubernetes Prow Robot
bd6f5c2e64
Merge pull request #100993 from mozillazg/fix-staticcheck-failed-registry-rest-resttest
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/registry/rest/resttest
2021-05-06 07:07:16 -07:00
yingqi.ge
3adf656f83 Add description to policy types.go 2021-05-06 15:33:09 +08:00
mozillazg
92ece853be
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/registry/rest/resttest 2021-05-06 07:49:22 +08:00
Kubernetes Prow Robot
136009fd69
Merge pull request #99811 from lauchokyip/fixtype
Added descriptions to api/apiserverinternal/v1alpha1/types.go
2021-05-05 07:11:15 -07:00
Chok Yip Lau
27aab303ff Added description to staging/src/k8s.io/api/apiserverinternal/v1alpha1/types.go 2021-05-04 17:09:44 -04:00
Kubernetes Prow Robot
9126048c9c
Merge pull request #101707 from enj/enj/i/bad_cadata
client-go transport: assert that final CA data is valid
2021-05-04 07:29:11 -07:00
Monis Khan
440ea3ef49
client-go transport: assert that final CA data is valid
Signed-off-by: Monis Khan <mok@vmware.com>
2021-05-03 21:08:01 -04:00
Kubernetes Prow Robot
68669a30dc
Merge pull request #101704 from liggitt/api-testdata
Update testdata generation command
2021-05-03 17:21:54 -07:00
Kubernetes Prow Robot
55635497d3
Merge pull request #101687 from siddhartha97/add-feature
Ensures Authentication types have descriptions
2021-05-03 13:00:09 -07:00
Jordan Liggitt
529197ca8f Update testdata generation command 2021-05-03 08:53:30 -04:00
Kubernetes Prow Robot
1c064a55c9
Merge pull request #101670 from logicalhan/patch-1
Add myself as a dep reviewer
2021-04-30 23:45:59 -07:00
Siddhartha Chowdhuri
4425fd6bfe Added changes 2021-04-30 18:29:28 -07:00
Kubernetes Prow Robot
032a6fd494
Merge pull request #100233 from umangachapagain/imagepolicy-desc
add missing description to api/imagepolicy/v1alpha1/types.go
2021-04-30 15:24:00 -07:00
Kubernetes Prow Robot
25a9b583a9
Merge pull request #99760 from navist2020/fix_descriptons
Add descriptions to api/authorization/*/types.go
2021-04-30 12:06:12 -07:00
Han Kang
0f6cea3b51 Add myself as a dep reviewer
Change-Id: I80406ca92d30c1f8d5a95f21794205d01a2f6eab
2021-04-30 07:59:19 -07:00
David Eads
ad0cff7b61 add --all-namespaces to kubectl annotate,label 2021-04-26 13:04:19 -04:00
tanjing2020
3890772bd6 no_proxy inherits the system settings to adapt to some special scenarios 2021-04-25 14:39:36 +08:00
Kubernetes Prow Robot
14066e9798
Merge pull request #101411 from saschagrunert/buildid
Stop unsetting the golang buildid
2021-04-23 19:28:09 -07:00
Kubernetes Prow Robot
43b9491055
Merge pull request #101057 from wangyysde/remove-chaos-chance
removing kubelet's flag chaos-chance
2021-04-23 19:27:52 -07:00
Kubernetes Prow Robot
f43f95aa78
Merge pull request #97697 from cblecker/cpp-gh
Use gh tool instead of hub for cherry pick script
2021-04-23 01:48:01 -07:00
Sascha Grunert
746ec78ebf
Stop unsetting the golang buildid
Golang fixed the issue with the non-reproducible buildid already in
v1.15.3:

c5f6920212
a3e965ce8a

This means we can now use the internal buildid instead of the unset one.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-04-23 10:21:00 +02:00
Kubernetes Prow Robot
135fc06929
Merge pull request #101301 from liggitt/master-module-darwin
Drop post-vendor sorting of modules.txt
2021-04-22 15:55:40 -07:00
Kubernetes Prow Robot
3061f6149f
Merge pull request #101171 from KnVerey/kubectl-describe-chunk-size
Add `--chunk size` flag to `kubectl describe`
2021-04-22 13:19:23 -07:00
Jordan Liggitt
cec87c73b1 Drop post-vendor sorting of modules.txt
This was required prior to https://go-review.googlesource.com/c/go/+/174527 to ensure
consistent ordering across platforms, but is not required in go 1.13+.
2021-04-22 11:07:29 -04:00
Christoph Blecker
d60cb5b378
Use gh tool instead of hub for cherry pick script 2021-04-22 07:59:32 -07:00
Katrina Verey
8ad6fd6ddb Add --chunk-size support to kubectl describe 2021-04-21 11:44:15 -07:00
David Eads
2fb8420756 update test-cmd to avoid removed beta APIs 2021-04-19 10:06:37 -04:00
Kubernetes Prow Robot
b91ec70329
Merge pull request #100205 from mauriciopoppe/enable-delve-in-e2e-tests
Use a debugging tool in E2E tests
2021-04-14 17:15:49 -07:00
wangyysde
4467082ddb removed kubelet's flag chaos-chance 2021-04-13 14:09:55 +08:00
tiloso
627218a8e2 Fix staticcheck in k8s.io/apimachinery/pkg/util 2021-04-12 18:06:11 +02:00
Kubernetes Prow Robot
2ccc7292e7
Merge pull request #100430 from mozillazg/fix-staticcheck-failed-apimachinery-serializer
Fix staticcheck failures for vendor/k8s.io/apimachinery/pkg/runtime
2021-04-10 20:29:27 -07:00
Huang Huang
02d20442a5
Fix staticcheck failures for vendor/k8s.io/client-go/transport (#100429)
* Fix staticcheck failures for vendor/k8s.io/client-go/transport

* avoid the possibility of a hang
2021-04-10 20:29:15 -07:00
Kubernetes Prow Robot
cf9d74439b
Merge pull request #100706 from dims/move-from-kube-dns-to-core-dns-for-local-up-cluster.sh
Move from kube-dns to core-dns for local-up-cluster.sh
2021-04-09 05:20:29 -07:00
Kubernetes Prow Robot
3fd31f12ee
Merge pull request #100570 from tiloso/staticcheck-clientgo-discovery
Fix staticcheck in k8s.io/client-go/discovery
2021-04-09 05:19:12 -07:00
Kubernetes Prow Robot
a9ed98588e
Merge pull request #99596 from SataQiu/fix-update-vendor-20210301
Fix the bug that hack/update-vendor.sh exits with error but no indication of failure
2021-04-08 15:58:48 -07:00
Kubernetes Prow Robot
86fdf7b56e
Merge pull request #99487 from chymy/fix-staticcheck0226
Fix staticcheck failures for pkg/controller/replicaset and pkg/kubelet/dockershim
2021-04-08 14:28:17 -07:00
Mauricio Poppe
5f4f322ad4 make program an array and keep ginkgo_args as it is 2021-04-01 22:33:14 +00:00
Davanum Srinivas
be631ec410
Move from kube-dns to core-dns for local-up-cluster.sh
Still leave room for folks to run the older kube-dns if they choose to,
but it's about time we move local-up to what we tell everyone to use!

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-04-01 09:50:18 -04:00
Kubernetes Prow Robot
6572fe4d90
Merge pull request #100550 from dims/add-new-iptables-rule-for-local-up-cluster.sh
Add new iptables rule for local-up-cluster.sh
2021-03-29 13:24:09 -07:00
Kubernetes Prow Robot
e33a80bf2a
Merge pull request #100544 from dims/set-some-kube-proxy-params-for-local-up-cluster
Set some kube-proxy parameters for local-up-cluster.sh
2021-03-29 13:23:57 -07:00
Kubernetes Prow Robot
816bdd3011
Merge pull request #100569 from dims/set-jwks-uri-in-local-up-cluster.sh
Set jwks uri in local-up-cluster.sh
2021-03-29 12:17:57 -07:00
Kubernetes Prow Robot
26fc02a9e2
Merge pull request #100606 from dims/providerless-tag-for-client-go-auth-plugins
Providerless tag for client go auth plugins
2021-03-29 07:46:45 -07:00
Davanum Srinivas
1ac2d6f7fa
providerless tag for client-go auth plugins
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-28 20:07:59 -04:00
Davanum Srinivas
44d143f6e1
Add new iptables rule for local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-28 11:19:02 -04:00
Benjamin Elder
7ede8a2647 add a verify equivilant to prometheus visibility rules 2021-03-25 14:42:10 -07:00
tiloso
dc16cf4285 Fix staticcheck in k8s.io/client-go/discovery 2021-03-25 22:29:37 +01:00
Davanum Srinivas
91ca1b12bb
Set jwks uri in local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-25 17:09:58 -04:00
Davanum Srinivas
5238a8675d
Set some kube-proxy parameters for local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-24 15:42:39 -04:00
Davanum Srinivas
4edf95ed84
verify using go list
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-22 16:07:59 -04:00
mozillazg
15688b6342
Fix staticcheck failures for vendor/k8s.io/apimachinery/pkg/runtime 2021-03-21 19:41:40 +08:00
Kubernetes Prow Robot
74f72c4738
Merge pull request #100320 from ehashman/kubelet-logs-migrated
Mark kubelet structured logs as migrated
2021-03-18 16:30:48 -07:00
Elana Hashman
3aa1c58342
Mark kubelet structured logs as migrated 2021-03-18 08:34:46 -07:00
Mauricio Poppe
f301e3189a enable debug mode of E2E tests 2021-03-18 02:52:09 +00:00
Aaron Crickenberger
2be0bd2569 hack/verify: add verify-e2e-test-ownership.sh
add a script to enforce that all e2e tests have one and only one sig
owner defined according to specific policies
2021-03-17 16:47:17 -04:00
Umanga Chapagain
3e2236287d
pass all packages at once to logcheck
passing all packages at once to logcheck reduces the time
taken by linter.

Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2021-03-15 20:30:44 +05:30
Umanga Chapagain
3100871aee
add missing description to api/imagepolicy/v1alpha1/types.go
Signed-off-by: Umanga Chapagain <chapagainumanga@gmail.com>
2021-03-15 11:20:53 +05:30
Marek Siarkowicz
5249c5c10d Update list of migrated directories 2021-03-13 02:04:58 +01:00
chymy
c28be0baab Fix staticcheck failures for pkg/controller/replicaset and pkg/kubelet/dockershim 2021-03-11 22:16:05 -05:00
zhongjun.li
cbc0d55912 logcheck: check Windows files 2021-03-11 17:40:07 +08:00
Kubernetes Prow Robot
eb0c118a9d
Merge pull request #99759 from jpbetz/apply-extract
Add Extract support to client-go apply builders
2021-03-11 00:18:36 -08:00
Kubernetes Prow Robot
23af91b293
Merge pull request #97779 from tiloso/staticcheck-test-integration-gs
Fix staticcheck in test/integration/{garbagecollector,scheduler_perf}
2021-03-10 16:04:23 -08:00
Joe Betz
987657a80f Add extract apply function generation 2021-03-10 06:13:51 -08:00
Kevin Delgado
a1fac8cbd9 Server-Side Apply: Status Wiping/Reset Fields
Adds and implements ResetFieldsProvder interface in order to ensure that
the fieldmanager no longer owns fields that get reset before the object
is persisted.

Co-authored-by: Kevin Wiesmueller <kwiesmul@redhat.com>
Co-authored-by: Kevin Delgado <kevindelgado@google.com>
2021-03-10 01:02:18 +00:00
Kubernetes Prow Robot
d62a9b2179
Merge pull request #99773 from saschagrunert/build-memory
Change KUBE_PARALLEL_BUILD_MEMORY to 20 GiB
2021-03-09 16:08:07 -08:00
Kubernetes Prow Robot
e9115a041c
Merge pull request #97168 from PurelyApplied/levee-config-owned-by-sig-security
Transfer ownership of logging analysis configuration to sig-security.
2021-03-09 16:07:17 -08:00
Morten Torkildsen
21fba79d45 Promote PDBs to GA 2021-03-09 10:29:11 -05:00
Kubernetes Prow Robot
0df8c69731
Merge pull request #99960 from knabben/fix-runtime-config
Enabling runtime config on E2E node tests
2021-03-08 16:28:00 -08:00
Amim Knabben
0341e4c2f3 Enabling runtime config on E2E node tests 2021-03-08 15:45:06 -05:00
Benjamin Elder
b1162745b2 ignore vendor in update-bazel.sh, ignore bazel in update-vendor.sh 2021-03-07 15:34:44 -08:00
Benjamin Elder
67b3235c7a remove bazel from boilerplate 2021-03-07 15:27:45 -08:00
Benjamin Elder
5a83303fd6 drop bazel from generate-bindata.sh 2021-03-07 14:24:15 -08:00
Benjamin Elder
8f3cbc923a drop bazel logic from hack/lib/golang.sh 2021-03-07 13:11:29 -08:00
Benjamin Elder
45f910e79e update hack/tools README.md
bazel tools are no-more
2021-03-07 13:10:43 -08:00
Benjamin Elder
f32bfe10b7 drop bazel from make verify QUICK=true
it's faster than ever, but also more pointless than ever. most future development has no need to run this
2021-03-07 13:03:17 -08:00
Benjamin Elder
ac02163991 update verify-bazel.sh comments 2021-03-07 13:02:39 -08:00
Benjamin Elder
0e8def03aa remove hack/update-workspace-mirror.sh
this was used to mirror certain bazel dependencies.
2021-03-07 12:56:45 -08:00
Benjamin Elder
b0144538da cleanup verify-gofmt.sh
- clarify comments
- simplify to just use gofmt from path
- setup go env instead of just verify go version
2021-03-07 12:51:33 -08:00
Benjamin Elder
e55e41b86a update print-workspace-status.sh comment 2021-03-07 12:47:37 -08:00
Benjamin Elder
03576473ce don't search bazel output paths for binaries 2021-03-07 12:47:00 -08:00
Kubernetes Prow Robot
ed978f6549
Merge pull request #99882 from BenTheElder/clean-bazel
cleanup bazel build files in-tree with make clean
2021-03-07 10:07:42 -08:00
Kubernetes Prow Robot
90851a0fb5
Merge pull request #99905 from BenTheElder/shellchecked
update verify-shellcheck to v0.7.1, fix nits, multi-arch digest pinning, fix new lint errors
2021-03-06 22:17:53 -08:00
Joe Betz
293e07a836 Add Apply functions to client-gen 2021-03-06 20:49:06 -05:00
Kubernetes Prow Robot
36244f31ef
Merge pull request #99662 from swetharepakula/eps-ga-api-changes
Graduate EndpointSlice API to GA
2021-03-06 15:23:54 -08:00
Benjamin Elder
f643388cb4 allo overriding docker in shellcheck 2021-03-06 13:28:58 -08:00
Benjamin Elder
a0cd54a7f1 fix trivial shell quoting issues surfaced by shellcheck v0.7.1 2021-03-06 13:19:17 -08:00
Benjamin Elder
7705d8c3de upgrade shellcheck to v0.7.1, use multi-arch digest 2021-03-06 13:14:28 -08:00
Kubernetes Prow Robot
849f82d2a9
Merge pull request #99874 from ehashman/env-for-node-e2e
Add golang env setup to node e2e
2021-03-06 12:50:45 -08:00
Benjamin Elder
5e682d1a43 fix shellcheck success / failure messages 2021-03-06 10:49:13 -08:00
Kubernetes Prow Robot
f55a4ce84f
Merge pull request #99090 from adisky/logcheck3
Add tool to check use of unstructured logs
2021-03-06 02:49:41 -08:00
JunYang
72271dcc9c Fix error path in file /verify-prerelease-lifecycle-tags.sh.
Signed-off-by: JunYang <yang.jun22@zte.com.cn>
2021-03-06 15:32:07 +08:00
Benjamin Elder
c39ff2a05c cleanup bazel build files in-tree in make clean
now that bazel is removed, this automates cleanup.
2021-03-05 18:03:00 -08:00
Elana Hashman
7c2e147c4f
Add golang env setup to node e2e 2021-03-05 16:04:44 -08:00
Swetha Repakula
a9891b4b9b Graduate EndpointSlice API to GA
* Removes discovery v1alpha1 API
  * Replaces per Endpoint Topology with a read only DeprecatedTopology
  in GA API
  * Adds per Endpoint Zone field in GA API
2021-03-05 12:02:41 -08:00
Aditi Sharma
2ad5601a83 Add scripts to use klog/logcheck
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2021-03-05 08:17:34 +00:00
Kubernetes Prow Robot
466e730259
Merge pull request #99816 from BenTheElder/no-shellcheck-failures
banish .shellcheck_failures
2021-03-04 18:35:12 -08:00
Kubernetes Prow Robot
9cea3f88ef
Merge pull request #99810 from BenTheElder/fix-junit-deps
disable colors in zeitgeist so as not to break shell2junit
2021-03-04 18:35:03 -08:00
Benjamin Elder
60d50f4ce8 banish .shellcheck_failures
we've eliminated these. don't allow any regression.
this should also be much faster now.
2021-03-04 16:32:17 -08:00
Benjamin Elder
fbfbe289c4 use sed to drop escape codes from zeitgeist output 2021-03-04 14:59:52 -08:00
Kubernetes Prow Robot
03d242665d
Merge pull request #99012 from jpbetz/apply-client-go-builders2
Apply Builders for client-go's typed client
2021-03-04 14:40:55 -08:00
Benjamin Elder
c54bfc4adf disable colors in zeitgeist so as not to break shell2junit 2021-03-04 13:58:13 -08:00
Kubernetes Prow Robot
e959ecc1e6
Merge pull request #99681 from shiyajuan123/master
add descriptions to these event/types.go files
2021-03-04 11:01:07 -08:00
Joe Betz
09cc895c84 Add apply configuration generator 2021-03-04 10:29:54 -08:00
Kubernetes Prow Robot
2e39df89ac
Merge pull request #97743 from dims/support-m1-macbook-darwin/arm64-as-client
Support M1 MacBooks darwin/arm64 on the client-side
2021-03-04 04:18:09 -08:00
Sascha Grunert
abf85d70c2
Change KUBE_PARALLEL_BUILD_MEMORY to 20 GiB
A benchmark with go1.16 on amd64 resulted in an overall maximum memory
usage of 15GiB. This means we now lower the `KUBE_PARALLEL_BUILD_MEMORY`
to `20` to still have some room left.

The benchmark has been done with the following `Dockerfile`:

```dockerfile
FROM k8s.gcr.io/build-image/kube-cross:v1.16.0-1
RUN apt-get update && apt-get install -y time

WORKDIR /go/src/k8s.io/kubernetes
RUN git clone https://github.com/kubernetes/kubernetes
ENV KUBE_PARALLEL_BUILD_MEMORY=0
RUN /usr/bin/time -v make -C kubernetes cross-in-a-container
```

The value of interest from the output:

```
Maximum resident set size (kbytes): 1847108
```

The RSS is not the only value we have to consider. During the runtime I
measured the usage of the cached memory, which gets peaks up to 15GiB.

Test machine specs:
- CPU: 2 x Intel Scalable Gold 5120 28-Core Processor @ 2.2GHz
- RAM: 384GB
- Disk: 1 x 3.8TB NVME
- OS: Debian 10 (buster)

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-03-04 12:11:20 +01:00
Kubernetes Prow Robot
9ed4d94e69
Merge pull request #99724 from thockin/fix-xargs-mutually-exclusive-in-update-vendor
Fix hack/update-vendor.sh to not warn on xargs
2021-03-04 02:08:44 -08:00
navist2020
bb88381bf1 Add descriptions to api/authorization/*/types.go 2021-03-04 14:52:36 +08:00
Kubernetes Prow Robot
9658145f8a
Merge pull request #99655 from liggitt/min-go-version
Update go version check to 1.16+
2021-03-03 20:13:59 -08:00
Kubernetes Prow Robot
7b0ad65d4d
Merge pull request #99288 from supriya-premkumar/ineffassign
Adds ineffassign to GO linter script.
2021-03-03 14:40:46 -08:00
Kubernetes Prow Robot
e5538fa94f
Merge pull request #98210 from cici37/fix
Fix flag passing in CCM
2021-03-03 14:40:01 -08:00
Tim Hockin
9f56205bbb Fix hack/update-vendor.sh to not warn on xargs
xargs -L and -n are strictly incompatible with -I.  Use shell loops
instead.  This does not seem to have any net impact other than making
warnings go away.
2021-03-03 14:19:28 -08:00
Supriya Premkumar
e52e5e486c
Adds ineffassign to GO linter script.
Changes:
 - Enables ineffassign check in the verify scripts.
 - Fixes lint errs.
2021-03-03 08:28:10 -08:00
shiyajuan123
e726ce97fb add descriptions to these event/types.go files 2021-03-03 19:06:50 +08:00
Stephen Augustus
093967606b hack/tools: Update zeitgeist to v0.2.0 to drop import cycle
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-03 05:42:05 -05:00
Davanum Srinivas
f719624654
Support M1 MacBooks darwin/arm64 on the client-side
testing using:
```
build/run.sh make generated_files && make quick-release-images
```

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-03-02 20:50:00 -05:00
Kubernetes Prow Robot
28feb8e30d
Merge pull request #96882 from saschagrunert/parallel-build-configurable
Make parallel build memory threshold configurable
2021-03-02 16:51:19 -08:00
Kubernetes Prow Robot
267afe2358
Merge pull request #99526 from chymy/fix-staticcheck-failed
Fix staticcheck failures for vendor/k8s.io/apiserver/pkg/registry/generic
2021-03-02 14:47:32 -08:00
Kubernetes Prow Robot
3c514ae588
Merge pull request #99621 from nikhita/fix-verify-description
hack/verify-description.sh: correctly look for versioned API types
2021-03-02 12:16:27 -08:00
Jordan Liggitt
5e9189289e Update go version check to 1.16+ 2021-03-02 15:11:46 -05:00
Kubernetes Prow Robot
e4e9c31218
Merge pull request #98572 from justaugustus/go116
[go1.16] Update to go1.16
2021-03-02 08:57:19 -08:00
Nikhita Raghunath
4b9b926e5d hack/verify-description.sh: correctly look for versioned API types
`find_files` had incorrect regexes which led to `genswaggertypedocs`
never being invoked. This commit updates the regex to correctly
look for versioned API types.go files.

Since `genswaggertypedocs` was never invoked, there are many API types
with missing descriptions. This commit lists these `types.go` files
in `hack/.descriptions_failures`.

The `verify-description.sh` script skips running `genswaggertypedocs`
on the files listed in `hack/.descriptions_failures`.
2021-03-02 21:50:40 +05:30
Kubernetes Prow Robot
f79795d718
Merge pull request #99521 from dekkagaijin/build
Prevent CGO and STATIC_OVERRIDES from trampling themselves if evaluated multiple times
2021-03-02 01:23:31 -08:00
Jordan Liggitt
ecef45df84 [go1.16] bump golang.org/x/... dependencies
hack/pin-dependency.sh golang.org/x/crypto latest
hack/pin-dependency.sh golang.org/x/net latest
hack/pin-dependency.sh golang.org/x/exp latest
hack/pin-dependency.sh golang.org/x/sys latest
hack/pin-dependency.sh golang.org/x/time latest
hack/pin-dependency.sh golang.org/x/tools latest

hack/lint-dependencies.sh
hack/pin-dependency.sh dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037
hack/pin-dependency.sh golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f
hack/pin-dependency.sh golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449

hack/lint-dependencies.sh

hack/update-internal-modules.sh
hack/update-vendor.sh

Co-authored-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:01 -05:00
Stephen Augustus
3c2824e3db [go1.16] go.mod: update to go1.16
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-03-02 00:38:00 -05:00
cici37
edc5b58e23 Update BUILD and staticcheck. 2021-03-01 10:22:06 -08:00
SataQiu
00ca55dd05 fix the bug that hack/update-vendor.sh exits with error but no indication of failure 2021-03-01 23:16:47 +08:00
Benjamin Elder
d296698b1a remove BUILD copy from verify-openapi-spec.sh 2021-02-28 15:57:13 -08:00
Benjamin Elder
d9ef7cbe8c drop bazel related tools from hack/tools module 2021-02-28 15:17:29 -08:00
Benjamin Elder
56e092e382 hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
Benjamin Elder
95e4a6bcda remove now-unecessary logic from hack/verify-bazel.sh 2021-02-28 15:16:53 -08:00
Benjamin Elder
a1f2787897 automate removing bazel in hack/update-bazel.sh 2021-02-28 15:16:53 -08:00
Kubernetes Prow Robot
a185bafa0c
Merge pull request #99549 from BenTheElder/conformance-make
conformance.yaml: generate with make
2021-02-28 05:30:39 -08:00
Benjamin Elder
c1c3fdefe3 port conformance yaml generation to hack 2021-02-28 00:54:54 -08:00