Commit Graph

125845 Commits

Author SHA1 Message Date
Jordan Liggitt
27c41e75b6
Regenerate go.work.sum 2024-10-10 17:58:55 -04:00
Jordan Liggitt
ada932a6e2
Simplify update-vendor.sh to use go work sync 2024-10-10 17:58:54 -04:00
Kubernetes Prow Robot
c15581b277
Merge pull request #127695 from kaisoz/wait-for-job-failfast
Fail fast when waiting for job conditions in e2e tests
2024-10-10 22:28:19 +01:00
Lubomir I. Ivanov
30f9893374 kubeadm: refactor the dry-run logic
The current dryrun client implemnetation is suboptimal
and sparse. It has the following problems:

- When an object CREATE or UPDATE reaches the default dryrun client
the operation is a NO-OP, which means subsequent GET calls must
fully emulate the object that exists in the store.
- There are multiple implmentations of a DryRunGetter interface
such the one in init_dryrun.go but there are no implementations
for reset, upgrade, join.
- There is a specific DryRunGetter that is backed by a real
client in clientbacked_dryrun.go, but this is used for upgrade
and does not work in conjuction with a fake client.

This commit does the following changes:

- Removes all existing *dryrun*.go implementations.
- Add a new DryRun implementation in dryrun.go that implements
3 clients - fake clientset, real clientset, real dynamic client.
- The DryRun object uses the method chaining pattern.
- Allows the user opt-in into real clients only if needed, by passing
a real kubeconfig. By default only constructs a fake client.
- The default reactor chain for the fake client, always logs the
object action, then for GET or LIST actions attempts to use the
real dynamic client to get the object. If a real object does not
exist it attempts to get the object from the fake object store.
- The user can prepend or append reactors to the chain.
- All known needed reactors for operations during init, join,
reset, upgrade are added as methods of the DryRun struct.
- Adds detailed unit test for the DryRun struct and its methods
including reactors.

Additional changes:
- Use the new DryRun implementation in all command workflows -
init, join, reset, upgrade.
- Ensure that --dry-run works even if there is no active cluster
by returning faked objects. For join, a faked cluster-info
with a fake bootstrap token and CA are used.
2024-10-11 00:15:59 +03:00
Tomas Tormo
3b1a5bfc9c Fail fast when waiting for job conditions in e2e tests 2024-10-10 20:18:21 +00:00
Kubernetes Prow Robot
fc318e3ba4
Merge pull request #127942 from liggitt/json123
sigs.k8s.io/json go 1.23 bump
2024-10-10 18:58:20 +01:00
Kubernetes Prow Robot
95612e7b3b
Merge pull request #127878 from AxeZhan/sidecar
[scheduler] calculate pod requests resources with sidecar containers
2024-10-10 17:54:19 +01:00
AxeZhan
8b15843d00 remove unused GetNonzeroRequests function 2024-10-10 23:52:25 +08:00
Kubernetes Prow Robot
d88b4e3b6e
Merge pull request #127777 from tkashem/refactor-delete-option
KEP-4795: refactor: add delete options for Delete method in storage interface
2024-10-10 16:36:27 +01:00
Kubernetes Prow Robot
61d9bae274
Merge pull request #127348 from RyanAoh/kep-1860-ga
Promote LoadBalancerIPMode to GA
2024-10-10 16:36:19 +01:00
Abu Kashem
f24ec7e00d
refactor: storage.InternalError should retain the inner error
This is so we can do proper error handling, at the same time
we want to maintain backward compatibility
2024-10-10 11:00:36 -04:00
Jordan Liggitt
8eff759b6a
Update sigs.k8s.io/json to go1.23 2024-10-10 11:00:11 -04:00
Kubernetes Prow Robot
daf76e6ead
Merge pull request #127778 from tkashem/refactor-conditional-delete
KEP-4795: refactor: etcd store conditional delete
2024-10-10 14:46:22 +01:00
Abu Kashem
fecab0713b
refactor etcd store conditional delete 2024-10-10 08:42:44 -04:00
Aohan Yang
da5738d9aa Set feature gate emulation version during test 2024-10-10 19:26:31 +08:00
Kubernetes Prow Robot
a6ea7b8218
Merge pull request #122923 from tkashem/timeout-documenting-test
document behavior of per handler read/write timeout with test(s)
2024-10-10 09:48:23 +01:00
Francesco Romani
838f911dea cpumanager: smtalign: fix error message
Fix error message if availablePhysicalCPUs = 0.
Without this change, the logic was mistakenly emitting
the old error message, which is confusing for troubleshooting.

