Commit Graph

9276 Commits

Author SHA1 Message Date
Davanum Srinivas
0a5f9115f2
re-add govet and stable metrics
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-23 08:02:54 -04:00
Madhav Jivrajani
b6c00355f8
hack/jenkins: set GODEBUG=x509sha1=1
Temporary fix for Go 1.18 changes made in
https://tip.golang.org/doc/go1.18#sha1

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-03-23 08:02:53 -04:00
Davanum Srinivas
031da66841
Temporarily ignore some verify failures in go1.18"
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-22 20:42:03 -04:00
Davanum Srinivas
d8f1da5ecb
golang: Update to 1.18 from 1.18rc1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-22 09:47:35 -04:00
Jordan Liggitt
60b9af476f Update cobra to v1.4.0 2022-03-10 16:19:43 -05:00
Kubernetes Prow Robot
fabfb03bd2
Merge pull request #108618 from eddiezane/ez/fix-flake-107702
Add env var to verify-typecheck for serial execution
2022-03-09 20:01:47 -08:00
Kubernetes Prow Robot
1a54b398f4
Merge pull request #108603 from chendave/binary
Switch to use the DBG flag to build debug binaries
2022-03-09 18:57:34 -08:00
Eddie Zaneski
50bdc98754
Add env to verify-typecheck for serial execution
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-03-09 18:21:27 -07:00
Dave Chen
ace64c0138 Switch to use the DBG flag to build debug binaries
With the merging of #108371, the old way to build the debug binaries
won't work anymore.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-03-09 14:57:59 +08:00
Kubernetes Prow Robot
19935de5a9
Merge pull request #107410 from margocrawf/master
Ensure static certs in kubeconfig override exec plugin
2022-03-08 11:34:21 -08:00
Margo Crawford
f015fd66ce Check whether static cert is already configured in UpdateTransportConfig
- Also update test-cmd.sh to pass a signing ca to the kube controller
  manager, so CSRs work properly in integration tests.

Signed-off-by: Margo Crawford <margaretc@vmware.com>
2022-03-07 13:54:32 -08:00
Kubernetes Prow Robot
4dda76588f
Merge pull request #108371 from thockin/makefile-dbg-flag
Makefile: add a DBG variable
2022-03-03 12:47:28 -08:00
Mo Khan
4baefef99a
Add enj to hack OWNERS 2022-03-02 10:04:11 -05:00
Tim Hockin
bf27cad256 Build flags: use all= syntax
This has somewhat subtle implications.  For a concrete example, this
changes the `-trimpath` behavior from only affecting the named pkg to
affecting all pkgs, which broke ginkgo, which seems to try to strip its
own `pwd` prefix.  But since that runs in run-in-gopath, and not in
KUBE_ROOT, it fails to strip anything.

e.g.

before this, strings in the binary would be like
    /home/user/kube/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/...
Ginkgo would find its own root as
    /home/user/kube/_output/local/go/src/k8s.io/kubernetes/
so it would produce
    vendor/github.com/onsi/ginkgo/...
in logs.

after this, strings in the binary strip the KUBE_ROOT and be like:
    _output/local/go/src/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/...
Ginkgo would find its own root as
    /home/user/kube/_output/local/go/src/k8s.io/kubernetes/
so it would not strip anything, and produce
    _output/local/go/src/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/...
in logs.
2022-03-01 08:48:31 -08:00
Tim Hockin
ed5e549cde Makefile: Add a DBG flag to build debug binaries
Now `make DBG=1` will produce binaries with no optimizaions and no
inlining, but with symbols and DWARF information.
2022-03-01 08:47:34 -08:00
Tim Hockin
4a0c6c2444 Slightly nicer output when building
before:

```
$ make generated_files
+++ [0226 13:42:17] Building go targets for linux/amd64:
    hack/make-rules/helpers/go2make
> non-static build: k8s.io/kubernetes/hack/make-rules/helpers/go2make
```

after:

```
$ make generated_files
+++ [0226 14:30:08] Building go targets for linux/amd64
    k8s.io/kubernetes/hack/make-rules/helpers/go2make (non-static)
```
2022-02-27 10:29:59 -08:00
Tim Hockin
e671fea954 Remove hack/tools/Makefile 2022-02-26 12:57:10 -08:00
Aditi Sharma
2e7b7832f8 Detect CNI installtion in local-up-cluster.sh
Signed-off-by: Aditi Sharma <adi.sky17@gmail.com>
2022-02-23 21:35:58 +05:30
Kubernetes Prow Robot
d5c26190ac
Merge pull request #108160 from adisky/fix-pull-node-e2e
[Fix pull-local-node-e2e] Install CNI and Enable containerd for kubekins docker
2022-02-22 04:35:47 -08:00
Aditi Sharma
98b19dc2e8 Add support to install cni and enable cri
to run pull-kubernetes-local-e2e on containerd
we need to install cni and enable cri for docker
installed in kubekins image
2022-02-22 09:22:19 +05:30
Kubernetes Prow Robot
ffd6482eed
Merge pull request #106630 from howardjohn/protogen/full-package-name
go-to-protobuf: use full path for go_package
2022-02-18 10:20:23 -08:00
Kubernetes Prow Robot
a47c65929a
Merge pull request #107810 from zlabjp/levee-v1-secret
Add v1.Secret to go-flow-levee analysis targets
2022-02-15 14:19:18 -08:00
Eddie Zaneski
040d575e9f
Update sig-cli OWNERS
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-02-14 10:55:35 -07:00
Kubernetes Prow Robot
21c0f6f6ff
Merge pull request #107677 from pohly/scheduler-integration-benchmark
scheduler integration benchmark improvements
2022-02-14 01:23:28 -08:00
Kubernetes Prow Robot
a07241e3e0
Merge pull request #107737 from gnufied/enable-node-restriction-default
Enable node restriction plugin by default for local clusters
2022-02-11 12:57:59 -08:00
Jordan Liggitt
bd405cd8b0 Add check for unused API compatibility fixture files 2022-02-10 17:40:25 -05:00
Kubernetes Prow Robot
a3207872a3
Merge pull request #107481 from shu-mutou/deprecate-dashboard-addon
Remove dashboard cluster addon
2022-02-10 05:35:48 -08:00
Davanum Srinivas
45f30d8a10
use zip instead of git-archive
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-02-07 19:02:03 -05:00
Patrick Ohly
535d885c29 test: fix info message for etcd startup
The output redirection in the info message did not match the actual
invocation (stdout and stderr swapped).
2022-02-07 08:59:19 +01:00
Patrick Ohly
259a8ad0b7 test: allow controlling etcd log level
When running an integration test that measures performance, like for example
test/integration/scheduler_perf, running etcd with debug level output is
undesirable because it creates additional load on the system and isn't
realistic.

