Commit Graph

102342 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
03fa68099e
Merge pull request #98238 from alculquicondor/job-completion
Track Job completion through Pod finalizers and status
2021-07-09 08:42:54 -07:00
Kubernetes Prow Robot
15ef9d42e3
Merge pull request #101866 from saschagrunert/ssh-hosts
e2e: test SSH port on NodeSSHHosts
2021-07-09 07:37:05 -07:00
Kubernetes Prow Robot
3ccfe94563
Merge pull request #100101 from deads2k/mutated-options
prevent mutation of deletion options during delete collection
2021-07-09 07:36:53 -07:00
Kubernetes Prow Robot
29652248eb
Merge pull request #103596 from andrewsykim/endpointslice-terminating
Promote EndpointSliceTerminatingCondition to Beta
2021-07-09 06:01:42 -07:00
Kubernetes Prow Robot
edbb0b9549
Merge pull request #103590 from rphillips/revert-102998-apf-width-list
Revert "apiserver: add callback to get notified of object count"
2021-07-09 06:01:33 -07:00
Kubernetes Prow Robot
f6df5a6818
Merge pull request #103589 from SergeyKanzhelev/updateHelpText
update the help text of KubeletConfig following the DynamicKubletConf…
2021-07-09 06:01:25 -07:00
Kubernetes Prow Robot
8daced4d3f
Merge pull request #103508 from boenn/UseDiff
Use cmp.Diff() replace reflect and diagnosis
2021-07-09 06:01:13 -07:00
Kubernetes Prow Robot
ace5482c9f
Merge pull request #103457 from codearky/fix-yaml-terminator-wcomment
Add YAML separator validation and avoid silent ignoration
2021-07-09 06:01:06 -07:00
Kubernetes Prow Robot
82398d1c0a
Merge pull request #103427 from matthyx/99437
Fix test "Pods should run through the lifecycle of Pods and PodStatus"
2021-07-09 06:00:54 -07:00
Kubernetes Prow Robot
617064d732
Merge pull request #101432 from swatisehgal/smtaware
node: cpumanager: add options to reject non SMT-aligned workload
2021-07-08 21:04:53 -07:00
Kubernetes Prow Robot
83baa708df
Merge pull request #103429 from saschagrunert/metrics-test-fix
Fix resource metrics e2e test
2021-07-08 17:58:53 -07:00
Kubernetes Prow Robot
dab6f6a43d
Merge pull request #102344 from smarterclayton/keep_pod_worker
Prevent Kubelet from incorrectly interpreting "not yet started" pods as "ready to terminate pods" by unifying responsibility for pod lifecycle into pod worker
2021-07-08 16:48:53 -07:00
Kubernetes Prow Robot
57716897eb
Merge pull request #103434 from perithompson/windows-etchostcreate-skip
Explicitly skip host file mounting for Windows when HostProcess pod
2021-07-08 15:36:53 -07:00
Andrew Sy Kim
fd0db61d6c test/intergration/endpointslice: add tests for endpointslice terminating condition
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-08 17:59:11 -04:00
Andrew Sy Kim
826a5219da promote EndpointSliceTerminatingCondition to Beta
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-08 17:34:10 -04:00
Francesco Romani
a2fb8b0039 smtalign: e2e: add tests
Add e2e tests to cover the basic flows for the `full-pcpus-only` option:
negative flow to ensure rejection with proper error message, and
positive flow to verify the actual cpu allocation.

Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-07-08 23:15:37 +02:00
Francesco Romani
23abdab2b7 smtalign: propagate policy options to policies
Consume in the static policy the cpu manager policy options from
the cpumanager instance.
Validate in the none policy if any option is given, and fail if so -
this is almost surely a configuration mistake.

Add new cpumanager.Options type to hold the options and translate from
user arguments to flags.

Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-07-08 23:15:37 +02:00
Francesco Romani
6dcec345df smtalign: cm: factor out admission response
Introduce a new `admission` subpackage to factor out the responsability
to create `PodAdmitResult` objects. This enables resource manager
to report specific errors in Allocate() and to bubble up them
in the relevant fields of the `PodAdmitResult`.

