Commit Graph

2347 Commits

Author SHA1 Message Date
Dave Chen
d61adab518 Stop using the deprecated Measure method
As what suggested by Ginkgo migration guide, `Measure` node was
deprecated and replaced with `It` node which creates `gmeasure.Experiment`.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-11 17:40:33 +08:00
Jiahui Feng
0dc3957bb5 generated: ./hack/update-vendor.sh 2022-07-08 12:03:43 -07:00
Dave Chen
f792256954 e2e: adapt output tests to Ginkgo v2 and Gomega 1.19
Full stack traces are on by default. The approach for collecting results is
different. Tests run in their own goroutine, therefore runTests is no longer
part of their callstack. To cover stack traces with more than one entry, a new
test case gets added with a separate helper function.

Gomega object formatting now includes the type.

This removes the last remaining reference to Ginkgo v1.

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
375b2a5fb2 Build Ginkgo binary
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:46:11 +08:00
Dave Chen
857458cfa5 update ginkgo from v1 to v2 and gomega to 1.19.0
- update all the import statements
- run hack/pin-dependency.sh to change pinned dependency versions
- run hack/update-vendor.sh to update go.mod files and the vendor directory
- update the method signatures for custom reporters

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-07-08 10:44:46 +08:00
Patrick Ohly
3581e30883 build: update to klog v2.70.1
This makes ktesting more resilient against logging from leaked goroutines,
which is a problem that came up in kubelet node shutdown
tests (https://github.com/kubernetes/kubernetes/issues/110854).
2022-07-07 12:54:08 +02:00
Dave Chen
597071af17 Bump kube-openapi to the latest
This will help us to get rid of `Ginkgo` v1 dep.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-29 11:47:18 +08:00
Kubernetes Prow Robot
123713b496 Merge pull request #110504 from pohly/kubelet-shutdown-test
kubelet: convert node shutdown manager to contextual logging
2022-06-27 18:10:15 -07:00
Patrick Ohly
65385fec20 kubelet: convert node shutdown manager to contextual logging
This will make output checking easier (done in a separate commit). kubelet
itself still uses the global logger.
2022-06-24 11:20:34 +02:00
Kubernetes Prow Robot
487512bb56 Merge pull request #109510 from sugangli/pinhole-fw
Firewall Pinhole Fix for ILB and NetLB
2022-06-23 16:13:20 -07:00
Kubernetes Prow Robot
801bcfeea7 Merge pull request #110731 from jkh52/update-netproxy
Bump konnectivity-client to 0.0.32
2022-06-23 12:41:20 -07:00
Sugang Li
c64846da00 update kube-controller-manager dependencies 2022-06-23 18:07:18 +00:00
Kubernetes Prow Robot
272386c9b6 Merge pull request #110496 from kolyshkin/runc-1.1.3
vendor: bump runc to 1.1.3
2022-06-23 07:59:43 -07:00
Joseph Anttila Hall
f5c584a020 Bump konnectivity-client to 0.0.32 2022-06-22 17:22:42 -07:00
Patrick Ohly
f05e327ca6 build: update to klog v2.70.0
The main practical advantage is that klog.Fatal no longer dumps the backtrace
of all goroutines.
2022-06-22 16:29:51 +02:00
Patrick Ohly
1aceac797d logs: make LoggingConfiguration an unversioned API
Making the LoggingConfiguration part of the versioned component-base/config API
had the theoretic advantage that components could have offered different
configuration APIs with experimental features limited to alpha versions (for
example, sanitization offered only in a v1alpha1.KubeletConfiguration). Some
components could have decided to only use stable logging options.

In practice, this wasn't done. Furthermore, we don't want different components
to make different choices regarding which logging features they offer to
users. It should always be the same everywhere, for the sake of consistency.

This can be achieved with a saner Go API by dropping the distinction between
internal and external LoggingConfiguration types. Different stability levels of
indidividual fields have to be covered by documentation (done) and potentially
feature gates (not currently done).

Advantages:

- everything related to logging is under component-base/logs;
  previously this was scattered across different packages and
  different files under "logs" (why some code was in logs/config.go
  vs. logs/options.go vs. logs/logs.go always confused me again
  and again when coming back to the code):

  - long-term config and command line API are clearly separated
    into the "api" package underneath that

  - logs/logs.go itself only deals with legacy global flags and
    logging configuration

- removal of separate Go APIs like logs.BindLoggingFlags and
  logs.Options

- LogRegistry becomes an implementation detail, with less code
  and less exported functionality (only registration needs to
  be exported, querying is internal)
2022-06-17 20:22:13 +02:00
Kubernetes Prow Robot
4b024fc4ee Merge pull request #110459 from wangyysde/promote-pod-security-to-ga
PodSecurity: promote config and feature gate to GA
2022-06-15 14:41:22 -07:00
wangyysde
ab66a38194 PodSecurity: promote config and feature gate to GA
Signed-off-by: wangyysde <net_use@bzhy.com>
2022-06-15 09:29:47 +08:00
Kubernetes Prow Robot
de5982637a Merge pull request #110378 from lucacome/bump-grpc
Bump grpc to v1.47.0
2022-06-14 10:59:33 -07:00
Kubernetes Prow Robot
7c596b901d Merge pull request #110519 from dims/update-etcd-packages-to-v3.5.4
Update etcd packages to v3.5.4
2022-06-13 22:21:44 -07:00
Luca Comellini
51fafd7de3 Bump grpc to v1.47.0
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2022-06-13 22:08:47 -07:00
Kubernetes Prow Robot
f15b0d1bd7 Merge pull request #110489 from pacoxu/kubeadm-coredns-v1.9.3
kubeadm: upgrade coredns to v1.9.3
2022-06-13 12:16:12 -07:00
Kubernetes Prow Robot
0fe0dbf3fb Merge pull request #110518 from dims/switch-to-released-version-of-v3.8.0-github.com/emicklei/go-restful/v3
Switch to released version of v3.8.0 - github.com/emicklei/go-restful/v3
2022-06-13 10:30:11 -07:00
Davanum Srinivas
68b414764b Update gopkg.in/yaml.v3 to v3.0.1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-11 20:39:40 -04:00
Davanum Srinivas
4672bfa26f update etcd packages to v3.5.4
in e9e8be3 we updated etcd server components to 3.5.4, here let's update the vendor/ as well to match

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-11 17:33:43 -04:00
Davanum Srinivas
6f2889718f Switch to released version of v3.8.0 - github.com/emicklei/go-restful/v3
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-11 11:27:08 -04:00
Kubernetes Prow Robot
867b5cc31b Merge pull request #110513 from dims/switch-to-v1.0.2-of-github.com/chai2010/gettext-go
Switch to v1.0.2 of github.com/chai2010/gettext-go
2022-06-10 19:20:18 -07:00
Kubernetes Prow Robot
3f1a9f9f3e Merge pull request #110512 from dims/switch-to-released-tag-v1.0.0-for-github.com/daviddengcn/go-colortext
Switch to released tag v1.0.0 for github.com/daviddengcn/go-colortext
2022-06-10 18:02:18 -07:00
Kubernetes Prow Robot
48fe99a312 Merge pull request #110511 from dims/switch-to-released-tag-v0.1.0-of-github.com/pquerna/cachecontrol
Switch to released tag v0.1.0 of github.com/pquerna/cachecontrol
2022-06-10 18:02:07 -07:00
Davanum Srinivas
1ff96ede74 Switch to v1.0.2 of github.com/chai2010/gettext-go
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-10 19:58:10 -04:00
Kubernetes Prow Robot
f3f50b4d7c Merge pull request #110510 from dims/switch-to-github.com/MakeNowJust/heredoc-v1.0.0-and-avoid-SHA
Switch to v1.0.0 of github.com/MakeNowJust/heredoc (avoid SHA)
2022-06-10 16:23:44 -07:00
Kubernetes Prow Robot
19814d9773 Merge pull request #110508 from dims/switch-to-release-tag-of-systemstat
Switch to release tag v0.5.0 of systemstat
2022-06-10 14:27:56 -07:00
Davanum Srinivas
8cf2ef5558 Switch to released tag v1.0.0 for github.com/daviddengcn/go-colortext
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-10 17:12:24 -04:00
Kubernetes Prow Robot
59644ff7bd Merge pull request #110371 from andyzhangx/upgrade-go-autorest-adal
upgrade Azure/go-autorest/autorest to v0.11.27
2022-06-10 13:19:56 -07:00
Davanum Srinivas
9e1bbfdc65 Switch to released tag v0.1.0 of github.com/pquerna/cachecontrol
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-10 15:52:44 -04:00
Davanum Srinivas
3990685432 Switch to v1.0.0 of github.com/MakeNowJust/heredoc (avoid SHA)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-10 14:51:33 -04:00
Kubernetes Prow Robot
7e66aa3cfb Merge pull request #110351 from dims/switch-to-v3-of-github.com/emicklei/go-restful
Switch to v3 of github.com/emicklei/go-restful by updating kube-openapi
2022-06-10 09:41:58 -07:00
Davanum Srinivas
5cf5bed016 Switch to release tag v0.5.0 of systemstat
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-10 11:07:22 -04:00
Kubernetes Prow Robot
6e0e9f382e Merge pull request #109194 from pohly/log-tests
log tests
2022-06-10 03:07:46 -07:00
Kir Kolyshkin
865c9e8fb9 vendor: bump runc to 1.1.3
Release notes:
 https://github.com/opencontainers/runc/releases/tag/v1.1.3

In particular, this one is important:

 * Retry on dbus disconnect logic in libcontainer/cgroups/systemd now
   works as intended; this fix does not affect runc binary itself but
   is important for libcontainer users such as Kubernetes. (#3476)

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-06-09 16:19:50 -07:00
Davanum Srinivas
ab690750df Switch to v3 of github.com/emicklei/go-restful
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-09 14:11:41 -04:00
Paco Xu
178dc11b75 kubeadm: upgrade coredns to v1.9.3 2022-06-09 18:45:26 +08:00
andyzhangx
7ac98854e2 upgrade Azure/go-autorest/autorest to v0.11.27
update
2022-06-04 01:52:47 +00:00
Kubernetes Prow Robot
62351e24c5 Merge pull request #109552 from cyclinder/fix_CVE-2022-27191
fix CVE-2022-27191: Bump golang.org/x/crypto to v0.0.0-20220315160706
2022-06-03 11:42:20 -07:00
Kubernetes Prow Robot
451e1fa8bc Merge pull request #109366 from pohly/csi-1.6
dependencies: bump CSI to v1.6.0
2022-06-01 19:03:46 -07:00
Patrick Ohly
04ecc1b63b logs: test JSON output with klog output test
The updated klog provides a reusable test suite for output handling.
Using it increases our test coverage without having to copy the test cases from
there into some JSON specific test suite.
2022-05-31 08:07:37 +02:00
cyclinder
46bbe52c7a ix CVE-2022-27191: Bump golang.org/x/crypto to v0.0.0-20220315160706
Signed-off-by: cyclinder qifeng.guo@daocloud.io
2022-05-13 10:00:40 +08:00
Kubernetes Prow Robot
6e04ca634d Merge pull request #109729 from MikeSpreitzer/wrap-weighted-histograms
Wrap weighted histograms
2022-05-12 12:32:32 -07:00
Patrick Ohly
93199ee1ed dependencies: bump CSI to v1.6.0
The main difference is that GetCapacityResponse.MaximumVolumeSize is no longer
marked as "alpha".
2022-05-09 08:26:20 +02:00
Patrick Ohly
3e6974e0ba dependencies: logr and zapr v1.2.3
The updated zapr is more resilient against MarshalLog crashing. Not a known
problem in Kubernetes, though.
2022-05-06 15:16:56 +02:00