Peter Hunt
6b3f8e5662
kubelet: fallback to partial CRI stats if full fails
...
This is partially to allow the kube alpha tests to pass until CRI implementations have support, but also to handle this error situation a bit more elegantly
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:20 -04:00
Peter Hunt
feb5f5e0ed
kubelet: use helper function to check for nil fields in sandbox stats
...
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:20 -04:00
Peter Hunt
85e8a4bf73
kubelet stats: use UsageNanoCores if available
...
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:20 -04:00
Peter Hunt
ffdb4b9c4a
kubelet: slightly move around some cri stats functions
...
to reduce duplication and add clarity
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:20 -04:00
Peter Hunt
d2c436700e
kubelet stats: add support for podAndContainerStatsFromCRI
...
This commit adds an initial implementation of translating from the new CRI fields
to the /stats/summary PodStats object
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:20 -04:00
Peter Hunt
7866287ba1
kubelet stats: wire up podAndContainerStatsFromCRI feature gate
...
though it is currently unused
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:20 -04:00
Peter Hunt
cd85d4b3fb
features: add podAndContainerStatsFromCRI
...
to allow users to specify whether the Kubelet should pull pod and container stats
strictly from the CRI, rather than a mixture of CRI and cAdvsior
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2021-10-29 09:40:19 -04:00
Kubernetes Prow Robot
59e6e3f2f3
Merge pull request #106010 from wojtek-t/cleanup_watchcache
...
Minor watchcache cleanup
2021-10-29 06:14:50 -07:00
Abu Kashem
f6dcf17a10
apf: call metrics.AddReject for decisionCancel
2021-10-29 09:11:23 -04:00
Wojciech Tyczyński
ace5554257
Minor watchcache cleanup
2021-10-29 14:09:53 +02:00
Kubernetes Prow Robot
5cf54fe762
Merge pull request #106005 from MadhavJivrajani/refactor-cacher-process
...
cacher: refactor process() function
2021-10-29 04:40:52 -07:00
Madhav Jivrajani
aab7cd3d8a
cacher: refactor process() function
...
Split process() function into processEvents() and process().
This is done in anticipation of GetAllEventsSinceThreadUnsafe()
returning an entity using which events can be constructed and
not the events itself.
Subsequently, this commit also moves updating resource version
for initEvents from Watch() to the processEvents() func.
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-10-29 15:34:16 +05:30
Mauricio Poppe
9e29cc042e
KubeEnv var to enable Hyper-V in Windows
2021-10-29 07:07:33 +00:00
Nikhil Sharma
a69a6aa4b5
Changed code to improve output for files under test/e2e/kubectl
2021-10-29 12:35:49 +05:30
Kubernetes Prow Robot
bb24c265ce
Merge pull request #104693 from ravisantoshgudimetla/add-podOS-field
...
Add pod os field
2021-10-28 21:38:50 -07:00
Mengjiao Liu
2783ddc227
Migrate scheduler files interpodaffinity/filtering.go
,podtopologyspread/filtering.go
, volume_zone.go
to structured logging
2021-10-29 11:41:02 +08:00
Kubernetes Prow Robot
a8cf023abc
Merge pull request #100318 from lyft/hpa-v2beta2-opt-conditions
...
Mark v2beta1 and v2beta2 HPA status conditions as optional
2021-10-28 20:30:51 -07:00
David Porter
e1a951afe5
Fix COS GPU driver installation
...
* Rely on the built in GPU driver installer in COS as recommended in
public docs - https://cloud.google.com/container-optimized-os/docs/how-to/run-gpus
* Run `nvidia-smi` after installation to verify installation
2021-10-28 17:49:50 -07:00
Kubernetes Prow Robot
c592bd40f2
Merge pull request #105609 from pohly/generic-ephemeral-volume-ga
...
generic ephemeral volume GA
2021-10-28 17:36:50 -07:00
Kubernetes Prow Robot
8e37a3b324
Merge pull request #103868 from qingsenLi/210723-forget
...
Merge conditional assignment into variable declaration
2021-10-28 16:32:50 -07:00
Zeleena Kearney
65819f66c9
Mark v2beta1 and v2beta2 HPA status conditions as optional to resolve unnecessary apply error
2021-10-28 17:37:19 -05:00
Kubernetes Prow Robot
8e8bf06f15
Merge pull request #105796 from sanposhiho/move/parallelizer-to-non-internal
...
Fix: move parallelize package to non-internal file
2021-10-28 15:31:00 -07:00
ravisantoshgudimetla
8a6533089a
testdata: Pod OS field
2021-10-28 17:33:51 -04:00
ravisantoshgudimetla
41f8f95fc5
generated: Add os field to Pod Spec
2021-10-28 17:31:52 -04:00
ravisantoshgudimetla
d7d0beb65f
api: Handle validation of PodOS field presence
2021-10-28 17:31:52 -04:00
ravisantoshgudimetla
8d97eaf48c
feature: Add podOS featuregate
2021-10-28 17:31:52 -04:00
ravisantoshgudimetla
3b936d310c
api: Introduce os field to pod spec
2021-10-28 17:31:52 -04:00
James Sturtevant
d6db275cd3
[windows] Test: Check for failed sandbox pod when testing for RunAsUserName ( #105943 )
...
* Check for failed sandbox and failed workload containers
* Add test to confirm containers won't start
2021-10-28 14:04:59 -07:00
Abdullah Gharaibeh
f466ab0989
Make job pod template annotations and labels mutable for suspended jobs that never started
2021-10-28 14:53:15 -04:00
Kubernetes Prow Robot
1d9d530ee1
Merge pull request #105959 from liggitt/podsecurity-details
...
PodSecurity: return namespace validation errors in standard field.ErrorList format
2021-10-28 11:51:07 -07:00
Kubernetes Prow Robot
589d47e70c
Merge pull request #103908 from wzshiming/fix/kubelet-config-typo
...
Fix typo in kubelet config
2021-10-28 11:50:59 -07:00
Kubernetes Prow Robot
c86aabbbab
Merge pull request #105957 from shuaich/use_10250_as_targetPort_for_metrics_server
...
Use 10250 as targetPort for metrics-server
2021-10-28 10:20:41 -07:00
Kubernetes Prow Robot
1814c9c7fb
Merge pull request #105926 from 249043822/br-flakytest1
...
Fix:Flaky test] [sig-node] Kubelet should correctly account for terminated pods after restart
2021-10-28 10:20:34 -07:00
Kubernetes Prow Robot
64a5715a2d
Merge pull request #105774 from NikhilSharmaWe/betterOutput
...
Better output
2021-10-28 10:20:26 -07:00
Kubernetes Prow Robot
03c76decb2
Merge pull request #105947 from thockin/worktree-head
...
Always pass HEAD to worktree
2021-10-28 09:21:02 -07:00
Kubernetes Prow Robot
525b094d97
Merge pull request #105917 from enj/enj/i/sa_err_print
...
serviceaccount/claims: include validation failure error in the log
2021-10-28 09:20:50 -07:00
Kubernetes Prow Robot
eb5b5e7f0b
Merge pull request #105726 from DiptoChakrabarty/podexecdoc
...
Fix Documentation of Default params for PodExecOptions Function
2021-10-28 09:20:39 -07:00
Kubernetes Prow Robot
6edcb60d9f
Merge pull request #104915 from alculquicondor/job-ready
...
Track ready pods in Job status
2021-10-28 09:20:26 -07:00
Patrick Ohly
d55f7c85ef
psp: remove unused PodSecurityPolicyValidationOptions
...
Since the only member of that struct is gone, the struct itself can also be
removed. If for whatever reason the struct is needed again, then this commit
can be reverted to bring it back.
2021-10-28 17:25:07 +02:00
Kubernetes Prow Robot
e450e3331f
Merge pull request #105482 from endocrimes/dani/kubeletconfig
...
e2e_node: remove unnecessary dynamic config changes
2021-10-28 07:04:27 -07:00
Shuanglu
9bcfa71e31
Fix Daemonset controller role missing 'update pod' permission ( #104758 )
...
* fix_dsc_rbac_pod_update
* add test for DaemonSet Controller updates label of the pod after "DedupCurHistories"
* rebase
* update parameter of dsc.Run
2021-10-28 05:24:26 -07:00
Antoni Zawodny
093aa210be
Add more info to the ListAndWatch trace
2021-10-28 13:47:19 +02:00
Kubernetes Prow Robot
afff019fbc
Merge pull request #105734 from marseel/fix/race_condition
...
Fix race condition in logging when request times out
2021-10-28 03:14:26 -07:00
Jordan Liggitt
3aa656b63f
PodSecurity: return field errors for invalid namespace labels
2021-10-28 00:28:27 -04:00
Jordan Liggitt
c0f33ddf08
PodSecurity: fix level/version validation fieldpaths
2021-10-28 00:28:26 -04:00
Jordan Liggitt
7cd905e897
PodSecurity: plumb kind in attributes
2021-10-28 00:28:26 -04:00
Jordan Liggitt
091724a6d8
apierrors: optimize ToAggregate() for zero-length lists
2021-10-28 00:24:14 -04:00
Kubernetes Prow Robot
392de8012e
Merge pull request #105948 from oomichi/fix-containerName
...
Fix container name on NewDeployment()
2021-10-27 21:03:02 -07:00
Jordan Liggitt
57fdd167e4
apierrors: Avoid spurious <nil> in invalid error message
2021-10-27 23:45:06 -04:00
shuaichen
3d620192d9
Use 10250 as targetPort for metrics-server
...
Metrics-server's usage of privileged port 443 as targetPort requires
elevated permissions than necessary and violates principle of least
privilege.
2021-10-28 03:10:15 +00:00