Commit Graph

110629 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
a488f4b95c
Merge pull request #107515 from MikeSpreitzer/explain-reset-fields-failure
Make TestApplyResetFields exhibit surprising object
2022-09-07 07:14:37 -07:00
weilaaa
2b55c94e37 add symmetric difference in sets 2022-09-07 20:25:44 +08:00
Kubernetes Prow Robot
cae4c036c8
Merge pull request #112241 from xiaoliwang/simplified_regexp
Optimize: simplified regexp
2022-09-07 02:28:36 -07:00
demoManito
35c26f48e4 fix: map and slice create style 2022-09-07 17:10:13 +08:00
jiepeng
211e0a6496 simplified regexp 2022-09-07 15:51:36 +08:00
Kubernetes Prow Robot
3d3820bba3
Merge pull request #112257 from kerthcet/cleanup/modify-remove-release
Kube-scheduler: Deprecate Component config v1beta3
2022-09-06 23:54:36 -07:00
Kubernetes Prow Robot
4b9575acb8
Merge pull request #112272 from chendave/cleanupflags
kubeadm: using the existing exported method to add config flag
2022-09-06 22:26:36 -07:00
Alexander Zielenski
dbff8e117c
correct spacing 2022-09-06 20:58:50 -07:00
Dave Chen
6675bea8a2 kubeadm: using the existing exported method to add config flag
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-09-07 11:50:06 +08:00
Alexander Zielenski
3528fd7e47
add boilerplate 2022-09-06 19:51:47 -07:00
kerthcet
700065a18d Add deprecation warning of removing scheduler CC v1beta3
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-07 10:09:27 +08:00
Alexander Zielenski
0ebbb6af61
revert fieldmanager changes 2022-09-06 18:36:57 -07:00
Kubernetes Prow Robot
1ab40212a4
Merge pull request #112093 from HecarimV/fix-2282915
test: use bytes.Buffer.String
2022-09-06 17:34:36 -07:00
Kubernetes Prow Robot
ed967343f4
Merge pull request #112198 from MikeSpreitzer/bound-all
Call queueSet::boundNextDispatchLocked enough
2022-09-06 12:58:34 -07:00
Kubernetes Prow Robot
6d1e9150d0
Merge pull request #108855 from haircommander/podStatsFix
kubelet/stats: deduplicate makePodStorageStats
2022-09-06 12:58:22 -07:00
Seth Jennings
b3a28d17fd aws: skip health rules if they are a subnet of the client rule 2022-09-06 14:25:23 -05:00
Kubernetes Prow Robot
23790ec7fa
Merge pull request #112181 from xueqzhan/disable-anonymous
Add DisableAnonymous to DelegatingAuthenticationOptions
2022-09-06 10:28:03 -07:00
Kubernetes Prow Robot
780fe01858
Merge pull request #111935 from giuseppe/userns-manager-use-bitmask-pkg-registry
kubelet: drop bitArray implementation
2022-09-06 10:27:51 -07:00
Mike Spreitzer
6ee93e2cee Call queueSet::boundNextDispatchLocked enough
Fix the one path where boundNextDispatchLocked was not being called
after modifying a queue.

Also check for negative work in a request.

These are motivated by
https://github.com/kubernetes/kubernetes/issues/112169 but I do not
have a way to reproduce it and so can not check that these changes
actually remove that symptom.  But these changes are good anyway.
2022-09-06 13:23:03 -04:00
kerthcet
532d1df7ca Modify release version of removing scheduler CC v1beta2
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-06 14:15:55 +08:00
Patrick Ohly
0bd9a1a29a e2e storage: close all pending streams when proxy listener gets closed
After updating gRPC in node-driver-registrar from v1.40.0 to v1.47.0 the
behavior of gRPC change in a way such that it no longer detected the
single-sided closing of the stream as a loss of connection. This caused gRPC in
the e2e.test to get stuck, possibly in a Read or Write for the HTTP stream
because those have neither a context nor a timeout.

Changing the connection handling so that all active connections are tracking in
the listener and closing them when the listener gets closed fixed this problem.
2022-09-05 22:46:01 +02:00
Kubernetes Prow Robot
67bde9a102
Merge pull request #112243 from brianpursley/revert-110668-k-108630
Revert "Remove unused flags from kubectl run"
2022-09-05 09:30:36 -07:00
Kushagra
de8245e952 added ut for the change 2022-09-05 14:56:24 +00:00
viveksahu26
386bc4a7fa fix warnings or linter errors
Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
2022-09-05 19:10:43 +05:30
Brian Pursley
eae2c424ef
Revert "Remove unused flags from kubectl run" 2022-09-05 09:34:48 -04:00
Jakub Przychodzeń
ef9f8d099f Ensure metric 'running_managed_controllers' is registered 2022-09-05 11:43:56 +00:00
demoManito
e1a5e8537a optimize ifelse 2022-09-05 18:53:52 +08:00
Kushagra
b75fbda0ed requested changes 2022-09-05 04:54:59 +00:00
Kushagra
bb735bf689 revert for non-utilization metrics 2022-09-05 04:54:59 +00:00
Kushagra
6bb73bae06 FIX: hpa scale down with target >= 100 2022-09-05 04:54:59 +00:00
Patrick Ohly
2f762e4788 logs: remove deprecated klog flags
This completes the deprecation of klog flags which are no longer supported.
klog itself continues to support them, but Kubernetes components don't. This
makes the command line interfaces simpler and reduces the attack surface
because less functionality is exposed.

