Stephen Kitt
e6f44957cd
Regenerate all listers
...
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
2e9adcd14a
Generify lister-gen
...
This adds a generic implementation of a lister, and uses it to replace
the template code in generated listers. The corresponding templates
are no longer used and are removed.
Listers are reduced to their interfaces (non-namespaced and namespaced
if appropriate), their specific structs, and their constructors. All
method implementations are provided by the generic implementation. The
dedicated interface is preserved so that each lister can have its own
set of methods (e.g. the method returning the namespaced lister if
appropriate), and the dedicated struct is preserved to allow
expansions to be defined where necessary.
The external interface is unchanged and doesn't expose generics.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
44d7267bd6
Add a lister-gen expansion example
...
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:03 +02:00
Kubernetes Prow Robot
bf07ef3950
Merge pull request #124383 from danwinship/nftables-proxy-to-beta
...
KEP-3866 kube-proxy nftables to beta
2024-04-18 17:42:20 -07:00
Kubernetes Prow Robot
fd40d68a39
Merge pull request #123238 from MirrorShih/master
...
Fix infinite loop and replace channel with queue
2024-04-18 14:30:07 -07:00
Kubernetes Prow Robot
0e39ca84dc
Merge pull request #124375 from neolit123/1.31-remove-experimental-from-rootfs
...
kubeadm: remove the EXPERIMENTAL description from --rootfs
2024-04-18 13:05:35 -07:00
Kubernetes Prow Robot
b2a8ac15a0
Merge pull request #124221 from arturhoo/fix-spelling-scheduler-metrics
...
scheduler: fix typo in metric pod_scheduling_sli_duration_seconds help
2024-04-18 10:46:19 -07:00
Kubernetes Prow Robot
bbfd2145de
Merge pull request #124091 from bitoku/dra-nil-check
...
kubelet: add nil check for Node(Un)PrepareResources.
2024-04-18 10:46:05 -07:00
Dan Winship
9f580afa66
cluster: configure nftables mode for kube-proxy
...
(based on a patch from Antonio Ojea)
2024-04-18 13:20:24 -04:00
Dan Winship
2055a490e8
Rework cluster/ kube-proxy setup for --proxy-mode
2024-04-18 13:20:24 -04:00
Dan Winship
fdf22533a8
KEP-3866 kube-proxy nftables mode to beta
2024-04-18 13:20:23 -04:00
Kubernetes Prow Robot
c4bce63d98
Merge pull request #124374 from neolit123/1.31-remove-experimental-description-of-download-certs
...
kubeadm: remove the EXPERIMENTAL tag of the download-certs phase
2024-04-18 08:49:39 -07:00
Kubernetes Prow Robot
14415eb037
Merge pull request #124365 from SataQiu/v1.30.0-api-testdata
...
Update API testdata: add v1.30.0 and remove v1.28.0
2024-04-18 08:49:30 -07:00
Kubernetes Prow Robot
b2c32fb015
Merge pull request #123105 from danwinship/nodeport-addresses-primary
...
Add `--nodeport-addresses primary`, warn on empty `--nodeport-addresses`
2024-04-18 08:49:21 -07:00
Kubernetes Prow Robot
6bb968c4d2
Merge pull request #124373 from neolit123/1.31-remove-deprecated-update-status-phase
...
kubeadm: remove the deprecated "update-status" phase of "join"
2024-04-18 07:48:23 -07:00
Kubernetes Prow Robot
573832a42f
Merge pull request #122892 from danwinship/codegen-nil
...
Fix generated fake clients to have same semantics as real clients on error
2024-04-18 07:48:14 -07:00
Kubernetes Prow Robot
2f2c1fb811
Merge pull request #124210 from thockin/remove_gate_SkipReadOnlyValidationGCE
...
Remove the gate "SkipReadOnlyValidationGCE"
2024-04-18 06:31:39 -07:00
Kubernetes Prow Robot
64f76b603a
Merge pull request #124186 from HirazawaUi/remove-unused-func
...
[kubeadm]: remove kubeadm unused function
2024-04-18 06:31:30 -07:00
Kubernetes Prow Robot
80542ca2e3
Merge pull request #113257 from claudiubelu/path-filepath-update-staging
...
Replaces path.Operation with filepath.Operation (staging)
2024-04-18 06:31:21 -07:00
Dan Winship
3ecd933276
fix/simplify an nftables unit test
...
The nodeport-ips value is part of the baseline, which wouldn't change
no matter what Services or EndpointSlices we added/removed.
2024-04-18 09:25:06 -04:00
Dan Winship
19b3a9e194
(Mostly) Revert "change --nodeport-addresses behavior to default to primary node ip only"
...
This reverts commit 8bccf4873b
, except
for the nftables unit test changes, since we still want the "new"
results (not to mention the bugfixes), just for a different reason
now.
2024-04-18 09:25:06 -04:00
Dan Winship
fde1af55d2
Warn users with bad --nodeport-addresses
...
If users don't pass any --nodeport-addresses, suggest they should pass
`--nodeport-addresses primary`, to avoid accepting NodePort
connections on all interfaces.
If users pass a single-stack --nodeport-addresses in what looks like a
dual-stack cluster, warn them that they probably ought to be passing a
dual-stack --nodeport-addresses.
2024-04-18 09:25:06 -04:00
Dan Winship
0b599aa8e3
Add --nodeport-addresses primary
...
The behavior when you specify no --nodeport-addresses value in a
dual-stack cluster is terrible and we can't fix it, for
backward-compatibility reasons. Actually, the behavior when you
specify no --nodeport-addresses value in a single-stack cluster isn't
exactly awesome either...
Allow specifying `--nodeport-addresses primary` to get the
previously-nftables-backend-specific behavior of listening on only the
node's primary IP or IPs.
2024-04-18 09:25:06 -04:00
Lubomir I. Ivanov
142e077bcb
kubeadm: remove the EXPERIMENTAL description from --rootfs
...
The global kubeadm --rootfs flag is now considered
non-experimental.
2024-04-18 15:54:42 +03:00
Lubomir I. Ivanov
f309a0c7a6
kubeadm: remove the EXPERIMENTAL tag of the download-certs phase
...
The phase was tagged as EXPERIMENTAL 5+ years ago.
2024-04-18 15:46:34 +03:00
Lubomir I. Ivanov
917c8d67c5
kubeadm: remove the deprecated "update-status" phase of "join"
...
The phase has been deprecated and a NO-OP for 3+ years.
2024-04-18 15:40:08 +03:00
Kubernetes Prow Robot
e6efba3380
Merge pull request #124361 from neolit123/1.31-stop-mounting-etc-pki
...
kubeadm: don't mount /etc/pki for apiserver and KCM
2024-04-18 05:27:59 -07:00
Kubernetes Prow Robot
4b89cedcfa
Merge pull request #124103 from zhanluxianshen/fix-typos-in-rbac-api
...
Fix typos in rbac api.
2024-04-18 05:27:50 -07:00
Dan Winship
cd980ee076
Fix unit tests that expected the old FakeClient semantics
2024-04-18 08:23:16 -04:00
Dan Winship
17ab25b121
Regenerate fake clients
2024-04-18 08:23:16 -04:00
Dan Winship
eb94878c0a
Fix codegen to use correct nil-vs-empty semantics in fake clients
...
On most errors, the real clients return an empty object, whereas the
fake clients were returning nil; this meant that code that checked for
nil would appear to be working in unit tests, but then fail against
real data.
2024-04-18 08:16:54 -04:00
Kubernetes Prow Robot
77f7d1b89d
Merge pull request #124324 from benluddy/cbor-decode-tests-grouped-by-cbor-type
...
KEP-4222: Group CBOR decode tests by the kind of their inputs.
2024-04-18 04:24:41 -07:00
Kubernetes Prow Robot
951e624ada
Merge pull request #124320 from liangyuanpeng/drop-ptr-wrappers-pkg-registry
...
pkg/registry: drop pointer wrapper functions.
2024-04-18 04:24:32 -07:00
Kubernetes Prow Robot
1d171a7501
Merge pull request #124289 from pohly/test-e2e-node-verbosity-fix
...
e2e node: fix -v support
2024-04-18 04:24:23 -07:00
Kubernetes Prow Robot
1fc92f393d
Merge pull request #124249 from ii/move-alpha-endpoints
...
Move 3 get*APIGroup endpoints to ineligible_endpoints.yaml
2024-04-18 03:25:11 -07:00
Kubernetes Prow Robot
7c9eb3746f
Merge pull request #124247 from seans3/stream-doc-file
...
Adds apiserver proxy doc.go
2024-04-18 03:25:03 -07:00
Kubernetes Prow Robot
32a3cbc51d
Merge pull request #124245 from wojtek-t/informer_options
...
Allow for configuring MinWatchTimeout in reflector
2024-04-18 03:24:57 -07:00
Kubernetes Prow Robot
9c9a9b7c48
Merge pull request #124242 from carlory/cleanup-after-NewVolumeManagerReconstruction-ga
...
remove unneeded func SyncReconstructedVolume from ActualStateOfWorld
2024-04-18 03:24:50 -07:00
Kubernetes Prow Robot
7ebb64d176
Merge pull request #124235 from bitoku/dra-e2e
...
Use WaitForPodCondition instead of sleep
2024-04-18 03:24:42 -07:00
Kubernetes Prow Robot
745f56ea2b
Merge pull request #124215 from tk3fftk/patch-2
...
fix: add delay to log message when enqueueing a job
2024-04-18 03:24:36 -07:00
Kubernetes Prow Robot
eb2a59e8d8
Merge pull request #124214 from Monokaix/dev
...
fix wrong comments of dra
2024-04-18 03:24:28 -07:00
Kubernetes Prow Robot
f5f8db0faf
Merge pull request #124195 from bart0sh/PR139-use-downloaded-go-to-place-binaries
...
hacks: build main target without go in the PATH
2024-04-18 03:24:21 -07:00
Kubernetes Prow Robot
679f021809
Merge pull request #124193 from soltysh/fix_applyconfig-gen
...
Update applyconfiguration generator for packages where paths differ in name
2024-04-18 03:24:14 -07:00
Kubernetes Prow Robot
6f995a4bbc
Merge pull request #124181 from testwill/close_tmpfile
...
fix: close tmp file
2024-04-18 03:24:08 -07:00
Kubernetes Prow Robot
5bd44f332b
Merge pull request #124165 from tnqn/add-reviewer
...
Add tnqn to sig-network-reviewers
2024-04-18 03:24:00 -07:00
Kubernetes Prow Robot
7b33887879
Merge pull request #124163 from flavianmissi/resource-quota-single-flight
...
resourcequota: use singleflight.Group to reduce apiserver load
2024-04-18 03:23:53 -07:00
Kubernetes Prow Robot
ca4a864336
Merge pull request #124123 from sttts/sttts-kubectl-plugin-positional
...
kubectl: fix plugin lookup with positional arguments
2024-04-18 03:23:46 -07:00
Kubernetes Prow Robot
3261821fbc
Merge pull request #124116 from HiranmoyChowdhury/hiranmoy
...
Fix Deep Copy issue in getting controller reference
2024-04-18 03:23:40 -07:00
Kubernetes Prow Robot
3188cbd1b3
Merge pull request #124113 from krzysdabro/nodeipam-pooling
...
nodeipam: poll nodes immediately
2024-04-18 03:23:33 -07:00
Lubomir I. Ivanov
9c156218cc
kubeadm: don't mount /etc/pki for apiserver and KCM
...
According to kubeadm repo ticket 1665, /etc/pki
can contain subdirectories with private keys on some distros.
Avoid mounting the entire /etc/pki and mount /etc/pki/ca-trust
and /etc/pki/tls/certs instead. These directories are mounted
as an extra locations which can be used to search
for additional system CAs.
2024-04-18 12:33:18 +03:00