To demonstrate the approach we refactor TopologyAffinityError as a
proper error.

Co-authored-by: Kevin Klues <kklues@nvidia.com>
Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-07-08 23:15:37 +02:00
Francesco Romani
c5cb263dcf smtalign: propagate policy options to cpumanager
The CPUManagerPolicyOptions received from the kubelet config/command line args
is propogated to the Container Manager.

We defer the consumption of the options to a later patch(set).

Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-07-08 23:15:35 +02:00
Francesco Romani
6dccad45b4 smtalign: add auto generated code
Files generate after running `make generated_files`.

Co-authored-by: Swati Sehgal <swsehgal@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-07-08 23:14:59 +02:00
Swati Sehgal
cc76a756e4 smtalign: add cpu-manager-policy-options flag in Kubelet
In this patch we enhance the kubelet configuration to support
cpuManagerPolicyOptions.

In order to introduce SMT-awareness in CPU Manager, we introduce a
new flag in Kubelet to allow the user to specify an additional flag
called `cpumanager-policy-options` to allow the user to modify the
behaviour of static policy to strictly guarantee allocation of whole
core.

Co-authored-by: Francesco Romani <fromani@redhat.com>
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2021-07-08 23:14:59 +02:00
Kubernetes Prow Robot
4d78db54a5
Merge pull request #103580 from tkestack/fix-version-format
fix kubelet panic when DynamicKubeletConfig enabled
2021-07-08 14:02:24 -07:00
Kubernetes Prow Robot
97d6e4a66a
Merge pull request #103574 from liggitt/restore-long-printing
Restore ability to print long strings
2021-07-08 14:02:18 -07:00
Kubernetes Prow Robot
72283f1bf6
Merge pull request #103558 from liggitt/podsecurity-check-cleanup
PodSecurity message/check/fixture cleanups
2021-07-08 14:02:10 -07:00
Kubernetes Prow Robot
103212febc
Merge pull request #103470 from nilo19/bug/cherry-pick-679
fix: return empty VMAS name if using standalone VM
2021-07-08 14:02:01 -07:00
Kubernetes Prow Robot
694d6cd2b9
Merge pull request #103216 from dashpole/etcd_client_tracing
Add distributed tracing to the etcd client
2021-07-08 14:01:52 -07:00
Kubernetes Prow Robot
119b8fc93e
Merge pull request #103057 from jeremyje/fixnet
GCE Windows: Set TCP/IP parameters to align with GCE optimal settings.
2021-07-08 14:01:44 -07:00
Kubernetes Prow Robot
a9d7526864
Merge pull request #102970 from tkestack/feature-memory-qos
Feature: Support memory qos with cgroups v2
2021-07-08 14:01:36 -07:00
Kubernetes Prow Robot
fc4e7c17f4
Merge pull request #102928 from dprotaso/dynamic-client-backwards-compatible
Simplify construction of the fake dynamic client
2021-07-08 14:01:28 -07:00
Kubernetes Prow Robot
b814b83392
Merge pull request #102122 from Nordix/conn_reuse_mode
Don't set sysctl net.ipv4.vs.conn_reuse_mode for kernels >=5.9
2021-07-08 14:01:19 -07:00
Kubernetes Prow Robot
60e4be3151
Merge pull request #102049 from navist2020/kubectl/notUseParam
Kubectl:remove Factory that not used
2021-07-08 14:01:07 -07:00
Kubernetes Prow Robot
7c84064a4f
Merge pull request #99000 from verb/1.21-kubelet-metrics
Add kubelet metrics for ephemeral containers
2021-07-08 14:00:55 -07:00
David Eads
649b87aaf8 prevent mutation of deletion options during delete collection 2021-07-08 15:36:10 -04:00
Ryan Phillips
d95b14e1ab
Revert "apiserver: add callback to get notified of object count" 2021-07-08 13:56:39 -05:00
Peri Thompson
8e2b728c68
Explicitly skip host file mounting for windows 2021-07-08 19:38:49 +01:00
Aldo Culquicondor
2dd2622188 Track Job Pods completion in status
Through Job.status.uncountedPodUIDs and a Pod finalizer

