Commit Graph

104102 Commits

Author SHA1 Message Date
Author cyclinder
e61b901628 remove nodeLease feature GA
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2021-10-05 12:23:27 +08:00
Kubernetes Prow Robot
0a29e2a73a
Merge pull request #105197 from alculquicondor/job-tracking
Roll-forward: Beta requirements for JobTrackingWithFinalizers
2021-10-04 18:57:49 -07:00
Kensei Nakada
0bb4c14519
scheduler: delete docs related to equivalence cache from scheduler (#105417)
* Delete: delete docs related to equivalence cache from scheduler

* Fix: re-add comment about ServiceAffinity
2021-10-04 16:23:49 -07:00
Kubernetes Prow Robot
9eaabb6b2e
Merge pull request #104304 from endocrimes/dani/eviction
[Failing Test] Fix Kubelet Storage Eviction Tests
2021-10-04 15:16:40 -07:00
Kubernetes Prow Robot
9fdcc4b199
Merge pull request #105312 from Karthik-K-N/fix-reatelimite-testfail
Fix for TestWithMaxWaitRateLimiter test case failure
2021-10-04 14:13:03 -07:00
Kubernetes Prow Robot
2358c8ae5b
Merge pull request #105144 from umangachapagain/fix-logs
remove format specifiers from structured logs
2021-10-04 14:12:51 -07:00
Kubernetes Prow Robot
70d1360ab8
Merge pull request #105103 from tkashem/extend-audit-policy
apiserver: refactor PolicyRuleEvaluator interface
2021-10-04 14:12:40 -07:00
Mike Spreitzer
4b5e139819 Use SeatSeconds 2021-10-04 14:02:53 -07:00
Mike Spreitzer
d866f94458 Draft datatype for seat-seconds 2021-10-04 14:02:35 -07:00
Elana Hashman
7bbf40f1cc
Add missing format values to test logline 2021-10-04 13:44:15 -07:00
Aldo Culquicondor
5929ccd391 Track expected removals of Pod finalizers
Add the UIDs of Pods for which we are removing finalizers to an in-memory cache.

The controller removes UIDs from the cache as Pod updates or deletes come in.

This avoids double counting finished Pods when Pod updates arrive after Job status updates.

https://github.com/kubernetes/kubernetes/issues/105200
2021-10-04 16:09:58 -04:00
Kubernetes Prow Robot
80b602299f
Merge pull request #105457 from liggitt/pod-security-benchmark-namespace
PodSecurity: add namespace update verify benchmark
2021-10-04 12:21:30 -07:00
Jordan Liggitt
74ca1b953a Compact pretty-printed compatibility fixtures when decoding 2021-10-04 15:18:00 -04:00
Jordan Liggitt
17111241ba Fix pretty-printed fixtures 2021-10-04 15:18:00 -04:00
Jordan Liggitt
a166f887f6 Use stdlib json encoder for yaml and pretty-json marshaling 2021-10-04 15:18:00 -04:00
Elana Hashman
5ff6c2396d
Do not sync Waiting statuses for Terminated pods 2021-10-04 11:05:54 -07:00
ravisantoshgudimetla
a07022ae8a [cc][api]: Introduce scheduler v1beta3 api
Changes in pkg/apis/scheduler reflecting the changes
from staging. The weights of following priority plugins
were increased:
- TaintTolerations
- NodeAffinity
- InterPodAffinity
as they're user facing priorities and they should be more
influential when compared to default plugins which don't
have any user say.

xref: https://github.com/kubernetes/enhancements/pull/2850
2021-10-04 13:37:03 -04:00
ravisantoshgudimetla
2743acf78f [cc] [staging]:Introduce scheduler v1beta3 api
Staging changes for scheduler v1beta3 api.
xref: https://github.com/kubernetes/enhancements/pull/2850
2021-10-04 13:37:03 -04:00
Jordan Liggitt
77d65dca44 PodSecurity: add namespace update verify benchmark 2021-10-04 12:26:30 -04:00
Kubernetes Prow Robot
04f747d09f
Merge pull request #104782 from kerthcet/cleanup/remove-cc-v1beta1
remove scheduler component config v1beta1
2021-10-04 08:53:08 -07:00
Shivanshu Raj Shrivastava
49281ce819
Update README.md 2021-10-04 21:14:58 +05:30
Abu Kashem
0d50c969c5
apiserver: wrap ResponseWriter using abstraction 2021-10-04 10:59:11 -04:00
Lee Verberne
2a82228e33 Apply suggestions from code review
Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2021-10-04 15:07:37 +02:00
Kubernetes Prow Robot
e5976909c6
Merge pull request #105414 from pohly/log-example-verbosity
component-base: verbosity in example command
2021-10-04 04:19:38 -07:00
Kubernetes Prow Robot
c724abae81
Merge pull request #105375 from jonyhy96/fix-clock-util
node: test file use k8s.io/utils/clock instead
2021-10-04 04:19:31 -07:00
Kubernetes Prow Robot
e4e2c51648
Merge pull request #105042 from pohly/log-deprecate-klog-flags
deprecate klog flags
2021-10-04 04:19:18 -07:00
Kubernetes Prow Robot
f31453fe5b
Merge pull request #104894 from pacoxu/windows-arm
add windows arm support on client-side since go 1.17 supports
2021-10-04 04:19:07 -07:00
Danielle Lancashire
7b91337068 e2e_node: eviction: Include names of pending-eviction pods in error 2021-10-04 13:07:40 +02:00
Danielle Lancashire
b5c2d3b389 e2e_node: eviction: Memory-backed Volumes seperation
This commit fixes the LocalStorageCapacityIsolationEviction test by
acknowledging that in its default configuration kubelet will no-longer
evict memory-backed volume pods as they cannot use more than their
assigned limit with SizeMemoryBackedVolumes enabled.

To account for the old behaviour, we also add a test that explicitly
disables the feature to test the behaviour of memory backed local
volumes in those scenarios. That test can be removed when/if the feature
gate is removed.
2021-10-04 13:07:40 +02:00
Danielle Lancashire
a8168ed543 e2e_node: Fix LocalStorage and PriorityLocalStorage eviction tests
Currently the storage eviction tests fail for a few reasons:
- They re-enter storage exhaustion after pulling the images during
  cleanup (increasing test storage reqs, and adding verification for
future diagnosis)
- They were timing out, as in practice it seems that eviction takes just
  over 10 minutes on an n1-standard in many cases. I'm raising these to
15 to provide some padding.

This should ideally bring these tests to passing on CI, as they've now
passed locally for me several times with the remote GCE env.

Follow up work involves diagnosing why these take so long, and
restructuring them to be less finicky.
2021-10-04 13:07:40 +02:00
Kubernetes Prow Robot
9c0ef1ffec
Merge pull request #104058 from MadhavJivrajani/kind-design-rm-pr-template
Remove `kind/design` from PR template
2021-10-04 03:13:07 -07:00
Arda Güçlü
4f0848520d Add diff command return status code greater than 1 when flags invalid
This PR adds flagerror handler function to detect when flags are invalid.
Default flag handler returns status code 1. However, diff command embraces
this status code as changes are found. By overriding flag errors,
this PR shows same message with default case and returns status code 2.
2021-10-04 13:02:34 +03:00
Kubernetes Prow Robot
0ac956ff2b
Merge pull request #104968 from twpayne/twpayne/ones-count-64
Speed up counting of bits in allocator
2021-10-01 19:27:05 -07:00
Kubernetes Prow Robot
e380ce5714
Merge pull request #105384 from seans3/command-headers-fix
Fixes kubectl command headers which hangs on kubectl run
2021-10-01 18:25:17 -07:00
Kubernetes Prow Robot
c54ed73f9a
Merge pull request #104744 from robscott/topology-fixes
Excluding Control Plane Nodes from Topology Hints calculations
2021-10-01 18:25:06 -07:00
Kubernetes Prow Robot
0465cd7d04
Merge pull request #104227 from astraw99/fix_typo
Fix typo `registry`
2021-10-01 16:49:05 -07:00
Rob Scott
d7a640d831
Excluding Control Plane Nodes from Topology Hints calculations 2021-10-01 15:12:38 -07:00
Patrick Ohly
d6519150ca component-base: verbosity in example command
The global klog flags were not enabled (an oversight?). Once they
get added, logging at different verbosity levels can be demonstrated.
2021-10-01 23:37:12 +02:00
Patrick Ohly
27d6ce4479 deprecate klog flags
Upstream klog continues to support all of its flags, but in Kubernetes only
some will be supported going format (-v, -vmodule). With this change,
the kubelet flags now look like this:

  $ go run ./cmd/kubelet --help | grep -e --log-dir -e '--v ' -e --vmodule -e --logging-format
  --log-dir string                                           If non-empty, write log files in this directory (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --logging-format string                                    Sets the log format. Permitted formats: "json", "text".
                Non-default formats don't honor these flags: --add_dir_header, --alsologtostderr, --log_backtrace_at, --log_dir, --log_file, --log_file_max_size, --logtostderr, --one_output, --skip_headers, --skip_log_headers, --stderrthreshold, --vmodule, --log-flush-frequency, --add_dir_header, --alsologtostderr, --log_backtrace_at, --log_dir, --log_file, --log_file_max_size, --logtostderr, --one_output, --skip_headers, --skip_log_headers, --stderrthreshold, --vmodule.
  -v, --v Level                                                  number for the log level verbosity
      --vmodule moduleSpec                                       comma-separated list of pattern=N settings for file-filtered logging
2021-10-01 23:36:48 +02:00
Kubernetes Prow Robot
82da9bdaab
Merge pull request #105076 from pohly/log-flush-frequency-bug
initialize logging after flag parsing + refactor commands
2021-10-01 14:30:18 -07:00
Abu Kashem
96e8fd69e3
apiserver: introduce abstraction for wrapping ResponseWriter 2021-10-01 15:58:11 -04:00
Kubernetes Prow Robot
e414cf7641
Merge pull request #100482 from pohly/generic-ephemeral-volume-checks
generic ephemeral volume checks
2021-10-01 10:47:22 -07:00
Kubernetes Prow Robot
6044cdbb31
Merge pull request #105396 from liggitt/csr-test
Fix CSR test to accept certs shorter than the requested duration
2021-10-01 09:45:34 -07:00
Kubernetes Prow Robot
d3b37e1f6b
Merge pull request #104499 from liggitt/visitor-source
Propagate source to list items when flattening
2021-10-01 09:45:23 -07:00
haoyun
8d9fa1decc fix: use k8s.io/utils/clock instead
Signed-off-by: haoyun <yun.hao@daocloud.io>
2021-10-02 00:08:53 +08:00
Swati Sehgal
01dacd0463 podresource-api: getAllocatableResources to Beta
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-10-01 16:48:29 +01:00
Tom Payne
21755f9ec0 Speed up counting of bits in allocator
Benchmark:

goos: linux
goarch: amd64
pkg: k8s.io/kubernetes/pkg/registry/core/service/allocator
cpu: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz

Before:

BenchmarkCountBits-8     9459236               140.4 ns/op

After:

BenchmarkCountBits-8    140667842                9.541 ns/op
2021-10-01 17:09:56 +02:00
Tom Payne
125312a8cf Add extra test and benchmark for count bits 2021-10-01 17:08:36 +02:00
Patrick Ohly
1d181ad84f scheduler: fail the volume attach limit when PVC is missing
Previously, the situation was ignored, which might have had the effect that Pod
scheduling continued (?) even though the Pod+PVC weren't known to be in an
acceptable state.
2021-10-01 17:03:44 +02:00
Patrick Ohly
1e26115df5 consider ephemeral volumes for host path and node limits check
When adding the ephemeral volume feature, the special case for
PersistentVolumeClaim volume sources in kubelet's host path and node
limits checks was overlooked. An ephemeral volume source is another
way of referencing a claim and has to be treated the same way.
2021-10-01 17:03:44 +02:00