Commit Graph

123142 Commits

Author SHA1 Message Date
Patrick Ohly
080432c46a client-go record: avoid panic when watch creation failed
The previous attempt to fix this in
6aa779f4ed (diff-efa2cd1347df22ace5a516ea794152d00ef2a079db135c81787ed920ecb73658)
didn't address the root cause (or perhaps created it, not sure): the goroutine
must not be started if watch creation failed.

Instead, the error gets logged (as before) and an empty watch gets returned to
the caller (new). This is necessary because the function doesn't have an error
return value and changing that now would be disruptive. The empty watch is
valid and usable, so callers won't crash when they calls Stop.

This showed up recently in failed unit tests, probably because test
cancellation makes this error more likely:

   "Unable start event watcher (will not retry!)" err="broadcaster already
   stopped" logger="TestGarbageCollectorConstruction leaked goroutine"

The logger value and a preceding warning show that this occurs after test
completion.
2024-05-29 14:10:49 +02:00
Kubernetes Prow Robot
529896474f
Merge pull request #124688 from neolit123/1.31-always-rotate-etcd-certs-on-upgrade
kubeadm: ensure that etcd certs are rotated on apiserver upgrade
2024-05-29 05:10:30 -07:00
Michal Wozniak
551464fe53 Improve the Job API comment for ready field 2024-05-29 14:01:28 +02:00
Lukasz Szaszkiewicz
ba89ae3ddf e2e/apimachinery/watchlist: uses SetFeatureDuringTest 2024-05-29 12:45:18 +02:00
Kubernetes Prow Robot
afebfdc5d4
Merge pull request #125158 from mttrb/kubeadm-grammar
Fix grammar in kubeadm output
2024-05-29 03:30:45 -07:00
Kubernetes Prow Robot
3833d37b28
Merge pull request #124685 from saschagrunert/kubeadm-crictl
Make `kubeadm` independent from `crictl`
2024-05-29 03:30:31 -07:00
Lubomir I. Ivanov
f4d5e1d65d kubeadm: ensure that etcd certs are rotated on apiserver upgrade
Currently if etcd.yaml does not have a diff on "kubeadm upgrade"
certificate renewal for it is also skipped.

Check if kube-apiserver.yaml needs an upgrade, if so and if
cert renewal is not disabled, renew etcd's certs and restart
its static pod.
2024-05-29 13:07:41 +03:00
Kubernetes Prow Robot
1d5589e491
Merge pull request #125159 from p0lyn0mial/upstream-add-data-consistency-checker-for-list-requests
client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested
2024-05-29 02:00:58 -07:00
Lukasz Szaszkiewicz
48014bd7bd client-go/util/consistencydetector: add CheckListFromCacheDataConsistencyIfRequested 2024-05-29 09:26:12 +02:00
Sascha Grunert
7d1bfd9872
Make kubeadm independent from crictl
With the new `cri-client` staging repository it's finally possible to
decouple `kubeadm` from `crictl`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-29 08:58:01 +02:00
Kubernetes Prow Robot
7ba244f50e
Merge pull request #125131 from ah8ad3/auth-cani-approve
Add approve as a valid verb in can-i
2024-05-28 23:33:36 -07:00
SataQiu
7f30b3494b kubeadm: only add the klog flags that are still supported for kubeadm, rather than disabling the unwanted flags 2024-05-29 12:38:21 +08:00
xin.li
7771a58b46 kubeadm: remove some unused function
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-05-29 11:26:36 +08:00
Kubernetes Prow Robot
bc8ec4f9aa
Merge pull request #125166 from p0lyn0mial/upstream-improve-check-data-consistency
client-go/util/consistencydetector: improve validation of list parameters (RV, ListOptions)
2024-05-28 13:58:53 -07:00
Kubernetes Prow Robot
fd95f1890d
Merge pull request #124877 from nilekhc/svm-crd-flake
fix: fixes update CRD check
2024-05-28 12:54:49 -07:00
Nilekh Chaudhari
23a407ce44 fix: fixes update CRD check
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2024-05-28 11:50:30 -07:00
Kubernetes Prow Robot
1ff1207d22
Merge pull request #124017 from carlory/rm-ctrl-flags
kube-controller-manager removes deprecated command flags
2024-05-28 10:54:22 -07:00
Kubernetes Prow Robot
8991e825d5
Merge pull request #125052 from p0lyn0mial/upstream-client-go-env-var-set
client-go/features: add Set method to the envvar impl
2024-05-28 08:28:07 -07:00
Lukasz Szaszkiewicz
327ae9866b client-go/util/consistencydetector: improve validation of list parameters (RV, ListOptions) 2024-05-28 16:55:37 +02:00
Kubernetes Prow Robot
f4ea903712
Merge pull request #124635 from pohly/event-broadcaster-shutdown-fix
client-go/tools/record: fix and test Broadcaster shutdown + logging
2024-05-28 07:03:09 -07:00
Humble Chirammal
35d358b53d Update mock for ModifyVolume controller function support
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-28 17:58:46 +05:30
Kubernetes Prow Robot
fad52aedfc
Merge pull request #125086 from oxxenix/exponential-backoff
add exponential backoff in NodeResourceSlices controller
2024-05-28 02:46:43 -07:00
Stephen Kitt
5300466a5c
Use canonical json-patch v4 import
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).

Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:22 +02:00
Stephen Kitt
33c6f6bc65
Update kubectl kustomize to kyaml/v0.17.1, cmd/config/v0.14.1, api/v0.17.2, kustomize/v5.4.2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:12 +02:00
Stephen Kitt
5dae865602
update-kustomize: update the Go workspace
Changing the kustomize version can also require updating the Go
workspace, do this in the update.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:40:04 +02:00
Stephen Kitt
31686c5483
Drop the extraneous space in update-kustomize.sh
With coreutils sed, the argument to -i must follow it immediately;
having a space here causes the command to look for a file with an
empty name, which fails.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:39:58 +02:00
Kubernetes Prow Robot
1c84623028
Merge pull request #125045 from pohly/ginkgo-gomega-update
dependencies: ginkgo v2.19.0, gomega v1.33.1
2024-05-28 01:03:18 -07:00
Matthew Robinson
8b1b32f226 Fix grammar in kubeadm output 2024-05-28 11:55:23 +08:00
Alvaro Aleman
6e2e7f7c26 Sample Controller: Use one variable for key throughout
After changing it to use a typed workqueue, the differentiation between
the key we get from the workqueue and they key we use down the line is
no longer useful as they are the same, so use one variable for it
throughout.
2024-05-27 21:29:48 -04:00
Kubernetes Prow Robot
5d1a97ce09
Merge pull request #125153 from aojea/tag_autoscaling
tag e2e test that depends on cloud-provider-gcp
2024-05-27 16:28:30 -07:00
Oksana Baranova
c4ec24890e nodeResourceSlicesController: add exponential backoff 2024-05-27 23:12:53 +03:00
Eric Lin
44c08fdbd5 Add /readyz for kube-scheduler
/readyz contains `sched-handler-sync`, `leaderElection` (when election is
enabled) and `shutdown` checks
2024-05-27 19:11:24 +00:00
Eric Lin
708180be69 Add /livez to kube-scheduler
Health endpoint `/livez` only contains ping check.
2024-05-27 19:11:24 +00:00
Antonio Ojea
98fe5ace74 tag e2e test that depends on cloud-provider-gcp 2024-05-27 18:14:48 +00:00
Kubernetes Prow Robot
b5bc8025be
Merge pull request #125110 from brianpursley/k-125109
Add logging to show which unexpected events were received in kubectl events e2e test
2024-05-27 09:31:02 -07:00
Humble Chirammal
d8458293d2 add controllerModifyVolume test function
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-27 19:57:54 +05:30
Humble Chirammal
e0a4cb0962 remove csi spec from unwanted dependencies
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-27 19:24:58 +05:30
Humble Chirammal
3b117f8c4c CSI spec v1.9.0 has modifyVolume API support
This update also have updated GRPC, protobuf..etc along with fixes in go tool chain.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-27 19:02:27 +05:30
Patrick Ohly
f3adf499c2 hack/ginkgo-e2e.sh: skip S character by default, add newlines in CI
We typically have plenty of skipped tests in an E2E run, which causes Ginkgo to
print many S characters (one for each skipped test). This easily fills up an entire
console window. Now the default is to silence that
output. GINKGO_SILENCE_SKIPS=n reverts to the previous behavior.

