Commit Graph

461 Commits

Author SHA1 Message Date
Patrick Ohly 1e9c97c387 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)

Kubernetes-commit: 1aceac797d404b4ac3b3d02fe43d495d1f645aba
2021-10-07 16:38:21 +02:00
Kubernetes Publisher b079ce7ebe Merge pull request #110378 from lucacome/bump-grpc
Bump grpc to v1.47.0

Kubernetes-commit: de5982637aebe17b0fa4a814ec1e6675c0132ddd
2022-06-14 20:19:22 +00:00
Luca Comellini d4b19fdfbe Bump grpc to v1.47.0
Signed-off-by: Luca Comellini <luca.com@gmail.com>

Kubernetes-commit: 51fafd7de3e0d71d98a1f9e10d3801f157472ae3
2022-06-13 22:08:47 -07:00
Kubernetes Publisher 9dc262b894 Merge pull request #110520 from dims/update-gopkg.in/yaml.v3-to-v3.0.1
Update gopkg.in/yaml.v3 to v3.0.1

Kubernetes-commit: 3375f5773b4371bc4975879521002b16ed8f0f56
2022-06-13 08:17:13 +00:00
Davanum Srinivas 524d2deb9f Update gopkg.in/yaml.v3 to v3.0.1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 68b414764bfa32c3232df7c7455b77e8e8c8ecd7
2022-06-11 20:39:40 -04:00
Kubernetes Publisher 1854cf16d8 Merge pull request #109891 from pohly/log-dependency-update
dependencies: logr and zapr v1.2.3

Kubernetes-commit: bf52c1fd46a6773b9d653ef97d94502c6e0564e5
2022-05-09 19:27:47 +00:00
Patrick Ohly a1f6f50fa6 dependencies: logr and zapr v1.2.3
The updated zapr is more resilient against MarshalLog crashing. Not a known
problem in Kubernetes, though.

Kubernetes-commit: 3e6974e0ba67a8f598e7bc4ccedfdab928935551
2022-03-31 11:26:57 +02:00
Kubernetes Publisher d768d00ec6 Merge pull request #109804 from cici37/celUpdate
Bump cel-go to v0.11.2

Kubernetes-commit: b7c4d243de12a30bba02e23777c8ff1627263f89
2022-05-05 11:02:43 +00:00
cici37 b94ba5fcd4 Update go-control-plane, cncf/xds/go, cncf/udpa/go and remove unused versions
Kubernetes-commit: a3587c12da7f8c87e6676f472dba39f1acbae28f
2022-05-04 18:45:22 -07:00
cici37 256fe727af Update GRPC
Kubernetes-commit: 334d8fb7a2e85d58513c2d3fae113995c8165a4b
2022-05-04 18:41:20 -07:00
cici37 7a9bd5f149 Update genproto and antlr.
Kubernetes-commit: e8f6184d8682bd4510d4e18c7c04b5799367ac51
2022-05-04 18:37:30 -07:00
cici37 a1803c13f5 Bump cel-go to v0.11.2
Kubernetes-commit: a86dd2915771f280ff095409fc2ee917cee3c2e3
2022-05-04 18:32:06 -07:00
Kubernetes Publisher 187f0b3d44 Merge pull request #109440 from liggitt/gomod-1.18
update go.mod files to go 1.18

Kubernetes-commit: cb7beb591216de93bef22525a6c5f0e435e21789
2022-05-05 03:02:00 +00:00
Jordan Liggitt 0d3dce5f71 Regenerate vendor
Kubernetes-commit: 9e1064a26bfdc18b3272c3d9031d729793725392
2022-05-04 10:27:41 -04:00
Kubernetes Publisher e03a8f97e7 Merge pull request #109031 from Jefftree/openapiv3beta
OpenAPI V3 Enable Beta

Kubernetes-commit: 904c30562a9a34d26ff3e76db29d00daea2e0f60
2022-03-30 05:39:38 +00:00
Jefftree 4d5133b01d generated: Update kube-openapi and vendor
Kubernetes-commit: 550d6383b5219ac43b8c86cf57807c47b82919aa
2022-03-28 13:20:46 -07:00
Kubernetes Publisher 86de04d897 Merge pull request #108758 from fengzixu/improvement-volume-health
re-push "add volume kubelet_volume_stats_health_abnormal to kubelet #105585"

Kubernetes-commit: b0254c8a0b202083b12fbfaae7ff1ba4f7288ca0
2022-03-30 01:36:44 +00:00
Kubernetes Publisher 85302b09a5 Merge pull request #108256 from bertinatto/kubelet-attach-detach
Update EnableControllerAttachDetach documentation

Kubernetes-commit: 1cddd3895691fd0d6c5d2de3137ac543442490ce
2022-03-30 01:36:43 +00:00
Kubernetes Publisher 6b8ced71e4 Merge pull request #108992 from alexzielenski/cache-busting-client-go
client-go: OpenAPI v3 support

