Patrick Ohly
8f8c30ff8f
logging: fix names of keys
...
The stricter checking with the upcoming logcheck v0.4.1 pointed out these names
which don't comply with our recommendations in
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md#name-arguments .
Kubernetes-commit: bc6c7fa91201348d010b638fbadf32007c0ac546
2023-01-16 15:04:01 +01:00
Kubernetes Publisher
ce86ff4a7b
Merge pull request #115238 from thockin/codegen-8-proto-bindings
...
Codegen: move all proto-bindings scripts together
Kubernetes-commit: 600e46801dbda854c88019c56bfd5dea85e916fc
2023-01-22 01:13:51 +00:00
Tim Hockin
72929fc438
Call update-proto-bindings from update-codegen
...
One script to bring them all ...
Kubernetes-commit: 4dae505d531e149881788dc36148602967419c75
2023-01-05 15:41:51 -08:00
Tim Hockin
05e000c1bd
Merge 5 fragile proto-bindings scripts into 1
...
Each of these scripts is basically identical, and all were too brittle.
Now they should be more resilient and easier to manage. The script
still needs to be updated if we add new ones, which I do not love.
More cleanup to follow.
Kubernetes-commit: e0ecccff3f5148cc167117ac73233b4edc1640d8
2023-01-05 13:53:59 -08:00
Kubernetes Publisher
edcec154db
Merge pull request #114609 from pohly/log-runtime-verbosity-level
...
runtime log verbosity level changes
Kubernetes-commit: 92f0818cf2ee9e40b16b76ad5125dd3490d3ec52
2023-01-21 05:13:54 +00:00
Kubernetes Publisher
be793fd445
Merge pull request #115191 from jkh52/zero-one-one
...
Bump konnectivity-client to v0.1.1
Kubernetes-commit: afe936fee5229cfd3d9831f439e8feab98a3fcad
2023-01-21 05:13:52 +00:00
Kubernetes Publisher
23855d3d6c
Merge pull request #115113 from smarterclayton/exponential_context
...
wait: ExponentialBackoffWithContext should take context-aware fn
Kubernetes-commit: b0ed87078e4042c12e456c8427dee0fb947a724c
2023-01-20 17:36:54 +00:00
Kubernetes Publisher
7959088f40
Merge pull request #115211 from apelisse/remove-corev1-from-fieldmanager
...
Remove corev1 from fieldmanager
Kubernetes-commit: 49cd9f673e04a3767d9c180f63038452bceb1c39
2023-01-20 01:12:54 +00:00
Kubernetes Publisher
31aa16a90d
Merge pull request #114544 from ritazh/kmsv2-keyid-staleness
...
[KMSv2] Use status key ID to determine staleness of encrypted data
Kubernetes-commit: 285e7969b27a6b28b0787fc9abedf11e620c261e
2023-01-19 21:27:27 +00:00
Antoine Pelisse
464161ed52
fieldmanager: Use unstructured rather than built-in types to remove dependency
...
Kubernetes-commit: bc0962ad809bc5cd0951a1d643f6769459665711
2023-01-19 10:48:46 -08:00
Antoine Pelisse
2a6ed798c7
fieldmanager: Copy LastAppliedAnnotation to remove dependency on corev1
...
Kubernetes-commit: 577f3d8c9da461da93d4a0b66ca16b2a84f6a4d6
2023-01-19 09:38:04 -08:00
Antoine Pelisse
e19154e9ae
fieldmanager: Move structured benchmarks to their own file
...
Kubernetes-commit: 8d40ba73fba3608e76531b1b33230856a58256ed
2023-01-19 09:37:12 -08:00
Kubernetes Publisher
472273b080
Merge pull request #115187 from thockin/codegen-3-examples-cleanup
...
Fix apiserver example2 to update gen'ed protobufs
Kubernetes-commit: af54e18a4662b18c92b514e5ae9e33171d28fcff
2023-01-19 04:46:23 +00:00
Kubernetes Publisher
b51a237e4c
Merge pull request #115140 from smarterclayton/wait_context
...
wait: Use a context implementation for ContextForChannel
Kubernetes-commit: 8bee5dca1d94625aad8a321d3ed4d1dbeeeb0a62
2023-01-19 04:46:14 +00:00
Joseph Anttila Hall
2e9671b92e
Bump konnectivity-client to v0.1.1
...
Fixes memory leaks.
Upgrades GRPC and ProtoBuf versions.
Kubernetes-commit: 5c01971f2ab77eb93fe99c81386faf7ccbfb0d04
2023-01-19 04:29:11 +00:00
Kubernetes Publisher
f4be1be367
Merge pull request #115147 from alexzielenski/apiserver/policy/multiple-paramkind-bug
...
ValidatingAdmissionPolicy: fix bug preventing multiple policies from using same paramKind
Kubernetes-commit: 06ad4258096621190b23c6e41818715e86291989
2023-01-19 01:10:26 +00:00
Kubernetes Publisher
52b3b18b4c
Merge pull request #115163 from SataQiu/lock-AdvancedAuditing-gate-20230118
...
Lock the AdvancedAuditing feature gate to true
Kubernetes-commit: cc68c06f9cb6c70cbb840a8d7b9ca49eb223cb3f
2023-01-18 16:22:34 +00:00
SataQiu
0f00ee135b
the AdvancedAuditing featuregate has been GA since v1.12, and is locked to ture in v1.27
...
Kubernetes-commit: c25095b2231eb64ac938ae8b3d939c76307da340
2023-01-18 18:50:15 +08:00
Kubernetes Publisher
0bff71021b
Merge pull request #114586 from andrewsykim/apiserver-lease-rename
...
Rename apiserver identity lease labels to apiserver.kubernetes.io/identity
Kubernetes-commit: 46f3821bf4ce0e839a698b7f95f1ee9b08e198cf
2023-01-18 08:18:36 +00:00
Kubernetes Publisher
fbb8099003
Merge pull request #114446 from lengrongfu/feat/clean_up
...
clean up master-service-namespace
Kubernetes-commit: 20c17da14210fbc0e144e0f2ed38a3bf9e98b633
2023-01-18 04:26:27 +00:00
Kubernetes Publisher
c3d6c800b5
Merge pull request #114527 from alexzielenski/apiserver/policy/lockfree-refactor
...
refactor policy admission Validator to be lock free
Kubernetes-commit: 7e0923899fed622efbc8679cca6b000d43633e38
2023-01-18 00:16:02 +00:00
Alexander Zielenski
73db86feab
fix bug with param controllers being removed if used by more than one policy
...
Kubernetes-commit: ecd267d097ec7cd26fa5a6343622c3772f66486f
2023-01-17 15:27:45 -08:00
Kubernetes Publisher
6c75d38fe1
Merge pull request #114542 from pacoxu/EphemeralContainers
...
cleanup: EphemeralContainers feature gate related codes
Kubernetes-commit: c913e6ce62d23b19eebec9beda91d7599bf5099b
2023-01-17 20:36:18 +00:00
Kubernetes Publisher
8f0891c85c
Merge pull request #114922 from ibihim/kmsv2-interface-move
...
[KMSv2] apiserver/kmsv2: mv Service interface into kmsv2
Kubernetes-commit: f7b02260f6a8cc7826040d5fcd265bc15672880f
2023-01-17 20:36:14 +00:00
Clayton Coleman
03e6089ce8
wait: Use a context implementation for ContextForChannel
...
ContextForChannel uses a goroutine to transform a channel close to
a context cancel. However, this exposes a synchronization issue if
we want to unify the underlying implementation between contextless
and with context - a ConditionFunc that closes the channel today
expects the behavior that no subsequent conditions will be invoked
(we have a test in wait_test.go TestUntilReturnsImmediately that
verifies this expectation). We can't unify the implementation
without ensuring this property holds.
To do that this commit changes from the goroutine propagation to
implementing context.Context and using stopCh as the Done(). We
then implement Err() by returning context.Canceled and stub the
other methods. Since our context cannot be explicitly cancelled
by users, we cease to return the cancelFn and callers that need
that behavior must wrap the context as normal.
This should be invisible to clients - they would already observe
the same behavior from the context, and the existing error
behavior of Poll* is preserved (which ignores ctx.Err()).
As a side effect, one less goroutine is created making it more
efficient.
Kubernetes-commit: 95051a63b323081daf8a3fe55a252eb79f0053aa
2023-01-17 15:01:02 -05:00
Clayton Coleman
fbcccd4f68
wait: ExponentialBackoffWithContext should take context-aware fn
...
The condition methods will eventually all take a context. Since we
have been provided one, alter the accepted condition type and
change the four references in tree.
Collers of ExponentialBackoffWithContext should use a condition
aware function (ConditionWithContextFunc). If the context can be
ignored the helper ConditionFunc.WithContext can be used to convert
an existing function to the new type.
Kubernetes-commit: 34bfdc3635cb621d94eebde5d8f4b9c0b933c68e
2023-01-16 14:57:57 -05:00
Kubernetes Publisher
173011e7a5
Merge pull request #115079 from dims/update-to-newer-moby/ipvs-v1.1.0
...
Update to new release of moby/ipvs
Kubernetes-commit: 3613ed04b68156957f58635ecee8746e7fcf2a28
2023-01-15 23:40:12 +00:00
Davanum Srinivas
77e53669a3
Update to new release of moby/ipvs
...
hack/pin-dependency.sh github.com/moby/ipvs v1.1.0
- go to a fixed tag for `vishvananda/netns`
- no more references to `pkg/errors`
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Kubernetes-commit: d9b98bc36a572045851b059f7c7066addaad5703
2023-01-14 16:02:08 -05:00
Andrew Sy Kim
885060394e
apiserver: use the identity value in the apiserver identity hash
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Kubernetes-commit: a7de3e15a50bafdd65adf55f5fdc14567e3fa3e2
2023-01-13 15:49:30 -05:00
Kubernetes Publisher
af2c7c7415
Merge pull request #115039 from apelisse/remove-dependency-fieldmanager
...
fieldmanager: remove dependencies on internal
Kubernetes-commit: 5323d9213a8c68f9279b3b73fc65c663febcfe16
2023-01-13 03:31:40 +00:00
Kubernetes Publisher
ea2eeed670
Merge pull request #114794 from lavalamp/improved-has-synced
...
Do not N^2 loading webhook configurations
Kubernetes-commit: cc9cc4d3eaec45206f353216a1c3ff6edaf07d30
2023-01-13 03:31:39 +00:00
Daniel Smith
f1c42beb68
Fix N^2 startup for webhook configurations
...
Add a "lazy" type to track when an update is needed. It uses a nested
locking technique to avoid extra evaluation calls.
Kubernetes-commit: 5a1091d88d95bd1dd5c27f2c72cee4ecb4219dda
2023-01-09 23:29:25 +00:00
Kubernetes Publisher
c1d39b78f9
Merge pull request #114766 from MadhavJivrajani/prepare-for-go1.20
...
[Prepare for go1.20] *: Bump versions and fix tests
Kubernetes-commit: 4802d7bb62c2623be8e4f940f6b5c1fcddd6c744
2023-01-12 19:35:28 +00:00
Krzysztof Ostrowski
a85078bf03
apiserver/kmsv2: mv Service interface into kmsv2
...
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
Kubernetes-commit: b7701b00eaa8cdc2103beb8ab78f625cc3b62d90
2023-01-09 14:36:06 +01:00
Tim Hockin
db316c3a3c
Fix apiserver example2 to update gen'ed protobufs
...
regen apiserver example2
Kubernetes-commit: 9a491f79a8770e9eca8e19516b01018ed16cbe8a
2023-01-04 13:55:48 -08:00
Madhav Jivrajani
6acb797fd8
*: Bump version of vmware/govmomi
...
Bumping version to include changes that
better handle TLS errors. Bump nescessary
to prepare for when the version of Go is
bumped to 1.20
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Kubernetes-commit: 8b064fa4be71b5f1b498fabb5caade3c57f5d434
2023-01-02 20:56:02 +05:30
Kubernetes Publisher
b66d88b7b4
Merge pull request #114370 from enj/enj/r/reload_nits
...
encryption-at-rest: clean up context usage and duplicated code
Kubernetes-commit: c9ed04762f94a319d7b1fb718dc345491a32bea6
2023-01-12 02:59:38 +00:00
Kubernetes Publisher
fb51b4a849
Merge pull request #114879 from olivierlemasle/bump-kube-openapi
...
Bump kube-openapi
Kubernetes-commit: 8fdaac238e4f7f560066ea3a324cdbcaae564ac9
2023-01-12 02:59:31 +00:00
Kubernetes Publisher
10adaa54e9
Merge pull request #113467 from pacoxu/psp-cleanup
...
Remove PodSecurityPolicy related code except client-go & API type
Kubernetes-commit: 08d9a0ef5b3b30952a558786e4b6e360701a16c6
2023-01-12 02:59:25 +00:00
Kubernetes Publisher
e06d3eabf2
Merge pull request #114977 from apelisse/simplify-fieldmanager-test
...
fieldmanagertest: Reduce API surface of the test package
Kubernetes-commit: 97bbf07d3f3f20332912ee411fdf75ce84425e28
2023-01-11 22:18:41 +00:00
Olivier Lemasle
a42cc78187
Bump kube-openapi
...
Kubernetes-commit: 8b8e20fcdbbeeb4520995e4f7c6a003a33062dd2
2023-01-09 20:41:41 +01:00
Antoine Pelisse
9451c13844
fieldmanager: remove dependencies on internal
...
Remove dependencies on internal fieldmanager for admission things. This
is preparing for moving fieldmanager out, but the admission part will
stay here, so it can't depend directly on internal.
Kubernetes-commit: d13b405307262b2b9c0795af3a22d0a5725ef6a0
2022-12-21 15:46:49 -08:00
Patrick Ohly
b1141143d3
k8s.io/component-base/logs: support changing verbosity of JSON output
...
The GlogSetter method is used by three components to change verbosity at
runtime through HTTP APIs. This used to work only for text output with klog
calls, but not for text output through the klog logger or for JSON output.
Now loggers can also provide a callback for changing their verbosity at
runtime. Implementing that implies that the Create factory method has to be
extended, which is an API break for the Go package, but not an API break for
the configuration file and command line flags, which is what matters for the
"api/v1" component API.
Kubernetes-commit: 9b86f457e93bc629434dd0a861e40539a5c7da37
2022-12-20 16:05:46 +01:00
Andrew Sy Kim
2d94c4699b
apiserver: update lease identity prefix from kube-apiserver- to apiserver-
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
Kubernetes-commit: fb066a883de2b56e533eb622677056bd723748ce
2022-12-19 13:33:24 -05:00
Paco Xu
d49ebea4e2
cleanup: EphemeralContainers feature gate related codes
...
Kubernetes-commit: 70e56fa71af5aa4f3d1448fcbc26e86309cd0cf3
2022-12-16 23:46:47 +08:00
Antoine Pelisse
652037afcf
fieldmanagertest: Reduce API surface of the test package
...
Kubernetes-commit: 7899157345a9ef02bacc56898055e98f28d5b9cc
2022-12-15 20:50:38 -08:00
Kubernetes Publisher
9b380ef84b
Merge pull request #114868 from apelisse/private-internal-managers
...
fieldmanager: Make internal managers private
Kubernetes-commit: 7e97b4b322ca7f62f84057290542aa55d2da736e
2023-01-11 01:38:15 +00:00
Kubernetes Publisher
ee51ce0e60
Merge pull request #114970 from tkashem/waitgroup-refactor
...
apiserver: refactor WithWaitGroup handler
Kubernetes-commit: cf81822d38a7c392f350dc81dfad99a93a8341cb
2023-01-11 01:38:14 +00:00
Kubernetes Publisher
893840cfd3
Merge pull request #114859 from pohly/e2e-ginkgo-spec-ordering
...
dependencies: update ginkgo to v2.7.0
Kubernetes-commit: a11ad04564f05e5d7e2d5a3f421ec5a45b6807c5
2023-01-11 01:38:11 +00:00
Kubernetes Publisher
2e0e7657b8
Merge pull request #114940 from Rajalakshmi-Girish/fix-apiserver-ut-timeout-fail
...
Fixes the issue #114145
Kubernetes-commit: aab3fb3a1ece77242834b8a9ea048b141e5d03e1
2023-01-10 21:17:47 +00:00