An annotation marks if a job should be tracked with new behavior

A separate work queue is used to remove finalizers from orphan pods.

Change-Id: I1862e930257a9d1f7f1b2b0a526ed15bc8c248ad
2021-07-08 17:48:05 +00:00
Kubernetes Prow Robot
b765496650
Merge pull request #98817 from alculquicondor/job-completion-api
Add Job.status.uncountedTerminatedPods for Job tracking
2021-07-08 10:44:54 -07:00
Sergey Kanzhelev
7da1a0b230 update the help text of KubeletConfig following the DynamicKubletConfig feature deprecation 2021-07-08 16:38:11 +00:00
Kubernetes Prow Robot
24a614cb4c
Merge pull request #103556 from dims/update-license-gathering-script-for-forked-code
Update license gathering script for forked code
2021-07-08 08:51:06 -07:00
nobuhikosawai
41c5bca349
kubectl: update set command description to include cronjob resource (#102503)
* kubectl: update set command description to include cronjob resource

* kubectl: update set command description to include statefulset resource

* kubectl: update set env description to remove job from resources that can update container env

* kubectl set tests: add cronjob resource and remove job resource

* go fmt
2021-07-08 08:50:54 -07:00
Aldo Culquicondor
bb56a0bd04 Add Job.status.uncountedPodUIDs
For tracking Job Pods that have finished but are not yet counted as failed or succeeded

And feature gate JobTrackingWithFinalizers

Change-Id: I3e080f3ec090922640384b692e88eaf9a544d3b5
2021-07-08 15:31:59 +00:00
dprotaso
418fa71b6b Simplify use of the fake dynamic client
With the introduction of GVK to the fake dynamic client it made using
the fake much more cumbersome.

Specifically:
- requires manual registration of list types
- mismatch between scheme types and passed in fixtures would result in errors

The PR changes the constructor method NewSimpleDynamicClient to do the following:
- rewire the schemes to unstructured types
- typed fixtures are converted to unstructured types
- automatically register fixture gvks with the scheme

This should make the dynamic client 'flexible' with it's inputs like it was
before
2021-07-08 10:50:14 -04:00
Anago GCB
e1f971d5c2 Merge remote-tracking branch 'origin/master' 2021-07-08 13:48:35 +00:00
Kubernetes Prow Robot
2cd5c54f39
Merge pull request #103565 from zhan849/harry/clean-scope-fix
fix CleanScope so we can resolve correct verb for apiserver_request_terminations_total
2021-07-08 05:59:17 -07:00
Kubernetes Prow Robot
81065fd085
Merge pull request #103532 from thockin/fix-91459-service-update-allocs
Service: Fix semantics for Update wrt allocations
2021-07-08 05:59:05 -07:00
Kubernetes Prow Robot
a2b1f00a8b
Merge pull request #103522 from atiratree/fix-translations-location
fix translations location in update-translations.sh
2021-07-08 05:58:53 -07:00
Anago GCB
62d7a417fa CHANGELOG: Update directory for v1.22.0-beta.1 release 2021-07-08 12:15:38 +00:00
Davanum Srinivas
40f1db8d2d
update license gathering script for forked code
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2021-07-08 07:48:19 -04:00
Kubernetes Prow Robot
388c2d901d
Merge pull request #103560 from sejr/podsecurity-validate-configuration
[PodSecurity] Add ValidatePodSecurityConfiguration
2021-07-08 03:05:13 -07:00
Kubernetes Prow Robot
1edf50192e
Merge pull request #103536 from mengjiao-liu/clean-master-term-test
Clean up the remaining master names in test/integration
2021-07-08 03:05:05 -07:00