Kubernetes-commit: 656dc213ce43f1ecfa7f54eb1f01864468f8f0e2
2022-03-29 05:35:10 +00:00
Kubernetes Publisher 29297a3375 Merge pull request #108629 from skitt/blang-semver-v4
Upgrade to blang/semver/v4 v4.0.0

Kubernetes-commit: 6571eb24508657ad42ebdcb387aee6f532ea0822
2022-03-29 01:38:26 +00:00
Alexander Zielenski d4912b731c update vendor
client-go depends on more of kube-openapi v3 now

Kubernetes-commit: bb799d97066bbae4eaacd2ecc2a57f7fd42fa142
2022-03-28 10:07:56 -07:00
Stephen Kitt 27b424810b Upgrade to blang/semver/v4 v4.0.0
This is the first version to be fully go-mod-compatible.

Signed-off-by: Stephen Kitt <skitt@redhat.com>

Kubernetes-commit: 080c6c711ebf527d5494732b4b41d074ab02733f
2022-03-17 11:16:06 +01:00
Kubernetes Publisher 6039e861f1 Merge pull request #108996 from cici37/errUpdate
Bump kube-openapi and update err handling

Kubernetes-commit: 898443f40583cd0fd864e9b11c8156faf64b680a
2022-03-27 01:37:15 +00:00
cici37 c301eec52b Bump kube-openapi
Kubernetes-commit: 383eb99bebdd5746732b7f6789907ea3598ee98e
2022-03-24 15:11:08 -07:00
Kubernetes Publisher f5e4704ebe Merge pull request #109040 from jpbetz/revert-cel-bump
Revert #108954: Use CEL EagerlyValidateDeclarations to improve compilation performance

Kubernetes-commit: f411c4068c89c540654a774178d55d74c927e2f9
2022-03-26 05:34:20 +00:00
Joe Betz 089ad4b231 Revert "Bump CEL to 0.11.2"
This reverts commit 4c90653d19471f0116cb988872cfdffec2e8e212.

Kubernetes-commit: 4fba6adc919542157bd5026161de020b611507b3
2022-03-25 16:46:52 -04:00
Kubernetes Publisher 1ecae0c167 Merge pull request #108954 from jpbetz/cel-0.11.1
Use CEL EagerlyValidateDeclarations to improve compilation performance

Kubernetes-commit: 5e63432f79357c376d920ae35409e98502bec6ec
2022-03-25 18:11:50 +00:00
Joe Betz d42713beba Bump CEL to 0.11.2
Kubernetes-commit: 4c90653d19471f0116cb988872cfdffec2e8e212
2022-03-24 11:34:14 -04:00
Kubernetes Publisher 29788c91de Merge pull request #108847 from adisky/update-credential-api
Move kubelet credential provider feature flag to beta and update the api's

Kubernetes-commit: 68cf2a60c60725ce6943b49a10bf8c65bdff56b9
2022-03-25 05:32:43 +00:00
Alex Zielenski 4e9c847d41 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

Kubernetes-commit: 11b3a18cca745485e1033be8d62a1d0cde5a1d1d
2022-03-24 21:36:03 +00:00
Kubernetes Publisher 56ae7cb809 Merge pull request #108725 from pohly/klog-flush-and-exit
klog v2.60.1

Kubernetes-commit: 56f45c5c811ba23934915b1a1330d87c58bddf07
2022-03-24 09:37:53 +00:00
Kubernetes Publisher 7e302d9a9c Merge pull request #108841 from tengqm/fix-kubeletcfg-docstring
Fix doc strings for kubelet config APIs

Kubernetes-commit: 3a2509b60e39ad38a2c458c7528cbffae2a45110
2022-03-24 02:17:47 +00:00
Kubernetes Publisher 9660918abc Merge pull request #108644 from Jefftree/googleapis-gnostic
googleapis/gnostic -> google/gnostic and update kube-openapi

Kubernetes-commit: b195a64d45e1880878a22d178055f1b4220dcb43
2022-03-19 19:01:39 +00:00
Kubernetes Publisher 7253a4b759 Merge pull request #108731 from mborsz/revert-105585-improvement-volume-health
Revert "add volume kubelet_volume_stats_health_abnormal to kubelet"

Kubernetes-commit: 9cb9a29f349c3501aa8233a00e65743a2894cd55
2022-03-16 18:32:50 +00:00
Patrick Ohly 015b91ad0c klog v2.60.1
The new release supports FlushAndExit and contextual logging.

Kubernetes-commit: 09aa1071cdde5ebc2c931c994fbb1e974c2a1515
2022-03-16 09:03:45 +01:00
Jefftree 714a7e28fc googleapis/gnostic -> google/gnostic
Kubernetes-commit: 8a1d5947ad34ba275192341baa4e5fef8e6c7f24
2022-03-15 20:36:21 -07:00
Kubernetes Publisher e59c6ff1ab Merge pull request #105585 from fengzixu/improvement-volume-health
add volume kubelet_volume_stats_health_abnormal to kubelet