Plus, a tiny quality of life improvement:
cpumanager static policy wants to use `cpuGroupSize` multiple times.
The value represents how many VCPUs per PCPUs the machine has.
So, let's cache (and log!) the value in the policy data.
We don't support dynamic update of the HW topology anyway.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2024-10-10 10:18:44 +02:00
AxeZhan
b1f07bb36c add tests for scheduler 2024-10-10 15:53:19 +08:00
AxeZhan
6fbc3a618f using NonMissingContainerRequests 2024-10-10 15:53:07 +08:00
Kubernetes Prow Robot
1f9d2577da
Merge pull request #127869 from ak20102763/explain_o_shorthand
Added shorthand for kubectl explain --output
2024-10-10 08:08:25 +01:00
Kubernetes Prow Robot
fe218437e0
Merge pull request #127974 from jpbetz/mvp-test-cleanup
peerproxy flake: Use t.Cleanup instead of defer to shut down servers
2024-10-10 03:54:22 +01:00
Kubernetes Prow Robot
582dcc2aca
Merge pull request #127221 from toVersus/test/restartable-init-termination
[Sidecar Containers] Expand test coverage for Node E2E tests on pod termination behavior
2024-10-10 02:48:23 +01:00
Tsubasa Nagasawa
82b690ddf6 Add more Node E2E tests to cover pod termination for Sidecar Containers
* A pod with restartable init container that exits with
  a non-zero code is marked as a pod succeeded phase
* A pod with restartable init containers that exits with
  a non-zero code by prestop hook is marked as a pod succeeded phase
* A pod with regular container that exceeds its termination grace period
  seconds is marked as a pod failed phase
* A pod with restartable init containers that exceeds its termination
  grace period seconds is marked as a pod succeeded phase
* A pod with a regular container that exceeded its termination grace
  period seconds by PreStop hook is marked as a pod failed phase
