Commit Graph

104636 Commits

Author SHA1 Message Date
ahrtr
6e3cf5eca2 replace ioutil with io and os for hack 2021-10-30 14:44:41 +08:00
ahrtr
45428d887d replace ioutil with io and os for cluster/gce/gci 2021-10-30 14:23:50 +08:00
Kubernetes Prow Robot
fc6890f902
Merge pull request #105989 from bobbypage/gpu-test-config
Fix COS GPU driver installation
2021-10-29 22:59:17 -07:00
Kubernetes Prow Robot
934f96d07d
Merge pull request #106014 from enj/enj/i/unwrap_exec
client-go exec: make sure round tripper can be unwrapped
2021-10-29 21:56:15 -07:00
Ahmad Diaa
a2c37bfd09
use original requests in NodeResourcesBalancedAllocation instead of NonZero (#105845) 2021-10-29 19:04:14 -07:00
Rob Scott
76c19a24db
Initial Topology Hints e2e Tests 2021-10-29 17:37:10 -07:00
Kubernetes Prow Robot
324eff5b75
Merge pull request #105999 from mauriciopoppe/windows-hyperv
KubeEnv var to enable Hyper-V in GCE Windows nodes created with kube-up
2021-10-29 16:18:15 -07:00
Monis Khan
249aefebe3
client-go exec: make sure round tripper can be unwrapped
Signed-off-by: Monis Khan <mok@vmware.com>
2021-10-29 17:59:52 -04:00
Kubernetes Prow Robot
d3bd8a3aab
Merge pull request #106013 from Namanl2001/image-config-dir
enabling `IMAGE_CONFIG_DIR` in make file for testing purposes
2021-10-29 14:23:10 -07:00
Wojciech Tyczyński
e262db7a4d P&F: move seat-seconds to a better location 2021-10-29 22:20:16 +02:00
Kubernetes Prow Robot
36e69a3303
Merge pull request #105980 from ahg-g/ahg-mutable
Make job pod template annotations and labels mutable for suspended jobs that never started
2021-10-29 13:15:23 -07:00
Tim Hockin
11a25bfeb6
De-share the Handler struct in core API (#105979)
* De-share the Handler struct in core API

An upcoming PR adds a handler that only applies on one of these paths.
Having fields that don't work seems bad.

This never should have been shared.  Lifecycle hooks are like a "write"
while probes are more like a "read". HTTPGet and TCPSocket don't really
make sense as lifecycle hooks (but I can't take that back). When we add
gRPC, it is EXPLICITLY a health check (defined by gRPC) not an arbitrary
RPC - so a probe makes sense but a hook does not.

In the future I can also see adding lifecycle hooks that don't make
sense as probes.  E.g. 'sleep' is a common lifecycle request. The only
option is `exec`, which requires having a sleep binary in your image.

* Run update scripts
2021-10-29 13:15:11 -07:00
Namanl2001
6d6bb48240
passing image-config-dir
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-30 01:23:02 +05:30
ml
a2441a256b fix multiple typos 2021-10-29 21:43:52 +02:00
Namanl2001
952e2732d5
adding make comment
Signed-off-by: Namanl2001 <namanlakhwani@gmail.com>
2021-10-30 01:12:32 +05:30
Kubernetes Prow Robot
adff4a75ad
Merge pull request #105931 from mengjiao-liu/structured_logging_scheduler_part2
Migrate scheduler files `interpodaffinity/filtering.go`,`podtopologyspread/filtering.go`, `volume_zone.go` to structured logging
2021-10-29 12:13:23 -07:00
Shivanshu Raj Shrivastava
c2fba6b84d
referenced the V1Secret type (#105901) 2021-10-29 12:13:11 -07:00
Rob Scott
794f0cb7f1
Fixing how EndpointSlice Mirroring handles Service selector transitions 2021-10-29 11:03:28 -07:00
Jiahui Feng
5d9d3a4a82 upgrade sigs.k8s.io/structured-merge-diff to 4.2.0 2021-10-29 10:00:00 -07:00
Kubernetes Prow Robot
c9ddd248b6
Merge pull request #105888 from neolit123/1.23-remove-reset-update-clusterstatus
kubeadm: remove the reset/update-cluster-status phase
2021-10-29 09:13:03 -07:00
Bryan Boreham
a988182f59
'kubectl events' command (#99557)
* Basic scaffolding for kubectl events command

* Simple implementation of 'kubectl events'

* Print event fields

Borrowing code from 'kubectl describe'

* Sort events before printing

* Make output more like 'kubectl get events'

Print namespace if fetching from all

* Refactor: extract print functions

To make it easier to add watch function next.

* Implement watch for new events

Run the list function same as before, so those events come out in order,
then watch from the ResourceVersion after the last event.

* Clear up some lint warnings

* Update description and example text

* refactor: introduce a listOptions variable

* Implement --for option

splitResourceTypeName() function borrowed from cli-runtime because we
need similar behaviour to Builder.ResourceNames(), but applying to
Event.InvolvedObject.

* Add kubectl/pkg/cmd/events to vendor/modules.txt

* Add back cmdutil.Factory

Needed in NewCmdAlpha to construct the 'events' command

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Fix lint

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Make package alias go-cromulent

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Use genericclioptions.RESTClientGetter instead of cmdutil.Factory

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Decode object parameter to GroupVersionKind and name

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Merge two files into one

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Include example for --for option

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Fix inconsistent option name in error message

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Remove unnecessary Validate call

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Use fields from event series

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Support chunking of list of events

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Use watchtools utility to receive watch events

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Split struct into flags and options

Flags represents the inputs from the CLI; options are what the running
command needs. This structure parallels the 'wait' command, and should
be easier to write tests for.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Add some parameters to usage string

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Do only one of list or watch

We tried to print the list first then start a watch after the last
event, but sometimes the server will return "watch is too old" on that
ResourceVersion.
Instead, if we need to watch just start it from the beginning.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* Print message if no events found

Also, if watching, don't print the headings until the first event
arrives.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-10-29 09:12:50 -07:00
Kubernetes Prow Robot
e580aa93d1
Merge pull request #105739 from tkashem/apf-decision-cancel
apf: call metrics.AddReject for decisionCancel
2021-10-29 08:10:51 -07: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