Kubernetes-commit: 1a5abe5d1f837b8269b857354a2fd32b82a771bf
2022-03-15 14:30:27 +00:00
Kubernetes Publisher c60e0bb146 Merge pull request #108643 from liggitt/cobra
Update cobra to v1.4.0

Kubernetes-commit: 9d512581b85ae8f2f315e042ed4bfc76d921bfb4
2022-03-11 06:32:53 +00:00
Jordan Liggitt 02d06d209a Update cobra to v1.4.0
Kubernetes-commit: 60b9af476f7f01f47396e4ddd491f66931159597
2022-03-10 16:19:43 -05:00
Kubernetes Publisher 3c86bb4dc6 Merge pull request #108328 from dgrisonnet/fix-go-collector
bump client_golang to v1.12.1

Kubernetes-commit: b181e174f25df752eb176c2393b95569646230d3
2022-02-24 18:25:27 +00:00
Damien Grisonnet 1759141c61 bump client_golang to v1.12.1
Bump client_golang to v1.12.1 to fix a concurrency issue in the Go
Collector that was introduced by the library in v1.12.0.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>

Kubernetes-commit: 7f3f8d25c856e3075d8526dc918ca0965bd4ffae
2022-02-24 10:25:12 +01:00
Kubernetes Publisher 68247d1511 Merge pull request #107105 from justaugustus/go118
golang: Update to go1.18rc1

Kubernetes-commit: bda996e6a7cd115d76ebf1e0c127bee68e06269a
2022-02-21 18:29:19 +00:00
Stephen Augustus 6dbee68121 generated: Run hack/lint-dependencies.sh and hack/update-vendor.sh
Also runs:
hack/pin-dependency.sh golang.org/x/mod \
  v0.6.0-dev.0.20220106191415-9b9b3d81d5e3

Signed-off-by: Stephen Augustus <foo@auggie.dev>

Kubernetes-commit: 4b1bd548bbe4d71609c65b050b69f63af1ca81d1
2021-12-18 15:55:39 -05:00
Stephen Augustus 957b9d1e9e [go1.18] Bump golang.org/x/... dependencies
hack/pin-dependency.sh golang.org/x/crypto master
hack/pin-dependency.sh golang.org/x/net master
hack/pin-dependency.sh golang.org/x/oauth2 master
hack/pin-dependency.sh golang.org/x/sync master
hack/pin-dependency.sh golang.org/x/sys master
hack/pin-dependency.sh golang.org/x/term master
hack/pin-dependency.sh golang.org/x/time master
hack/pin-dependency.sh golang.org/x/tools master

Signed-off-by: Stephen Augustus <foo@auggie.dev>

Kubernetes-commit: e6e7a42480f235949a11e0f14a3b8a60ba43bcb0
2021-12-18 15:41:57 -05:00
Kubernetes Publisher 0f4ac42499 Merge pull request #108059 from RaghavRoy145/k8s-utils-update
Vendor in k8s.io/utils Changes

Kubernetes-commit: 8bae9bea45de30cc8eb3a3da604abd01376ffbd8
2022-02-11 18:27:23 +00:00
Raghav Roy 3d95370113 Updated k8s.io/utils dependency
Signed-off-by: Raghav Roy <raghavroy145@gmail.com>

Kubernetes-commit: e167d44a173991422b748afe1b9ed9a82bf6efa4
2022-02-11 13:03:54 +05:30
Kubernetes Publisher 916d4bfdbc Merge pull request #107112 from linxiulei/fix_pidmax
Consider threads-max when deciding MaxPID.

Kubernetes-commit: 40c2d049465417f510e4182b05953a49fc5693d4
2022-02-10 06:12:27 +00:00
Kubernetes Publisher 6c96abf87a Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig
Remove dynamic kubelet config

Kubernetes-commit: 38e9a29620d667069f3b6fa157e29c2a3b758e37
2022-01-26 05:53:19 +00:00
Kubernetes Publisher 44a2c85027 Merge pull request #105632 from xens/fix/kubectl-socks5-proxy2
Add SOCKS5 proxy support for kubectl exec

Kubernetes-commit: d10161b45b751df45701e343599476e27d533d58
2022-01-22 01:44:32 +00:00
Romain Aviolat 457a023e0a feat: add missing SOCKS5 features
Goal of this commit is to add some missing features when the
Kubernetes API is accessed through a SOCKS5 proxy. That's for
example the case when port-forwarding is used (`kubectl port-forward`)
or when exec'ing inside a container (`kubectl exec`), with this
commit it'll now be possible to use both.

Signed-off-by: Romain Aviolat <romain.aviolat@kudelskisecurity.com>
Signed-off-by: Romain Jufer <romain.jufer@kudelskisecurity.com>

Kubernetes-commit: 0a98875e9572d998fbdf3bcdaef4961715b8bc06
2022-01-17 15:28:44 +01:00