huangyanfeng
04669c5d64
add warning for duplicate port name definition
...
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com >
2024-12-06 06:20:17 +00:00
Kubernetes Prow Robot
a2a32fc31a
Merge pull request #121968 from Peac36/fix/121414
...
add warnings for cases one of projected volume types get overwritten by service account token
2024-11-08 02:20:43 +00:00
Nikola
e1178c4cf8
optimize checks for overlapping in projected
2024-07-24 19:23:27 +03:00
Vinayak Goyal
bc06071495
Update AppArmor feature gates to GA stage.
...
Signed-off-by: Vinayak Goyal <vinaygo@google.com >
2024-07-15 23:29:37 +00:00
Nikola
1853742da6
refactor the duplicate paths warning for pods logic
2024-07-14 21:15:40 +03:00
Nikola
205a026bb1
extend pod warning rules for overlapping paths
2024-07-07 17:02:54 +03:00
Nikola
30c325a3dc
add validation for configmap, secret and downward api
2024-07-05 11:35:54 +03:00
Nikola
7708bcb4fc
add warnings for duplicated paths in projected volumes
2024-07-05 11:35:54 +03:00
Tim Allclair
7bd78b06e9
Warn on deprecated AppArmor annotation use
2024-03-07 09:51:48 -08:00
Kubernetes Prow Robot
745a364422
Merge pull request #120866 from bzsuni/cleanup/sets/api
...
use generic Set in api
2024-01-22 18:20:48 +01:00
Jordan Liggitt
b6e34187ca
Update duplicate env var warning
2023-12-18 10:06:30 -05:00
bzsuni
aa9b2b1696
use generic Set in api
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io >
2023-09-25 19:04:08 +08:00
Kubernetes Prow Robot
b908e2710a
Merge pull request #113245 from pacoxu/dup-ports-warning
...
add warning for dup ports in containers[*].ports and service.ports
2023-07-15 00:31:15 -07:00
Paco Xu
df0d51d3b3
add some detailed message for dup container ports(steal from thockin)
2023-07-15 08:02:33 +08:00
Humble Chirammal
471fd1ae8a
deprecate RBD plugin from available in-tree drivers
...
Based on https://groups.google.com/g/kubernetes-sig-storage/c/h5751_B5LQM , the
consensus was to start the deprecation in v1.28.
This commit start the deprecation process of RBD plugin from in-tree
drivers.
ACTION REQUIRED:
RBD volume plugin ( `kubernetes.io/rbd`) has been deprecated in this release
and will be removed in a subsequent release. Alternative is to use RBD CSI driver
(https://github.com/ceph/ceph-csi/ ) in your Kubernetes Cluster.
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
2023-06-16 19:45:36 +05:30
Kubernetes Prow Robot
d93e1e95ff
Merge pull request #118548 from thockin/remove-warn-dup-volume-names
...
Remove unreachable warning on volume name dup
2023-06-08 19:44:12 -07:00
Kubernetes Prow Robot
af99df6a6b
Merge pull request #118547 from thockin/fix-dup-env-var-warn
...
Fix warnings on "duplicate" env vars
2023-06-07 22:58:12 -07:00
Tim Hockin
151509fb74
Remove unreachable warning on volume name dup
...
Volume names are validated to be unique and always have been. The cited
issues are all about apply getting messed up, not the aspiserver
allowing dups.
```
$ k create -f /tmp/bad.yaml
The Deployment "bad-volumes-test" is invalid: spec.template.spec.volumes[1].name: Duplicate value: "config"
$ k apply --server-side -f /tmp/bad.yaml
Error from server: failed to create typed patch object (default/bad-volumes-test; apps/v1, Kind=Deployment): .spec.template.spec.volumes: duplicate entries for key [name="config"]
$ k apply -f /tmp/bad.yaml -o json | jq '.spec.template.spec.volumes'
The Deployment "bad-volumes-test" is invalid: spec.template.spec.volumes[1].name: Duplicate value: "config"
```
2023-06-07 17:14:49 -07:00
Tim Hockin
0ddaa7f7c9
Fix warnings on "duplicate" env vars
...
Some use-cases are not actually wrong
2023-06-07 15:59:36 -07:00
Paco Xu
7a80d7c839
add warning for duplicate containers[*].ports with the same port, protocol, hostPort, and hostIP
2023-06-06 14:52:48 +08:00
Humble Chirammal
c009667c6c
deprecate CephFS plugin from available in-tree drivers.
...
https://groups.google.com/a/kubernetes.io/g/dev/c/g8rwL-qnQhk
based on above, the consensus was to start the deprecation in v1.28.
This commit start the deprecation process of CephFS plugin from
in-tree drivers.
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com >
2023-06-05 23:26:43 +05:30
Paco Xu
64c9070f8d
add pod containers[*].port duplicate warning
2023-05-30 10:57:04 +08:00
Kensei Nakada
e389d140ae
fix as suggested
2023-04-01 10:34:57 +00:00
Kensei Nakada
ffcf3ee6f8
feature(pkg/api): warning for Pod with null labelSelector in PodAffinity and TopologySpread
2023-03-31 02:15:04 +00:00
Shiming Zhang
4bdc1364ea
Warn if the terminationGracePeriodSeconds is negative.
...
Co-authored-by: Jordan Liggitt <jordan@liggitt.net >
2023-02-22 13:36:15 +08:00
Kubernetes Prow Robot
2ca95b4df9
Merge pull request #115035 from xing-yang/update_plugin_warning
...
Update warnings for removed in-tree plugins
2023-01-13 12:08:26 -08:00
xing-yang
07a1bc5b3e
Update warnings for removed in-tree plugins
2023-01-12 16:25:00 -05: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
Paco Xu
140502af8c
add warning for PVC template in statefulset and in pod ephemeral volume source
2022-10-22 09:14:03 +08:00
Kubernetes Prow Robot
9ef16e7908
Merge pull request #108554 from pacoxu/bad-input-1
...
add deprecated warning for node beta labels in pv/sc/rc/csi storage capacity
2022-08-02 10:23:44 -07: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
Humble Chirammal
e675bfee59
deprecate GlusterFS plugin from available in-tree drivers.
...
GlusterFS is one of the first dynamic provisioner which made into
Kubernetes release v1.4.
https://github.com/kubernetes/kubernetes/pull/30888
When CSI plugins/drivers to start appear, glusterfs' CSI driver
came into existence, however this project is not maintianed at
present and the last release happened few years back.
https://github.com/gluster/gluster-csi-driver/releases/tag/v0.0.9
The possibilities of migration to compatible CSI driver was also
discussed https://github.com/kubernetes/kubernetes/issues/100897
and consensus was to start the deprecation in v1.25.
This commit start the deprecation process of glusterfs plugin from
in-tree drivers.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com >
2022-07-29 12:18:48 +05:30
Paco Xu
234c33e8b8
deprecated node labels: make naming consistant and remove some unused args in funcs
2022-05-25 15:15:34 +08:00
Paco Xu
db147b7d67
(ut) add tests for bad filed values checking; refactor some funcs
2022-05-09 16:17:32 +08:00
Paco Xu
3fbfd7eb1b
add deprecated warning for node beta labels in pv/sc/rc/csi storage capacity
...
- (pv) deprecated label using warning for node affinity
- (storageclass) deprecated node labels: allowedTopologies.matchLabelExpressions.key
- (CSIStorageCapacity) deprecated node labels
- (RuntimeClass) deprecated node labels
2022-05-04 15:01:13 +08:00
Sascha Grunert
cdbfd009da
Mention seccomp annotation removal in v1.25
...
This patch adds removal warnings for the deprecated seccomp annotation,
which is targeting removal in v1.25.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2021-08-16 17:02:54 +02:00
Jordan Liggitt
8d9dd7b6ea
Avoid warning on seccomp field usage
2021-06-01 11:18:14 -04:00
Jiawei Wang
cc089c0400
Add warning for deprecated and removed plugin
2021-05-20 21:20:44 -07:00
Jordan Liggitt
ecdecafdc8
Add warning evaluation for pod specs
2021-05-18 10:42:36 -04:00