Commit Graph

120408 Commits

Author SHA1 Message Date
Eric Lin
1d9f7fd516 leaderelection: optimistically update leader lock
Signed-off-by: Eric Lin <exlin@google.com>
2023-12-11 09:59:01 +00:00
Tim Hockin
7dfe3d866b
Fix verify-licenses.sh
This still feels like a hack, but less horrible now.  Running this pases
without error.
2023-12-09 17:48:48 -08:00
Tim Hockin
6fee657d3a
Makefile: enable warn-undefined-variables 2023-12-08 20:51:47 -08:00
Aravindh Puthiyaparambil
2208cb9493
e2e: only select linux nodes for NodeLogQuery tests
The current NodeLogQuery tests only work against Linux nodes, so
explicitly select them.
2023-12-08 10:11:05 -08:00
Tim Hockin
b9ff6b25f2
Simpler and less noisy make-clean 2023-12-08 09:20:44 -08:00
Dave Chen
39417e9d44 kubeadm: update the help msg for kubeadm upgrade plan
Explictly show the help msg that `kubeadm upgrade plan` can only run
on the node where "admin.conf" exists, normally, this is the control
plane node.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-12-08 16:22:17 +08:00
Patrick Ohly
1d11bc4aca e2e framework: provide more guidance to developers
Developers who are unaware of the Ginkgo wrappers in the framework might end up
passing the label decorators directly to Ginkgo. Previously, this led to an
error that was hard to understand without background knowledge:

    Unknown Decorator
    ginkgo.It("must deallocate on non graceful node shutdown", f.WithSerial(), f.WithDisruptive(), f.WithSlow(), func(ctx context.Context) {
    /nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:527
      [It] node was passed an unknown decorator:
      'framework.label{parts:[]string{"Serial"}, extra:""}'

    Learn more at: http://onsi.github.io/ginkgo/#node-decorators-overview

When including a special field that Ginkgo dumps the message gets a bit better:

    Unknown Decorator
    ginkgo.It("must deallocate on non graceful node shutdown", f.WithSerial(), f.WithDisruptive(), f.WithSlow(), func(ctx context.Context) {
    /nvme/gopath/src/k8s.io/kubernetes/test/e2e/dra/dra.go:527
      [It] node was passed an unknown decorator:
      'framework.label{parts:[]string{"Serial"}, extra:"", explanation:"If you see
      this as part of an \"Unknown Decorator\" error from Ginkgo, then you need to
      replace the ginkgo.It/Context/Describe call with the corresponding
      framework.It/Context/Describe or (if available) f.It/Context/Describe."}'

    Learn more at: http://onsi.github.io/ginkgo/#node-decorators-overview
2023-12-08 08:04:18 +01:00
Tim Hockin
28f8e56d55
Fix prerelease codegen log string 2023-12-07 19:26:16 -08:00
Cici Huang
44898f7909 Address comment 2023-12-07 22:39:45 +00:00
Kubernetes Release Robot
0c645922ed CHANGELOG: Update directory for v1.29.0-rc.2 release 2023-12-07 12:00:56 +00:00
Hemant Kumar
ed0facacfa Fix device uncertain errors on reboot 2023-12-06 22:19:14 -05:00
Davanum Srinivas
48671a3a20
explicitly stop/start docker to fix up local-up-cluster.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-12-06 20:54:08 -05:00
Kubernetes Prow Robot
89dfbebe2e
Merge pull request #122206 from xmudrii/update-distroless-1.21.5
Bump distroless-iptables to v0.4.2
2023-12-06 20:30:09 +01:00
Marko Mudrinić
0ca3089bee
Bump distroless-iptables to v0.4.2
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-12-06 19:19:46 +01:00
Cici Huang
048cb8b2ed Keep presence cost to 0 to ensure backward compatibility. 2023-12-06 17:26:19 +00:00
Kubernetes Prow Robot
9e028b40b9
Merge pull request #122201 from xmudrii/go1.21.5-1.20.12
[go] Bump images, dependencies and versions to go 1.21.5
2023-12-06 15:37:07 +01:00
xin.li
20b67a4d1a kubeadm: increase ut coverage of util/config
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-12-06 21:21:52 +08:00
olderTaoist
78b4ab11d5 also report scheduling_algorithm_duration_seconds metric when the pods is unschedulable 2023-12-06 19:17:03 +08:00
Marko Mudrinić
1c1347a3e7
[go] Bump images, dependencies and versions to go 1.21.5
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-12-06 10:36:35 +01:00
AxeZhan
210ed2ebbd add preScore for volumeBinding 2023-12-06 15:35:35 +08:00
Kubernetes Prow Robot
7fe31be11f
Merge pull request #122188 from kannon92/terminating-pod-beta
add beta comment for terminating pods and pod replacement policy
2023-12-06 01:54:58 +01:00
Kevin Hannon
4e5321c92e add beta comment for pod replacement policy 2023-12-05 13:17:24 -05:00
Ziqi Zhao
e92501b8fc optimize the comment
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-05 22:46:27 +08:00
SataQiu
56262ca56a kubeadm: cleanup unused CreateCSR and associated functions 2023-12-05 18:17:14 +08:00
KubeKyrie
2fd4758359 change func WithTracing parameter naming
Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io>
2023-12-05 10:41:55 +08:00
Ziqi Zhao
51495bb4c5 optimize the unit test
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-05 08:02:03 +08:00
Robert Svarinskis
ceb7ca9387 Fix etcd storage_events_received_total metric not being registered 2023-12-04 09:12:21 +00:00
ii2day
4b1408c2e7 Fix typos: update registerCidrsetMetrics to registerCIDRSetMetrics
Signed-off-by: ii2day <ji.li@daocloud.io>
2023-12-04 10:09:52 +08:00
Dan Winship
2d952528cf belated updates to feature-approvers for SIG Network leads changes 2023-12-03 10:10:20 -05:00
Ziqi Zhao
69c40a3396 fix lints
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-02 19:37:49 +08:00
Kensei Nakada
74a6a4581f fix by linters 2023-12-02 09:58:34 +00:00
Ziqi Zhao
24c4d6f7c9 add unit test for kubelet trace
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-02 17:09:01 +08:00
Kensei Nakada
5310abe14a make scheduler_perf usable from other repositories 2023-12-01 12:43:08 +00:00
Patrick Ohly
a23b26913f DRA helper: enhance context support
27a68aee3a introduced context support for events. Creating an event
broadcaster with context makes tests more resilient against leaking goroutines
when that context gets canceled at the end of a test and enables per-test
output via ktesting.
2023-12-01 10:49:16 +01:00
Jerry-yz
0c33ada850 update func CreateJoinControlPlaneKubeConfigFiles variable name 2023-12-01 17:08:36 +08:00
bzsuni
fa31b4d30d Remove GA featuregate about KubeletPodResources in 1.30
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-12-01 15:08:12 +08:00
ii2day
eb60b31e6e Remove GA featuregate about KubeletPodResourcesGetAllocatable in 1.30
Signed-off-by: ii2day <ji.li@daocloud.io>
2023-12-01 15:07:42 +08:00
bzsuni
a20093aa07 Remove GA featuregate about IPTablesOwnershipCleanup in 1.30
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-12-01 15:03:51 +08:00
tao.yang
965b3634ff Remove GA featuregate about remove_MinimizeIPTablesRestore in 1.30
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-12-01 15:02:08 +08:00
wen.rui
84c0ed2642 Add SidecarContainers feature beta version 2023-12-01 14:57:29 +08:00
tao.yang
e13dca64cf Remove GA featuregate about ProxyTerminatingEndpoints in 1.30
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-12-01 14:47:54 +08:00
kerthcet
b1ad834dfb No need to calculate ResourceEphemeralStorage additionally
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-12-01 14:25:30 +08:00
Kubernetes Prow Robot
55f2bc1043
Merge pull request #122129 from liggitt/root-conformance
Remove conformance test calls to `/`
2023-11-30 22:16:33 +01:00
Jordan Liggitt
233949e05d
Add an integration test to verify root path cleanup 2023-11-30 14:57:21 -05:00
Jordan Liggitt
c769c2db6e
Revert conformance test addition of root paths 2023-11-30 14:01:24 -05:00
Dan Williams
a80c3d0301 e2e/openapi: fix test panic when OpenAPI CRD doesn't show up within timeout
Nov 29 22:56:18.559: INFO: Waited 371.058378ms for the sample-apiserver to be ready to handle requests.
  Nov 29 22:56:49.503: INFO: At 0001-01-01 00:00:00 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: { } Scheduled: Successfully assigned e2e-openapiv3-5878/sample-apiserver-deployment-58dfd44dd-gp8nd to ip-10-0-80-91.us-west-2.compute.internal
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment: {deployment-controller } ScalingReplicaSet: Scaled up replica set sample-apiserver-deployment-58dfd44dd to 1
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd: {replicaset-controller } SuccessfulCreate: Created pod: sample-apiserver-deployment-58dfd44dd-gp8nd
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {multus } AddedInterface: Add eth0 [10.129.2.137/23] from ovn-kubernetes
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:53 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulling: Pulling image "quay.io/openshift/community-e2e-images:e2e-3-registry-k8s-io-e2e-test-images-sample-apiserver-1-17-7-F6raNs0YQ76APdUD"
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulling: Pulling image "quay.io/openshift/community-e2e-images:e2e-11-registry-k8s-io-etcd-3-5-7-0-C5nYFPeT0lxaFCao"
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Started: Started container sample-apiserver
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Created: Created container sample-apiserver
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:55:57 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulled: Successfully pulled image "quay.io/openshift/community-e2e-images:e2e-3-registry-k8s-io-e2e-test-images-sample-apiserver-1-17-7-F6raNs0YQ76APdUD" in 3.068195738s (3.068206328s including waiting)
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:06 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Pulled: Successfully pulled image "quay.io/openshift/community-e2e-images:e2e-11-registry-k8s-io-etcd-3-5-7-0-C5nYFPeT0lxaFCao" in 9.1810668s (9.18107711s including waiting)
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:06 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Created: Created container etcd
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:06 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Started: Started container etcd
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:48 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Killing: Stopping container sample-apiserver
  Nov 29 22:56:49.503: INFO: At 2023-11-29 22:56:48 +0000 UTC - event for sample-apiserver-deployment-58dfd44dd-gp8nd: {kubelet ip-10-0-80-91.us-west-2.compute.internal} Killing: Stopping container etcd
  Nov 29 22:56:49.570: INFO: POD  NODE  PHASE  GRACE  CONDITIONS
  Nov 29 22:56:49.570: INFO:
  Nov 29 22:56:49.702: INFO: skipping dumping cluster info - cluster too large

k8s.io/kubernetes/test/e2e/apimachinery.glob..func19.3({0x7f470406fbf8, 0xc001c4b530})
	k8s.io/kubernetes@v1.27.1/test/e2e/apimachinery/openapiv3.go:161 +0x6bf
fail [runtime/panic.go:260]: Test Panicked: runtime error: invalid memory address or nil pointer dereference
Ginkgo exit error 1: exit with code 1

Signed-off-by: Dan Williams <dcbw@redhat.com>
2023-11-30 12:56:54 -06:00
Wojciech Tyczyński
d907062308 Minor cleanup in watch handlers 2023-11-30 18:27:39 +01:00
ahutsunshine
d8bd150784 support pod namespace indexer
fix comments

optimize code

small optimization for the namespace scope check
2023-11-30 18:39:09 +08:00
Ritikaa96
9efff41b8e making suggested changes
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2023-11-30 13:09:54 +05:30
Wojciech Tyczyński
55e60db88b Unify watch handler across http and websockets 2023-11-29 21:57:39 +01:00