Patrick Ohly
9b86f457e9
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.
2023-01-17 10:25:54 +01:00
Patrick Ohly
8881b71822
k8s.io/component-base/logs/json: fix package name
...
Having the sub-package using the same name as the parent package makes no
sense. This seems to be a cut-and-paste error.
2023-01-17 10:20:59 +01:00
Krzysztof Ostrowski
b7701b00ea
apiserver/kmsv2: mv Service interface into kmsv2
...
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
2023-01-17 10:05:16 +01:00
Kubernetes Prow Robot
f16e62ae0c
Merge pull request #114897 from kidddddddddddddddddddddd/volumebinding
...
feature(volumebinding): return Skip in PreFilter
2023-01-16 23:38:32 -08:00
Paco Xu
ae574993c2
cleanup(kubectl-e2e): remove invalid comments
2023-01-17 10:13:21 +08:00
Kubernetes Prow Robot
7b7b15b821
Merge pull request #115110 from HirazawaUi/delte-pkg-unused-functions
...
delete unused functions in pkg directory
2023-01-16 18:06:43 -08:00
Kubernetes Prow Robot
3d9b437df2
Merge pull request #115109 from HirazawaUi/delte-pkg-volume-unused-functions
...
delete unused functions in pkg/volume directory
2023-01-16 18:06:31 -08:00
Kubernetes Prow Robot
977465e310
Merge pull request #115103 from HirazawaUi/delte-pkg-util-unused-functions
...
delete unused functions in pkg/util directory
2023-01-16 16:58:10 -08:00
Clayton Coleman
34bfdc3635
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.
2023-01-16 14:57:57 -05:00
Kubernetes Prow Robot
7b01daba71
Merge pull request #115074 from yangjunmyfm192085/deleteklogv0-controller
...
use klog instead of klog.V(0)--controller manager part
2023-01-16 09:58:50 -08:00
Kubernetes Prow Robot
62d7937b2e
Merge pull request #115046 from pacoxu/default-container-e2e
...
add e2e test for kubectl default container annotation
2023-01-16 08:42:50 -08:00
HirazawaUi
3b18e80fb4
delete unused functions in pkg directory
2023-01-16 21:43:36 +08:00
Paco Xu
b45f0a8def
move kubectl log e2e to new file & add e2e test for kubectl default container annotation
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-01-16 21:29:43 +08:00
HirazawaUi
79b799a0f3
delete unused functions in pkg/volume directory
2023-01-16 21:19:11 +08:00
Kubernetes Prow Robot
ed8cad1e80
Merge pull request #115056 from mimowo/podgc-do-not-add-condition-for-terminated-pods
...
PodGC should not add DisruptionTarget condition for pods which are in terminal phase
2023-01-16 03:04:50 -08:00
HirazawaUi
488b34eeb2
delete unused functions in pkg/util directory
2023-01-16 17:22:35 +08:00
xuzhenglun
11e5e92dc6
Fix bug in reflector not detecting "Too large resource version" error before 1.17.0
2023-01-16 13:45:35 +08:00
Kubernetes Prow Robot
4c4d4ad0a4
Merge pull request #115077 from smarterclayton/reflector_mock_clock
...
cache: Reflector should have the same injected clock as its informer
2023-01-15 17:24:49 -08:00
Kubernetes Prow Robot
3613ed04b6
Merge pull request #115079 from dims/update-to-newer-moby/ipvs-v1.1.0
...
Update to new release of moby/ipvs
2023-01-15 13:30:49 -08:00
Kubernetes Prow Robot
da6a8e3fe9
Merge pull request #115069 from alexzielenski/grep-null
...
use --null instead of -Z in grep invocation
2023-01-15 07:30:42 -08:00
Kubernetes Prow Robot
fd885b751d
Merge pull request #115068 from neolit123/revert-115000-feature/UpdateOrCreateTokenAddErrProcessing
...
Revert "UpdateOrCreateToken get secrets err handling optimization"
2023-01-15 07:30:31 -08:00
Paco Xu
70e56fa71a
cleanup: EphemeralContainers feature gate related codes
2023-01-15 21:15:01 +08:00
Davanum Srinivas
d9b98bc36a
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>
2023-01-14 16:13:24 -05:00
Clayton Coleman
91b3a81fbd
cache: Reflector should have the same injected clock as its informer
...
While refactoring the backoff manager to simplify and unify the code
in wait a race condition was encountered in
TestSharedInformerWatchDisruption. The new implementation failed
because the fake clock was not propagated to the backoff managers
when the reflector was used in a controller. After ensuring the
mangaers, reflector, controller, and informer shared the same
clock the test needed was updated to avoid the race condition by
advancing the fake clock and adding real sleeps to wait for
asynchronous propagation of the various goroutines in the controller.
Due to the deep structure of informers it is difficult to inject
hooks to avoid having to perform sleeps. At a minimum the FakeClock
interface should allow a caller to determine the number of waiting
timers (to avoid the first sleep).
2023-01-14 14:50:09 -05:00
JunYang
29086e2b04
use klog instead of klog.V(0)
2023-01-14 21:15:50 +08:00
kidddddddddddddddddddddd
2ba4c00b3c
hasAnyNodeConstraint
2023-01-14 15:29:54 +08:00
Kubernetes Prow Robot
eabb70833a
Merge pull request #114896 from kidddddddddddddddddddddd/volume_zone
...
feature(volume_zone): return Skip in PreFilter
2023-01-13 23:14:13 -08:00
Kubernetes Prow Robot
3a8e2e399b
Merge pull request #114393 from danielvegamyhre/myfeature
...
Option to ignore existing pods' preferred inter-pod affinities if the incoming pod has no preferred inter-pod affinities
2023-01-13 17:28:15 -08:00
Alexander Zielenski
63f109e149
use --null instead of -Z in grep invocation
...
BSD grep has a different behavior from GNU grep with -Z.
--null has consistent behavior accross both implementations
2023-01-13 15:31:05 -08:00
Daniel Vega-Myhre
41817b1888
optionally ignore preferred terms of existing pods unless incoming pod
...
has inter-pod affinities
2023-01-13 23:15:53 +00:00
Alexander Zielenski
5f59f44983
refactor admission controller to avoid contention
...
refresh admission policies up to once per second based upon last known good data
2023-01-13 14:52:38 -08:00
Lubomir I. Ivanov
7938631e22
Revert "UpdateOrCreateToken get secrets err handling optimization"
2023-01-14 00:11:49 +02:00
Andrew Sy Kim
4c74fc0a65
run ./hack/update-vendor.sh
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-01-13 16:20:14 -05:00
Andrew Sy Kim
a7de3e15a5
apiserver: use the identity value in the apiserver identity hash
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-01-13 16:20:14 -05:00
Andrew Sy Kim
fb066a883d
apiserver: update lease identity prefix from kube-apiserver- to apiserver-
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-01-13 15:37:22 -05:00
Andrew Sy Kim
423539cf96
test/integration/controlplane: add new apiserver identity test TestLeaseGarbageCollectionWithDeprecatedLabels
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-01-13 15:37:22 -05:00
Andrew Sy Kim
3da0f1809c
apiserver: update lease label key to apiserver.kubernetes.io/identity
...
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-01-13 15:37:22 -05:00
Kubernetes Prow Robot
2ca95b4df9
Merge pull request #115035 from xing-yang/update_plugin_warning
...
Update warnings for removed in-tree plugins
2023-01-13 12:08:26 -08:00
Kubernetes Prow Robot
9af5ae0365
Merge pull request #115030 from kannon92/remove-pod-error-job-tracking
...
Update SyncJob with PodControllerError updates in job unit tests
2023-01-13 12:08:14 -08:00
Kubernetes Prow Robot
70217a4083
Merge pull request #114944 from mimowo/fix-active-deadline-test
...
Fix the job controller unit test for enforcing ActiveDeadlineSeconds
2023-01-13 10:46:26 -08:00
Michal Wozniak
3833c0c349
PodGC should not add DisruptionTarget condition for pods which are in terminal phase
2023-01-13 18:28:44 +01:00
kannon92
4890928b78
tracking with finalizers is the default way for the job controller
2023-01-13 16:48:35 +00:00
Kubernetes Prow Robot
e51fe4a61c
Merge pull request #114492 from SataQiu/update-prefered-storageversion-20221215
...
apiserver: update serialization version priority for flowcontrol API
2023-01-13 08:42:24 -08:00
kannon92
3a838033f8
Update SyncJob with PodControllerError updates in job unit tests
2023-01-13 16:39:18 +00:00
Michal Wozniak
7065b42bb2
Fix the job controller unit test for enforcing ActiveDeadlineSeconds
2023-01-13 16:48:15 +01:00
Kubernetes Prow Robot
c0c386b9c9
Merge pull request #114516 from nikhita/job-backoff-fix
...
pkg/controller/job: re-honor exponential backoff delay
2023-01-13 07:36:40 -08:00
Kubernetes Prow Robot
696701b9fd
Merge pull request #114086 from xmcqueen/113935
...
block ephemeral container addition to static pods
2023-01-13 07:36:28 -08:00
SataQiu
950c147db5
apiserver: update serialization version priority for flowcontrol API
2023-01-13 22:19:39 +08:00
Kubernetes Prow Robot
a66aad2d80
Merge pull request #115000 from helen-frank/feature/UpdateOrCreateTokenAddErrProcessing
...
UpdateOrCreateToken get secrets err handling optimization
2023-01-12 19:57:12 -08:00
Kubernetes Prow Robot
5323d9213a
Merge pull request #115039 from apelisse/remove-dependency-fieldmanager
...
fieldmanager: remove dependencies on internal
2023-01-12 17:15:11 -08:00