Commit Graph

225 Commits

Author SHA1 Message Date
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
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
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
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
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
Jordan Liggitt
9e1064a26b Regenerate vendor 2022-05-04 10:27:41 -04:00
Jefftree
550d6383b5 generated: Update kube-openapi and vendor 2022-03-29 17:47:26 -07:00
cici37
383eb99beb Bump kube-openapi 2022-03-26 12:02:05 -07:00
Lubomir I. Ivanov
fe7af1c68b bump k8s.io/system-validators to v1.7.0
- add blkio as an optionally required cgroup
- update blang/semver to v4
- bump the min go version to 1.16
2022-03-25 02:26:01 +02:00
Alex Zielenski
11b3a18cca
Update kube-openapi (#108895)
* upgrade k8s.io/kube-openapi

* fix open-api v3 blank aggregator output

* use keys as API group

in ./hack/update-openapi-spec.sh

* fix import grouping

* update openapiv3 integration tests
2022-03-24 14:01:01 -07:00
Patrick Ohly
09aa1071cd klog v2.60.1
The new release supports FlushAndExit and contextual logging.
2022-03-21 16:23:48 +01:00
Jefftree
8a1d5947ad googleapis/gnostic -> google/gnostic 2022-03-15 20:44:03 -07:00
Raghav Roy
e167d44a17 Updated k8s.io/utils dependency
Signed-off-by: Raghav Roy <raghavroy145@gmail.com>
2022-02-11 13:03:54 +05:30
Patrick Ohly
cb17b76d4d dependencies: update klog to v2.40.1
The new release adds support for multi-line string output (required for
contextual logging) and Verbose.InfoSDepth (required to properly attach
verbosity to some log messages in helper code).
2021-12-19 17:31:25 +01:00
Jordan Liggitt
6e628f9970 bump k8s.io/gengo 2021-12-13 10:05:29 -05:00
Andy Goldstein
60d2481b88
Bump k8s.io/gengo to v0.0.0-20211115164449-b448ea381d54
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2021-12-10 14:30:53 -05:00
Madhav Jivrajani
4ca13e6f0e Bump k8s.io/utils
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-12-09 16:16:27 +05:30
Kubernetes Prow Robot
a8e06cf2bf
Merge pull request #106473 from Dingshujie/fix_inotify_memory_leak
update k/utils to v0.0.0-20211116205334-6203023598ed to fix inotify memory leak
2021-12-08 19:32:09 -08:00
Davanum Srinivas
420145e529
drop things from vendor/ directory
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-12-08 08:07:03 -05:00
DingShujie
25cf49770c update k/utils to v0.0.0-20211116205334-6203023598ed 2021-11-25 09:29:03 +08:00
Jefftree
d01c42c454 go mod vendor 2021-11-16 17:38:55 -08:00
Jiahui (Jared) Feng
73ffb49203 generated: ./hack/update-vendor.sh 2021-11-15 15:54:59 -08:00
Lubomir I. Ivanov
2c5e961d1f vendor: update system-validators to v1.6.0
Includes support for btrfs in the Docker validator
which was added in kubelet ~1.22.
2021-11-10 22:25:31 +02:00
Alper Rifat Ulucinar
38f888bdd1
Bump k8s.io/kube-openapi to commit ee342a809c29
Updates to consume the aggregated OpenAPI spec lazy-marshaling behaviour
introduced with: https://github.com/kubernetes/kube-openapi/pull/251

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
2021-11-08 15:26:10 +03:00
Patrick Ohly
169e8b65a0 klog 2.30.0, logr 1.2.0, zapr 1.2.0
The new releases fix logging of KObj in JSON output: klog implements the new
logr.Marshaler interface and zapr uses it instead of Stringer when logging the
ObjectRef created by KObj.
2021-10-22 15:32:20 +02:00
Madhav Jivrajani
a43fca76ea run hack/{pind-dependency.sh, update-vendor.sh}
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-09-30 19:15:43 +05:30
Patrick Ohly
cb6a653777 klog 2.20.0, logr v1.1.0, zapr v1.1.0
This replaces the experimental logr v0.4 with the stable v1.1.0
release. This is a breaking API change for some users because:
- Comparing logr.Logger against nil is not possible anymore:
  it's now a struct instead of an interface. Code which
  allows a nil logger should switch to *logr.Logger as type.
- Logger implementations must be updated in lockstep.

Instead of updating the forked zapr code in json.go, directly using
the original go-logr/zapr is simpler and avoids duplication of effort.

The updated zapr supports logging of numeric verbosity. Error messages
don't have a verbosity (= always get logged), so "v" is not getting
added to them anymore.

Source code logging for panic messages got fixed so that it references
the code with the invalid log call, not the json.go implementation.

Finally, zapr includes additional information in its panic
messages ("zap field", "ignored key", "invalid key").
2021-09-09 14:43:43 +02:00
Stephen Benjamin
c253235152 vendor: bump k8s.io/util to get fix for LRU cache
This updates the k8s.io/util to pull in the fix for
https://github.com/kubernetes/kubernetes/issues/104452.

Commands run:

  ./hack/pin-dependency.sh k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a
  ./hack/update-vendor.sh
2021-08-19 17:12:16 -04:00
Lars Ekman
c3509f49f9 Update-vendor to add k8s.io/utils/strings/slices/ 2021-08-19 06:56:36 +02:00
Kubernetes Prow Robot
cde45fb161
Merge pull request #104413 from liggitt/openapi-ipvalidation
Bump k8s.io/kube-openapi
2021-08-17 11:42:26 -07:00
Jordan Liggitt
b15c2130aa Bump k8s.io/kube-openapi
Updates to preserve openapi ipv4 validation compatibility with pre-go1.17 behavior
2021-08-17 10:13:40 -04:00
Jordan Liggitt
a619be8e48 bump gengo to include defaulter-gen package support 2021-08-14 11:00:15 -04:00
Mike Spreitzer
dcb298c955 Introduce event clocks based on k8s.io/utils/clock
So we can move off of the apimachinery clock package.

Switch queueset to new clocks.

Removed event clocks based on apimachinery clocks,
because this PR introduces ones based on k8s.io/utils/clock .

Removed interface that is implemented by only one interesting type.

Simplify RealEventClock::EventAfterTime.
2021-08-05 10:21:25 -04:00
Davanum Srinivas
6c72fbaa89
update vendor after switch
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-07 22:31:37 -04:00
Davanum Srinivas
3a221b3332
update to new k8s.io/utils
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-07 22:31:30 -04:00
ironyman
68ccb8a947 Use system-validators v1.5.0 2021-07-02 12:31:42 -07:00
Kubernetes Prow Robot
e6a8bc9fbe
Merge pull request #90368 from serathius/remove-legacy-metrics
Remove legacy metrics client from podautoscaler
2021-06-05 08:44:38 -07:00
Marek Siarkowicz
4ebc0c94a4 Remove legacy metrics client from podautoscaler 2021-06-04 23:06:32 +02:00
Jan Safranek
1d16f934b9 Bump k8s.io/utils
To get io/ConsistentRead updates.
2021-05-26 23:08:03 +02:00
Srini Brahmaroutu
80a5b00445 Removing utils/mount dependencies from vendor 2021-05-25 22:49:38 -07:00
pacoxu
876174125b upgrade klog to v2.9.0
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-05-26 20:19:56 +08:00
Tim Allclair
0005c72285 s/standards/admission/ 2021-05-20 17:28:57 -07:00
Tim Allclair
711b8e3a9a Add staging directory for pod-security-standards subproject 2021-05-19 11:51:50 -07:00
Gautier Delorme
bcdde6bf75 bump k8s.io/kube-openapi
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com>
2021-04-21 10:42:17 +02:00
John Howard
a849c8998c Update kube-openapi and gnostic dependencies
Pulling in https://github.com/kubernetes/kube-openapi/pull/220
2021-04-19 12:24:05 -07:00
Elana Hashman
6b70c8bd8d
Bump klog to 2.8.0, fixing nil panics in KObj 2021-03-12 12:12:00 -08:00
Jordan Liggitt
5515157f82 Update k8s.io/kube-openapi 2021-03-04 22:15:21 -05:00
Lubomir I. Ivanov
b03418cb44 gomod/vendor: update system-validators to v1.4.0
Includes a Docker bump to 20.10.
2021-03-02 21:44:14 +02:00
Benjamin Elder
56e092e382 hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
Patrick Ohly
562a39a2e1 logging: support call depth via logr, structured logging
The new releases of klog (via klogr) and logr expose support for call
traces via a new WithCallDepth API in logr.

The new klogr can be configured to pass structured log entries into
klog instead of turning them into a single text message.
2021-01-28 17:35:28 +01:00