Tim Allclair
7bd78b06e9
Warn on deprecated AppArmor annotation use
2024-03-07 09:51:48 -08:00
Tim Allclair
06caf32ecd
Validate localhost profile max length
2024-03-06 10:46:31 -08:00
Tim Allclair
0eb5f52d06
Rename AppArmor annotation constants with Deprecated
2024-03-06 10:46:31 -08:00
Tim Allclair
ec325b328d
Match annotations against pod AppArmor field
2024-03-05 12:22:50 -08:00
Tim Allclair
289ec02e8b
Implement version skew strategy
2024-03-05 12:22:50 -08:00
Wei Huang
01db4ae9e7
Graduate PodSchedulingReadiness to stable
2024-02-28 23:18:44 -08:00
Kubernetes Prow Robot
0deaf12b88
Merge pull request #123044 from yanhuan0802/fix-incorrect-comment
...
fix: correct incorrect comment & function name about SchedulingGated
2024-02-20 09:42:03 -08:00
AxeZhan
c74ec3df09
graduate PodLifecycleSleepAction to beta
2024-02-19 19:40:52 +08:00
Huan Yan
01dbb85974
fix: correct incorrect comment & function name about SchedulingGated
2024-01-31 11:27:14 +08:00
Kensei Nakada
d5d3c26337
feature(scheduler): implement matchLabelKeys in PodAffinity and PodAntiAffinity
2023-10-18 11:28:02 +00:00
kerthcet
96ab232f5f
Remove reasons from PodConditionType
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-06-07 11:47:47 +08:00
Kubernetes Prow Robot
25a25e27a9
Merge pull request #110477 from halfcrazy/feat/hostnetwork-fieldsel
...
support fieldSelector spec.hostNetwork
2023-04-21 18:13:11 -07:00
Yan Zhu
7fb88eec73
support fieldSelector spec.hostNetwork
...
Signed-off-by: Yan Zhu <hackzhuyan@gmail.com>
2023-04-17 13:19:35 +08:00
Kubernetes Prow Robot
696701b9fd
Merge pull request #114086 from xmcqueen/113935
...
block ephemeral container addition to static pods
2023-01-13 07:36:28 -08:00
Sascha Grunert
af1f6a230b
Make seccomp annotations non-functional
...
This cleanup has been planned to finish the corresponding KEP:
https://github.com/kubernetes/kubernetes/issues/91286
As follow-up on the partly removal of the seccomp annotations in
https://github.com/kubernetes/kubernetes/pull/109819 , we now drop
the version skew handling completely, but still warn as well as keep
the validation in place if both (annotation and field) are set.
The Pod Security Admission code has been already changed in
https://github.com/kubernetes/kubernetes/pull/114846 .
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-01-12 17:11:52 +01:00
Kubernetes Prow Robot
4106b10d9c
Merge pull request #112799 from kerthcet/cleanup/strategy-test
...
optimize testcases arrangement
2022-12-09 15:43:29 -08:00
Brian McQueen
25e990f738
added validation check to block adding an ephemeral container to a static pod and test cases
2022-12-02 15:39:11 -08:00
kerthcet
04573fb8c9
Add api-side enablement tests for nodeInclusionPolicy when updating
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-11-04 15:11:08 +08:00
kerthcet
21dea23f56
Add api-side enablement tests for nodeInclusionPolicy
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-11-04 15:11:05 +08:00
Wei Huang
7b6293b6b6
APIs, Validation and condition enforcements
...
- New API field .spec.schedulingGates
- Validation and drop disabled fields
- Disallow binding a Pod carrying non-nil schedulingGates
- Disallow creating a Pod with non-nil nodeName and non-nil schedulingGates
- Adds a {type:PodScheduled, reason:WaitingForGates} condition if necessary
- New literal SchedulingGated in the STATUS column of `k get pod`
2022-11-03 14:32:34 -07:00
kerthcet
3ac1c4366f
Optimize testcases arrangement
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-10-08 13:03:21 +08:00
Sascha Grunert
584783ee9f
Partly remove support for seccomp annotations
...
We now partly drop the support for seccomp annotations which is planned
for v1.25 as part of the KEP:
https://github.com/kubernetes/enhancements/issues/135
Pod security policies are not touched by this change and therefore we
have to keep the annotation key constants.
This means we only allow the usage of the annotations for backwards
compatibility reasons while the synchronization of the field to
annotation is no longer supported. Using the annotations for static pods
is also not supported any more.
Making the annotations fully non-functional will be deferred to a
future release.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-08-01 09:19:29 +02:00
Lee Verberne
d238e67ba6
Remove EphemeralContainers feature-gate checks
2022-07-26 02:55:30 +02:00
Daniel Smith
331525670b
Remove ClusterName
2022-05-05 20:12:50 +00:00
Daniel Smith
2831f9a343
remove unneeded references
2022-03-23 15:26:38 +00:00
ml
a2441a256b
fix multiple typos
2021-10-29 21:43:52 +02:00
Patrick Ohly
a8c930ef46
generic ephemeral volume: graduation to GA
...
The feature gate gets locked to "true", with the goal to remove it in two
releases.
All code now can assume that the feature is enabled. Tests for "feature
disabled" are no longer needed and get removed.
Some code wasn't using the new helper functions yet. That gets changed while
touching those lines.
2021-10-11 20:54:20 +02:00
Shiming Zhang
45ce2dfacc
Treat negative as 1s in delete path
2021-06-28 11:49:39 +08:00
Lee Verberne
97726a50c1
Address feedback for new /ephemeralcontainers API
...
* Use deep copies in `PrepareForUpdate()`
* Preserve select metadata from new pod
* Use patch to add ephemeral container `kubectl debug`
* Distinguish between pod vs /ephemeralcontainers NotFound
2021-04-16 14:08:12 +02:00
lala123912
e162fcc1bf
Add request value verification for hugepage
2021-03-05 17:36:22 +08:00
Patrick Ohly
d64165c803
generic ephemeral volumes: fix and test apiserver feature gate
...
The implementation should have preserved an existing ephemeral volume
source during an update even when the feature gate is currently
disabled, but due to a cut-and-paste error it was checking for CSI
volumes instead.
The new test detected that. It's based on
https://github.com/kubernetes/kubernetes/pull/97058/files#diff-7826f7adbc1996a05ab52e3f5f02429e94b68ce6bce0dc534d1be636154fded3
2021-03-03 10:13:05 +01:00
Sascha Grunert
c3ba2d8b8b
Add seccomp GA version skew for pods
...
This adds a new conversion function to the pod strategy to handle the
seccomp version skew strategy:
https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20190717-seccomp-ga.mdversion-skew-strategy
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-07-06 16:06:24 +02:00
Lee Verberne
cc32702e8f
Add ephemeral containers to streamLocation name suggestions
...
This combines container names into a single list because separating them
into a long, variable length string isn't particularly useful in the
context of an streaming error message.
2020-02-12 14:49:42 +01:00
shaloulcy
fe312ed74a
add index for pod cacher
...
Signed-off-by: shaloulcy <lcy041536@gmail.com>
2020-02-11 09:25:27 +08:00
Alexander Zimmermann
026ba54961
Fixed Golint errors in pkg/registry/core/pod
2020-02-06 11:40:37 +01:00
yuzhiquan
ca69051475
refactor(pod log):refactor for container valiate, little cleanup
...
bug(pod log):TestCheckLogLocation should point out pod name
modify container if statement
fix typo
2019-12-30 16:16:45 +08:00
Jordan Liggitt
bb90f0ff94
Install APIs directly for tests
2019-12-13 11:56:29 -05:00
David Eads
867ee1d5ff
add insecurebackendproxy
2019-10-16 11:43:17 -04:00
Khaled Henidak(Kal)
41f313570e
fix panic in ResourceLocation in case of empty pod ip list
2019-07-17 18:30:08 +00:00
Khaled Henidak(Kal)
54d42e6a65
types modifications + conversion + conversion testing
2019-07-02 15:39:05 +00:00
zuoxiu.jm
3370907fe5
pass handler ctx to node rest nodegetter
2018-10-01 09:27:18 -04:00
Jason Smith
4ba7fd5f3c
added serviceAccountName to field selectors
2018-07-12 11:13:36 +02:00
David Eads
94e3d94d67
update tests to be specific about the versions they are testing instead of floating
2018-05-01 13:18:41 -04:00
David Eads
a89291a5de
stop duplicating preferred version order
2018-04-26 10:03:36 -04:00
Mike Danese
54fd2aaefd
replace request.Context with context.Context
2018-04-24 08:59:00 -07:00
Bobby (Babak) Salamat
384a86caa9
Add NominatedNodeName to PodStatus
2018-01-30 13:13:57 -08:00
linweibin
fa8afc1d39
Remove unused code in UT files in pkg/
2018-01-15 16:02:35 +08:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Dr. Stefan Schimanski
7773a30f67
pkg/api/legacyscheme: fixup imports
2017-10-18 17:23:55 +02:00
Di Xu
58669f6f1d
support fieldSelector spec.schedulerName
2017-08-18 13:32:09 +08:00