By default, Ginkgo prints all progress characters (S and o) in a single
line. Buffering in Prow causes that output to occur only after the run is over,
which defeats the purpose of having those characters. Now a newline is added
after each character, so there is visible progress in Prow while Ginkgo runs.
2024-05-27 15:25:50 +02:00
Patrick Ohly
37e2dd6857 dependencies: ginkgo v2.19.0, gomega v1.33.1
Ginkgo v2.18.0 allows tweaking the output so that
it's easier to follow while a job runs in
Prow (https://github.com/onsi/ginkgo/issues/1347). Using this in
hack/ginkgo-e2e.sh will follow in a separate commit.

Gomega gets bumped to the latest release to keep it up-to-date.

Ginkgo v1.19.0 adds support for --label-filter with labels that represent
sets (like our Feature:<Foo>).
2024-05-27 15:25:50 +02:00
Kubernetes Prow Robot
9d5db28f5f
Merge pull request #125146 from p0lyn0mial/upstream-client-go-consistency-detector-move-to-new-package
client-go: move data consistency detector to a new package
2024-05-27 06:24:08 -07:00
Kubernetes Prow Robot
d45a1a493b
Merge pull request #124232 from Ritikaa96/kubectl-plugin
Added name-only and examples in the kubectl plugin help
2024-05-27 06:23:59 -07:00
Tomas Tormo
ce56b2ca58 Remove JobReadyPods feature flag 2024-05-27 13:09:52 +00:00
Kubernetes Prow Robot
b2817dc432
Merge pull request #125040 from carlory/fix-125012
Fix kubelet on Windows fails if a pod has SecurityContext with RunAsUser
2024-05-27 04:58:20 -07:00
Lukasz Szaszkiewicz
a07654baa5 client-go/features: add Set method to envvar impl 2024-05-27 13:40:52 +02:00
Ritikaa96
6f4e60a6b7 adding suggested changes
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-27 17:07:31 +05:30
Ritikaa96
22186fafaf Improving kubectl get output
Adding namespace flag & examples
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-27 17:07:31 +05:30
Ritikaa96
23ac0be7ad correcting link to krew install
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-27 16:52:19 +05:30
Ritikaa96
3848c8b07a added name-only and examples in the kubectl plugin help
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-27 16:30:21 +05:30
Lukasz Szaszkiewicz
cb44f83b3d move checkWatchListDataConsistencyIfRequested back to client-go/tools/cache 2024-05-27 12:32:03 +02:00