For example, kube-controller-manager now has:

    Logs flags:

      --log-flush-frequency duration
                Maximum number of seconds between log flushes (default 5s)
      --log-json-info-buffer-size quantity
                [Alpha] In JSON format with split output streams, the info messages can be buffered for a while to increase performance. The default value of zero
                bytes disables buffering. The size can be specified as number of bytes (512), multiples of 1000 (1K), multiples of 1024 (2Ki), or powers of those (3M,
                4G, 5Mi, 6Gi). Enable the LoggingAlphaOptions feature gate to use this.
      --log-json-split-stream
                [Alpha] In JSON format, write error messages to stderr and info messages to stdout. The default is to write a single stream to stdout. Enable the
                LoggingAlphaOptions feature gate to use this.
      --logging-format string
                Sets the log format. Permitted formats: "json" (gated by LoggingBetaOptions), "text". (default "text")
  -v, --v Level
                number for the log level verbosity
      --vmodule pattern=N,...
                comma-separated list of pattern=N settings for file-filtered logging (only works for text log format)

    Misc flags:

      --kubeconfig string
                Path to kubeconfig file with authorization and master location information.
      --master string
                The address of the Kubernetes API server (overrides any value in kubeconfig).

    Global flags:

  -h, --help
                help for kube-controller-manager
      --version version[=true]
                Print version information and quit

For details see
https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components
2022-09-04 21:04:05 +02:00
Patrick Ohly
41619ace15 stop using deprecated klog flags
Some scripts and tools still relied on the deprecated flags, the ones
which are about to be removed.

This is intentionally not a complete removal of all those flags in the entire
repo. This would lead to much more code churn also in places where commands
still accept the flags because they use klog directly.
2022-09-04 21:02:43 +02:00
Kubernetes Prow Robot
bcea98234f
Merge pull request #112208 from kerthcet/cleanup/code-optimization
kube-proxy: code optimization for readability
2022-09-04 05:42:36 -07:00
kerthcet
2b7373f336 kube-proxy: code optimization
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-09-04 19:34:22 +08:00
astraw99
ee24513e47 Fix scheduler misc 2022-09-04 00:07:49 +08:00
Alexander Zielenski
52fcd20b57
remove inaccurate comment 2022-09-02 17:42:08 -07:00
Alexander Zielenski
adcb5ec3d4
make upgrade modify input instead of deep copying 2022-09-02 17:40:34 -07:00
Alexander Zielenski
5c9534b9cf
remove fieldsv1 from upgrade body 2022-09-02 17:38:29 -07:00
Alex Zielenski
5caffef694
Update staging/src/k8s.io/client-go/util/csaupgrade/upgrade.go
Co-authored-by: Antoine Pelisse <apelisse@gmail.com>
2022-09-02 17:34:07 -07:00
Kubernetes Prow Robot
e7192a4955
Merge pull request #112112 from alexzielenski/aggregated-discovery-feature-gate
Aggregated Discovery: add feature gate
2022-09-02 16:34:33 -07:00
Kubernetes Prow Robot
904417b5d3
Merge pull request #110894 from yuanchen8911/prefilter
Consolidate PreFilter and Filter reason messages for scheduler
2022-09-02 16:34:27 -07:00
Kubernetes Prow Robot
bacd6029b3
Merge pull request #112199 from pohly/klog-update
dependencies: update to klog v2.80.0
2022-09-02 10:56:16 -07:00
Kubernetes Prow Robot
f0fa987c05
Merge pull request #111544 from jlsong01/fix_resource_req_zero
fix pod created failed when resource request is 0
2022-09-02 10:56:05 -07:00
Kubernetes Prow Robot
673895dc55
Merge pull request #111936 from haoruan/bugfix-111928-microtime-marshal-precision
Marshal MicroTime to json and proto at the same precision
2022-09-02 09:42:16 -07:00
Kubernetes Prow Robot
2c4841796a
Merge pull request #111311 from SD-13/improve_output_msg_1
Changed code to improve output for files under test/e2e/storage
2022-09-02 09:42:05 -07:00
Kubernetes Prow Robot
ca09ed0fe2
Merge pull request #112157 from dghubble/master
Avoid propagating "search ." into containers /etc/resolv.conf
2022-09-02 05:48:05 -07:00
Joe Betz
7be77f9ecc changes code to improve output for files under test/e2e/storage 2022-09-02 17:43:41 +05:30
Patrick Ohly
c70203bda3 volumebinding: handle special delete event in AssumeCache
Sometimes an informer might not directly send the deleted object to the
OnDelete callback, but rather a DeletedFinalStateUnknown. The AssumeCache did
not handle that case.
2022-09-02 12:39:40 +02:00
Kubernetes Prow Robot
1913c6be35
Merge pull request #112172 from chendave/remove_tmp
kubeadm: Add the option to cleanup the `tmp` directory
2022-09-02 02:54:05 -07:00
Hao Ruan
7aa80add91 Marshal MicroTime to json and proto at the same precision 2022-09-02 16:21:04 +08:00