The default is still "debug", but ETCD_LOGLEVEL=warn can be used to override
that.
2022-02-07 08:59:19 +01:00
Kubernetes Prow Robot
7f9fb6eaf0
Merge pull request #107877 from endocrimes/dani/default-no-docker
make test-e2e-node: default to containerd
2022-02-06 15:32:52 -08:00
John Howard
38478f7137 Regenerate CRI protos 2022-02-04 16:13:29 -08:00
Mike Spreitzer
3e44d95857 Fixed typo in hack/serve-prom-scrapes.sh 2022-02-04 01:33:06 -05:00
Kubernetes Prow Robot
a5e70054bd
Merge pull request #107162 from ardaguclu/invalidate-cache-after-delete
Add manually invalidate cache documentation into delete
2022-02-02 23:51:45 -08:00
Kubernetes Prow Robot
d4b49be81a
Merge pull request #105300 from nckturner/ccm-flags
Allow cloud controller manager flags to be set in ./hack/local-up-cluster.sh
2022-02-01 23:02:21 -08:00
Danielle Lancashire
9e5fac5bb2 make: test-e2e-node: default to containerd
Since removing dockershim, `make test-e2e-node` will fail by default as
there is no provided container runtime endpoint.

This commit defaults us to using containerd's default socket path as the
local test target, rather than failing hard.
2022-02-01 16:36:06 +01:00
Kubernetes Prow Robot
6dd234d85c
Merge pull request #107386 from ZeusPerez/fix-kubetest-errors-when-executing-local-provider
Fix kubetest errors when executing local provider
2022-01-31 19:56:17 -08:00
Nick Turner
5adc316c13 Allow cloud controller manager flags to be set 2022-01-31 05:00:38 +00:00
Takashi Kusumi
3b9aeb0267 Add v1.Secret to go-flow-levee analysis targets 2022-01-27 11:59:35 +09:00
Kubernetes Prow Robot
dbb5e3fe86
Merge pull request #107663 from hakman/remove_container-runtime_test_scripts
Clean up logic for deprecated flag --container-runtime in scripts
2022-01-25 22:30:25 -08:00
Arda Güçlü
43d8b3459b Add manually invalidate cache documentation into delete
When CRDs are deleted, discovery local cache is not invalidated.
This brings about `resource not found` error when new CRD with same name is created
with different fields(ie. changing scope from cluster-wide to namespaced).
Because this already deleted CRD still stays in serverresources.json and kubectl tries to use it.

This local cached files have 10 minutes TTL. After deletion, if user waits 10 minutes,
files will be expired and deleted and there will be no errors. However, 10 minutes is a long time
and cache needs to be invalidated after deletion occurs.

This PR adds a document into delete command by noting that there might be a need to invalidate discovery
cache when CRD is deleted. In addition to that this PR adds a test to catch this behavior.
2022-01-26 09:01:46 +03:00
Kubernetes Prow Robot
38e9a29620
Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig
Remove dynamic kubelet config
2022-01-25 19:20:25 -08:00
Davanum Srinivas
74569840f7
pull-kubernetes-update ci job needs etcd installed
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-24 16:41:52 -05:00
Hemant Kumar
86fdba352d Always enable node restriction plugin by default 2022-01-24 16:08:36 -05:00
Davanum Srinivas
59f92a41f6
Add a script to help with running make update using docker
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-24 11:21:01 -05:00
ZeusPerez
ddec2a9125 Apply changes requested in the pull-kubernetes-verify failed check 2022-01-20 17:25:52 +01:00
Ciprian Hacman
d01e9cedb1 Clean up logic for deprecated flag --container-runtime in scripts
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-20 11:19:08 +02:00
Sergey Kanzhelev
7e7bc6d53b remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
Kubernetes Prow Robot
feb758027c
Merge pull request #106907 from cyclinder/remove_dockershim_flags
Clean up dockershim flags in the kubelet
2022-01-18 09:09:09 -08:00
Kubernetes Prow Robot
824145d31b
Merge pull request #107516 from MikeSpreitzer/fix-test-integration
Make KUBE_TEST_ARGS come last, so that -args can be used
2022-01-18 07:11:09 -08:00