* A pod with restartable init containers that exceeds its termination
  grace period seconds by PreStop hook is marked as a pod succeeded phase

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2024-10-10 09:43:41 +09:00
Kubernetes Prow Robot
74cfa2fd04
Merge pull request #127825 from macsko/add_pod_update_event_handling_scheduler_perf_test_case
Add scheduler_perf test case for pod update events handling
2024-10-10 01:38:23 +01:00
Tsubasa Nagasawa
bd00f83578 Add step to existing pod termination Node E2E tests to check the container’s exit code
Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
2024-10-10 09:17:43 +09:00
Joe Betz
875d163ce6 Use t.Cleanup instead of defer to shut down servers 2024-10-09 20:16:01 -04:00
utam0k
60c29c380d
Add integration test for VolumeRestriction in requeueing scenarios
Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-10-10 08:31:29 +09:00
Kubernetes Prow Robot
cc67c4cf34
Merge pull request #127970 from aaron-prindle/set-add-feature-kube-apiserver-test-framework
test: enable featureGate AddMetrics on kube-apiserver testserver
2024-10-10 00:28:29 +01:00
Kubernetes Prow Robot
e7bc45269d
Merge pull request #127965 from koba1t/dependencies/update_kustomize_v5.5.0
Update kubectl kustomize to v5.5.0
2024-10-10 00:28:23 +01:00
Kubernetes Prow Robot
78d6490412
Merge pull request #127302 from cici37/costFG
Promote cost related feature gate to default true
2024-10-09 23:02:23 +01:00
Kubernetes Prow Robot
dd87bc0646
Merge pull request #127901 from skitt/k8s-sigs-yaml
Use sigs.k8s.io/yaml instead of gopkg.in/yaml
2024-10-09 19:38:29 +01:00
Kubernetes Prow Robot
364c73d5a9
Merge pull request #127637 from dshebib/e2eNode_containersLifecycleFormatting
[e2e_node] containers_lifecycle organize tests
2024-10-09 19:38:22 +01:00
Akash
923a41370d Added shorthand for explain --output
Removed short flag example
2024-10-10 00:00:25 +05:30
koba1t
e7daa70852 Update kubectl kustomize to kyaml/v0.18.1, cmd/config/v0.15.0, api/v0.18.0, kustomize/v5.5.0 2024-10-09 23:45:32 +09:00
Kubernetes Prow Robot
d9c46d8ecb
Merge pull request #127909 from richabanker/mvp-cleanup
Reduce IdentityLeaseRenewIntervalPeriod in peer_proxy test
2024-10-09 13:28:23 +01:00
Kubernetes Prow Robot
c9ff60dc68
Merge pull request #127607 from sanposhiho/metric-queuetest
chore: ensure the scheduler handles events before checking the pod position
2024-10-09 12:24:24 +01:00
Kensei Nakada
6624541893 cleanup: remove isUnschedPodUpdateIncluded variable 2024-10-09 18:52:11 +09:00
Maciej Skoczeń
930ebe16db Add template parameters to createNodesOp in scheduler_perf 2024-10-09 08:51:04 +00:00
Kubernetes Prow Robot
f7fef0384e
Merge pull request #127944 from antoninbas/use-generics-for-delaying-queue-waitFor
Use generics for waitFor (delaying workqueue) in client-go
2024-10-09 09:42:23 +01:00
Maciej Skoczeń
98e4892b84 Add scheduler_perf test case for pod update events handling 2024-10-09 08:35:25 +00:00
Kubernetes Prow Robot
c5aa403a98
Merge pull request #127945 from jpbetz/fix-peerproxy
peerproxy flake: Cancel informers for shutdown server in peerproxy test
2024-10-09 08:36:29 +01:00
Kubernetes Prow Robot
a1df68a31f
Merge pull request #125118 from jsoref/from-to
Order ScalingReplicaSet message from->to
2024-10-09 08:36:22 +01:00
Kubernetes Prow Robot
c270e56252
Merge pull request #126932 from zhifei92/kubectl-describe-ep
Fix the bug where "kubectl describe svc' endpoints"behaves unexpectedly.
2024-10-09 06:46:21 +01:00
Kensei Nakada
4f853fceb9 fix: eliminate a possible double-record of UnscheduledPodUpdate event handling latency 2024-10-09 12:52:09 +09:00
Aaron Prindle
4e2562e0bb test: enable featureGate AddMetrics on kube-apiserver testserver 2024-10-09 03:14:15 +00:00
Joe Betz
3570feb2fc Cancel informers for shutdown server in peerproxy test 2024-10-08 21:49:09 -04:00
Kubernetes Prow Robot
36122d5a9b
Merge pull request #125103 from hjet/kuberuntime-testcov
[FG:InPlacePodVerticalScaling] Expand coverage for TestGenerateLinuxContainerResources
2024-10-09 01:58:22 +01:00
Richa Banker
fe97e41f29 add more logging for peer_proxy_test, also tweak IdentityLeaseGCPeriod and IdentityLeaseRenewIntervalPeriod 2024-10-08 17:18:27 -07:00
Richa Banker
6e66a35982 reset err in resolveServingLocation() when the req can be served by local apiserver 2024-10-08 17:18:20 -07:00
Kubernetes Prow Robot
95ec69c16c
Merge pull request #127663 from alexanderstephan/export-reflector
Export name and typeDescription members of reflector struct
2024-10-09 00:16:22 +01:00