Ed Bartosh
abcb56defb
kubelet: do not enter termination status if pod might need to unprepare resources
2022-11-11 21:58:03 +01:00
Ed Bartosh
ae0f38437c
kubelet: add support for dynamic resource allocation
...
Dependencies need to be updated to use
github.com/container-orchestrated-devices/container-device-interface.
It's not decided yet whether we will implement Topology support
for DRA or not. Not having any toppology-related code
will help to avoid wrong impression that DRA is used as a hint
provider for the Topology Manager.
2022-11-11 21:58:03 +01:00
Patrick Ohly
d2ff210c20
scheduler: add dynamic resource allocation plugin
...
The plugin handles the interaction with ResourceClaims that are referenced by a
Pod.
2022-11-11 21:58:03 +01:00
Alexander Zielenski
c43105d0dc
fix apiregistration priority
...
v1 discovery always has apiregistration first. this rigs the priority to be greater than maximum so it is guaranteed to be first in the list
2022-11-11 11:19:31 -08:00
Alexander Zielenski
93caf125b9
add discovery integration tests
...
add crd integration tests
\
2022-11-11 11:19:31 -08:00
Kubernetes Prow Robot
e4d46148de
Merge pull request #113826 from jsafrane/add-openstack
...
Add CSI migration of OpenStack Cinder volumes
2022-11-11 11:00:07 -08:00
Kubernetes Prow Robot
e451cf5ffe
Merge pull request #113169 from soltysh/use_waitgroup
...
Use goroutine to speed up volume clenaups
2022-11-11 10:59:55 -08:00
Kubernetes Prow Robot
4b1b42624e
Merge pull request #113848 from atiratree/113036-fix-ds-dedup-histories
...
integration: fix race with the controller in TestDSCUpdatesPodLabelAfterDedupCurHistories
2022-11-11 09:18:09 -08:00
Kubernetes Prow Robot
af7cc0a60f
Merge pull request #113856 from alculquicondor/job-panic
...
Fix match onExitCodes when Pod is not terminated
2022-11-11 08:14:09 -08:00
Kubernetes Prow Robot
a1048c840d
Merge pull request #113827 from xmudrii/update-changelogs
...
Update changelogs with missing CVE-2022-3162, CVE-2022-3294, CVE-2021-25749
2022-11-11 07:10:09 -08:00
Aldo Culquicondor
bc5afaf580
Fix match onExitCodes when Pod is not terminated
...
Change-Id: Id1f9c46f8b6a12115577a1fadb12adc580c9ba6a
2022-11-11 10:05:11 -05:00
Jan Safranek
3fdd4ca7a4
Fix subpath disruptive tests
...
Add volumePath parameter to all disruptive checks, so subpath tests can use
"/test-volume" and disruptive tests can use "/mnt/volume1" for their
respective Pods.
2022-11-11 14:03:33 +01:00
Kubernetes Prow Robot
cc704f9778
Merge pull request #113375 from atiratree/PodHealthyPolicy-api
...
api: add unhealthyPodEvictionPolicy for PDBs
2022-11-11 04:02:10 -08:00
Antonio Ojea
cccc8da724
remove unused afterEach hook on e2e services
2022-11-11 11:30:13 +00:00
Jan Safranek
6005c3b512
Remove OpenStack cloud provider
...
And keep OpenStack Cinder CSI translation
2022-11-11 12:04:55 +01:00
Filip Křepinský
1e078f1630
fix race with the controller in TestDSCUpdatesPodLabelAfterDedupCurHistories
2022-11-11 11:52:56 +01:00
Tim Bannister
5ff160e98c
Update generated Kubernetes Metrics Reference
2022-11-11 09:19:13 +00:00
Tim Bannister
b61ed2d875
Fix autogenerated mark for instrumentation doc
...
The https://k8s.io/docs/ website uses this marker to highlight that
pages should not be directly edited in k/website
2022-11-11 09:19:00 +00:00
Kubernetes Prow Robot
d7bff1c809
Merge pull request #111577 from brianpursley/troubleshoot-unit-test-flake
...
Add logging for reconciler unit test
2022-11-11 00:44:09 -08:00
Wei Huang
8530fbefd9
Fix typos in CHANGELOG-1.26.md
2022-11-10 22:32:05 -08:00
Kubernetes Prow Robot
cf12a74b18
Merge pull request #113835 from zshihang/master
...
fix test flake in TestLegacyServiceAccountTokenTracking
2022-11-10 18:36:12 -08:00
Alexander Zielenski
3c68fe6596
fix aggregated discovery version sorting
...
add test for level based priorities
2022-11-10 17:16:14 -08:00
Jefftree
d74b6b2cfa
fix dropped subresources
...
some subresources were not properly included in the array due to pointers becoming stale over a resize
2022-11-10 17:16:14 -08:00
Jefftree
c9b3488400
add aggregated /apis handler for genericapiserver
...
so that aggregated-apiservers can also take advantage. discovered by e2e tests with feature enabled
2022-11-10 17:16:12 -08:00
Kubernetes Release Robot
520e2c84b3
CHANGELOG: Update directory for v1.26.0-beta.0 release
2022-11-11 00:15:57 +00:00
Alexander Zielenski
1550655336
fix aggregated discovery legacy fallback
...
due to redesign where we changed from new endpoint to /apis. The expected error was not also changed.
Caught by e2e tests when feature enabled. Should have been caught by unit test first but it was implemented without root /apis. Unit test also fixed
2022-11-10 15:39:20 -08:00
Filip Křepinský
2fbbc473b7
integration: add eviction tests for UnhealthyPodEvictionPolicy
2022-11-10 23:32:27 +01:00
Filip Křepinský
3e3912467a
generated
2022-11-10 23:32:27 +01:00
Filip Křepinský
a429797f2e
api: add UnhealthyPodEvictionPolicy for PDBs
2022-11-10 23:25:42 +01:00
Kubernetes Prow Robot
7785ad083b
Merge pull request #113812 from mimowo/handling-pod-failures-beta-enable-e2e-test
...
Add e2e test for job pod failure policy used to match pod disruption
2022-11-10 13:58:09 -08:00
Shihang Zhang
6784610beb
fix test flake in TestLegacyServiceAccountTokenTracking
2022-11-10 13:48:53 -08:00
Kubernetes Prow Robot
3649eeae9c
Merge pull request #113824 from logicalhan/more-docs
...
update documentation after code freeze
2022-11-10 11:33:26 -08:00
Kubernetes Prow Robot
763f68ef77
Merge pull request #113819 from soltysh/events_beta
...
Move events command to top level
2022-11-10 11:33:14 -08:00
Patrick Ohly
0133df3929
kube-controller-manager: add ResourceClaim controller
...
The controller uses the exact same logic as the generic ephemeral inline volume
controller, just for inline ResourceClaimTemplate -> ResourceClaim.
In addition, it supports removal of pods from the ReservedFor field when those
pods are known to not need the claim anymore. At the moment, only this special
case is supported. Removal of arbitrary objects would imply granting full read
access to all types to determine whether a) an object is gone and b) if the
current incarnation is the one which is listed in ReservedFor. This may get
added later.
2022-11-10 20:23:50 +01:00
Patrick Ohly
b87530af4f
kube-controller-manager: clone resource controller from volume/ephemeral
2022-11-10 20:23:50 +01:00
Patrick Ohly
59d46c026f
staging: add ResourceClaim support code
...
This is similar to the support code for generic ephemeral inline volumes.
Differences:
- to avoid stuttering, the functions are just resourceclaim.Name and
resourceclaim.IsForPod
- resourceclaim.Name returns the right name for both cases (template
and reference), which will simplify some code
Other helper functions check some simple status conditions.
2022-11-10 20:23:50 +01:00
Patrick Ohly
76cb805af2
staging: create dynamic resource allocation repo
...
This will be used for different individual packages. A separate repo
is better than reusing something like component-helpers because dependencies
will be different.
2022-11-10 20:23:50 +01:00
Patrick Ohly
c34185b2e5
logcheck.conf: ensure that dra uses contextual logging
...
It's new code, so we should follow the latest recommendations for logging.
2022-11-10 20:23:50 +01:00
Patrick Ohly
8018ab7cd9
api: fully validate PotentialNodes and SuitableNodes
...
This is in response to review feedback. Checking for valid node names and the
set property catches programming mistakes in the components that have write
permission.
2022-11-10 20:23:50 +01:00
Patrick Ohly
ec06d2c1fd
api: update testdata
...
This is the result of
cd staging/src/k8s.io/api && UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test ./...
2022-11-10 20:23:47 +01:00
Patrick Ohly
5c5e060fb8
api: implement printers for dynamic resource allocation
...
This is needed for "kubectl get". It depends on the generated swagger docs.
2022-11-10 20:22:47 +01:00
Patrick Ohly
9683c60c05
api: generated files
2022-11-10 20:22:42 +01:00
Patrick Ohly
5cca60f0b8
api: dynamic resource allocation API
...
This adds a new resource.k8s.io API group with v1alpha1 as version. It contains
four new types: resource.ResourceClaim, resource.ResourceClass, resource.ResourceClaimTemplate, and
resource.PodScheduling.
2022-11-10 20:08:24 +01:00
Patrick Ohly
5433da0419
test: adapt reference data to Pod changes
...
These tests print a v1.Pod with Sprintf, which includes the new field even when
it is empty.
2022-11-10 20:08:24 +01:00
Patrick Ohly
7d11b422e3
api: add resource claims to core API
...
The resource.k8s.io/ClaimTemplate only gets referenced by name, therefore the
changes to the core API are limited.
2022-11-10 20:08:24 +01:00
Patrick Ohly
155d49813f
kube features: add DynamicResourceAllocation
2022-11-10 20:08:24 +01:00
Marko Mudrinić
ecfc7f189d
Add CVE-2021-25749 to CHANGELOG-1.23.md
...
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-11-10 19:43:53 +01:00
Marko Mudrinić
d34373cdbe
Add CVE-2022-3294 to CHANGELOG-1.22.md
...
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-11-10 19:41:59 +01:00
Marko Mudrinić
dcee13c924
Add CVE-2022-3294 to CHANGELOG-1.23.md
...
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-11-10 19:41:16 +01:00
Marko Mudrinić
04ad0d4b67
Add CVE-2022-3162 to CHANGELOG-1.24.md
...
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-11-10 19:40:38 +01:00