Commit Graph

111859 Commits

Author SHA1 Message Date
Jan Safranek
6d810f2cd4 Add unit tests 2022-11-03 17:54:58 +01:00
James Sturtevant
295a9753a1 Add Windows Podsandbox Stats
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2022-11-03 16:33:02 +00:00
Kubernetes Prow Robot
d802bd56ac
Merge pull request #113559 from wojtek-t/clean_shutdown_5
Clean shutdown of few more integration tests
2022-11-03 09:01:45 -07:00
Kubernetes Prow Robot
38bcc0c153
Merge pull request #113519 from xing-yang/node_shutdown_metrics
Add metric deleting_pods_total
2022-11-03 09:01:37 -07:00
Jan Safranek
3a79466ddd Reshuffle functions between reconstruct and reconstruc_common
Move common functions to reconstruc_common.go and functions used only for
the current (old) reconstruction to reconstruct.go
2022-11-03 16:55:13 +01:00
Jan Safranek
44b72d0348 Move new reconciler logic into reconciler_new.go
Move reconciler logic from reconstruct{new}.go to:
- reconciler.go - only the functionality used by the current (old)
  reconciler.
- reconciler_new.go - only the functionality used by the new reconciler.
- reconciler_common.go - common functions.
2022-11-03 16:55:13 +01:00
Jan Safranek
fc245b339b Refactor ConstructVolumeSpec
Return a struct from ConstructVolumeSpec to be able to add more fields to
it later.
2022-11-03 16:55:13 +01:00
Jan Safranek
2dc8cc13a4 Remove SyncReconstructedVolume call
With the new reconstruction, AWS.MarkVolumeAsMounted will update outer spec
name with the correct value from Pod.
2022-11-03 16:55:12 +01:00
Jan Safranek
e0f3e5c457 Rework volume reconstruction
Subsequent SELinux work (see http://kep.k8s.io/1710) will need
ActualStateOfWorld populated around the time kubelet starts mounting
volumes.

Therefore reconstruct volumes before starting reconciler, but do not depend
on the desired state of world populated nor node.status - both need a
working API server, which may not be available at that time.

All reconstructed volumes are marked as Uncertain and reconciler will sort
them out - call SetUp to ensure the volume is really mounted when a pod
needs the volume or call TearDown then there is no such pod.

Finish the reconstruction when the API server becomes available:
- Clean up volumes that failed reconstruction and are not needed.

- Update devicePath of reconstructed volumes from node.status. Make sure
  not to overwrite devicePath that may have been updated when the volume
  was mounted by reconcile().

Hiding all this rework behind SELinuxMountReadWriteOncePod FeatureGate,
just to make sure we have a way back if this commit is buggy.
2022-11-03 16:55:12 +01:00
Kubernetes Prow Robot
f536b3cc4f
Merge pull request #113555 from wojtek-t/refactor_storage_tests_5
Refactor storage tests - part 5
2022-11-03 06:59:35 -07:00
Kubernetes Prow Robot
c98aef484d
Merge pull request #112895 from nokia/kep-1435-GA
KEP-1435 Mixed Protocol values in LoadBalancer Service GA
2022-11-03 05:43:35 -07:00
Kubernetes Prow Robot
4086b45af3
Merge pull request #110618 from saschagrunert/v1alpha2-removal
Remove CRI v1alpha2
2022-11-03 03:55:35 -07:00
PiotrProkop
75bb437a6b Improved multi-numa alignment in Topology Manager: implement closest numa policy
Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2022-11-03 10:45:25 +01:00
PiotrProkop
d5dd42dfac Improved multi-numa alignment in Topology Manager: introduce TopologyManagerOptions
Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2022-11-03 10:45:21 +01:00
PiotrProkop
58ef3f202a Improved multi-numa alignment in Topology Manager: add NUMAInfo
Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2022-11-03 10:45:09 +01:00
Michal Wozniak
6f54848fa0 Fix disruption controller permissions to allow patching pod's status 2022-11-03 10:19:22 +01:00
Laszlo Janosi
9d75c958ce Fix review comments. Implement endpoint port validation that verifies the protocol, too. 2022-11-03 10:54:14 +02:00
PiotrProkop
daee219210 Improved multi-numa alignment in Topology Manager: add topology-manager-policy-options flag in Kubelet
This patch adds new Kubelet option topologyManagerPolicyOptions.
To introduce new TopologyManager options, first we need to introduce new
flag called `topology-manager-policy-options` to allow users to modify
behaviour of best-effort and restricted policies.

Signed-off-by: PiotrProkop <pprokop@nvidia.com>
2022-11-03 09:45:33 +01:00
Sascha Grunert
f9707064cf
Remove CRI v1alpha2
After the removal of dockershim we can finally also drop support for CRI
v1alpha2.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-11-03 09:13:43 +01:00
Kubernetes Prow Robot
98742f9d77
Merge pull request #110747 from harshanarayana/cleanup/GIT-110737/logging-improvements
structured-logging: replace KObjs with KObjSlice for logging
2022-11-03 00:49:34 -07:00
Wojciech Tyczyński
83399ccfb8 Minor cleanup in etcd3 tests 2022-11-03 08:21:11 +01:00
Wojciech Tyczyński
e6ddb69e6f Refactor remaining etcd3 tests to make them generic 2022-11-03 08:20:18 +01:00
Kubernetes Prow Robot
ee0b179a7b
Merge pull request #113387 from wojtek-t/refactor_client_indexing
Refactor store index into its structure
2022-11-02 23:45:42 -07:00
Kubernetes Prow Robot
6754265580
Merge pull request #109757 from STRRL/enriching-unit-test-for-container-manager
Add testcases for pkg/kubelet/cm/pod_container_manager_linux.go
2022-11-02 23:45:35 -07:00
Alexander Zielenski
a82015b4a2 update vendor 2022-11-02 21:50:55 -07:00
Alexander Zielenski
e394364cbd add plaintext template 2022-11-02 21:50:54 -07:00
Alexander Zielenski
88792d9e72 add template loading to generator 2022-11-02 21:45:38 -07:00
Alexander Zielenski
f37f63ab9f refactor generator
refactor funcs out of generator
2022-11-02 21:45:38 -07:00
Kubernetes Prow Robot
1d2e804287
Merge pull request #113505 from Abirdcfly/fixcomment
chore(scheduler): cleanup some minor issues in testing
2022-11-02 21:40:19 -07:00
Kubernetes Prow Robot
a9f87ad6c8
Merge pull request #113384 from pohly/e2e-formatting
e2e: formatting enhancements
2022-11-02 21:40:08 -07:00
Kubernetes Prow Robot
bbe050dd01
Merge pull request #112649 from howardjohn/set/optimize-everything-nothing
Optimize `Everything` and `Nothing` label selectors
2022-11-02 21:39:57 -07:00
Kubernetes Prow Robot
a091b01878
Merge pull request #112053 from helen-frank/fix/patchKubeletLongDescription
sync website change
2022-11-02 21:39:46 -07:00
Kubernetes Prow Robot
818b13544f
Merge pull request #106242 from thockin/revive-copy-lb-status-type-to-ingress
Copy LoadBalancerStatus from core to networking
2022-11-02 21:39:34 -07:00
kidddddddddddddddddddddd
5dcfaae7b9 strict decode policy first 2022-11-03 12:09:40 +08:00
Kubernetes Prow Robot
3cf75a2f76
Merge pull request #103177 from arkbriar/support_cancelable_exec_stream
Support cancelable SPDY executor stream
2022-11-02 19:47:36 -07:00
Kubernetes Prow Robot
fccd8b12d0
Merge pull request #113363 from andrewsykim/proxy-terminating-endpoints-beta
promote ProxyTerminatingEndpoints feature to Beta
2022-11-02 18:21:17 -07:00
Kubernetes Prow Robot
86a6ace994
Merge pull request #113277 from manav014/master
Cleanup: kube-proxy internal naming
2022-11-02 18:21:05 -07:00
Kubernetes Prow Robot
01a58847e1
Merge pull request #113233 from dashpole/fix_tracing_integration_tests
Fix and extend APIServerTracing integration tests
2022-11-02 18:20:53 -07:00
Cici Huang
f8de127789 Rename copy to v1alpha1 2022-11-03 01:19:04 +00:00
Cici Huang
e830e606d5 Copy over admissionregistration v1 to v1alpha1 2022-11-03 01:19:03 +00:00
Abirdcfly
bf8570029e
chore(scheduler): cleanup some minor issues in testing 2022-11-03 09:07:28 +08:00
Kubernetes Prow Robot
5bc094d2f5
Merge pull request #113557 from logicalhan/patch-2
Replace brancz as feature approver for SIG Inst
2022-11-02 16:29:36 -07:00
Kubernetes Prow Robot
b60b0c74c9
Merge pull request #113521 from daschott/user/daschott/winkernel-stale-vips
resolve winkernel proxier treating stale VIPs as valid
2022-11-02 16:29:24 -07:00
Kubernetes Prow Robot
4b2aa18bde
Merge pull request #113478 from alculquicondor/finalizer_metric
Add benchmark for large indexed job
2022-11-02 16:29:13 -07:00
Kubernetes Prow Robot
32ea818d21
Merge pull request #112838 from zshihang/token
graduate LegacyServiceAccountTokenNoAutoGeneration to ga
2022-11-02 16:29:01 -07:00
Tim Hockin
0153bfad16
Copy LoadBalancerStatus from core to networking
This type should never have been shared between Service and Ingress.
The `ports` field is unfortunate, but it is needed to stay compatible.
2022-11-02 16:13:31 -07:00
xing-yang
85f5583684 Address review comments 2022-11-02 22:40:02 +00:00
Antonio Ojea
924b467789 e2e loadbalancer remove after each cleanup
The cloud-provider and the e2e test were racing on deleting the
cloud resources.

Also, the cloud-provider should not leave orphan resources, that will
be detected by the job and fail, thus we should not have additional
logic to cleanup masking these errors.
2022-11-02 22:23:45 +00:00
Manav Agarwal
3320e50e24 If applied, this commit will refactor variable names in kube-proxy 2022-11-03 03:45:57 +05:30
Han Kang
78704ae47d refactor static analysis code for stability framework
Change-Id: I4049f16063264603fb61cbeb0cdb4010267fc19c
2022-11-02 14:52:31 -07:00