Commit Graph

20744 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
286cdad32d Merge pull request #123538 from jiahuif-forks/fix/cel/mutation-library-map-support
CEL mutation library: add support for map
2024-02-27 18:46:10 -08:00
Kubernetes Prow Robot
872c621bb7 Merge pull request #123475 from alexzielenski/apiserver/apiextensions/cel-error-fieldpath
bugfix: incorrect fieldpath when using multiple crd validation rules
2024-02-27 18:45:57 -08:00
Kubernetes Prow Robot
72c92e975d Merge pull request #123411 from hunshcn/fix/volume-link
fix persistent volume docs link
2024-02-27 16:47:27 -08:00
Sean Sullivan
03812ddb16 streamtranslator counter metric by status code 2024-02-27 23:21:55 +00:00
Monis Khan
e89dddd4af jwt: strictly support compact serialization only
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-02-27 17:16:08 -05:00
Jiahui Feng
dc4c92f5a5 add support for map
to CEL mutation library.
2024-02-27 13:55:08 -08:00
Vu Dinh
4fe78a17dd Add duplicate key and field case-sensitivity CBOR decode tests.
1. Decoding map with duplicate keys into struct or map produces error.
2. Decoding a map into a Go struct matches json field tag names case-sensitively.
3. When decoding a map into a Go struct, a case-insensitive match between a key and a json field tag
   name is treated the same as no match.

Signed-off-by: Vu Dinh <vudinh@outlook.com>
2024-02-27 16:45:52 -05:00
Ben Luddy
374e4b5686 Address review nit, use longer variable identifiers. 2024-02-27 16:12:39 -05:00
Kevin Hannon
f832692d98 uid is also supported in field ref for downward api 2024-02-27 12:44:42 -05:00
carlory
c12e12bd89 fix unusable secret manifest for type docker-registry 2024-02-28 00:31:03 +08:00
Lukasz Szaszkiewicz
ecaf2093f5 storage/watch_cache: rework getAllEventsSinceLocked 2024-02-27 14:26:46 +01:00
Lukasz Szaszkiewicz
d629d3fa35 storage/cacher: add TestGetWatchCacheResourceVersion, TestGetBookmarkAfterResourceVersionLockedFunc 2024-02-27 14:26:41 +01:00
Lukasz Szaszkiewicz
f90bcf649e storage/cacher: ensure the cache is at the Most Recent ResourceVersion when streaming was requested 2024-02-27 14:26:36 +01:00
Patrick Ohly
40c4015d5f component-base/logs: add slog support
Integration of a slog-based package into a Kubernetes application is completely
transparent when that package uses the global slog default logger because
component-base will set that. When the package wants to be passed a logger
instance, then one can be constructed with slogr.NewSlogHandler.

Integration of a Kubernetes package into an application which uses a slog
Logger is a bit more work when configuring logging. The main binary must call
klog.SetLogger and needs logr/slogr to convert a slog.Handler to a logr.Logger.
2024-02-27 10:39:35 +01:00
Sean Sullivan
a147693deb remote command turn on feature gates 2024-02-27 02:05:24 +00:00
Kubernetes Prow Robot
0a1cb2a4a4 Merge pull request #122589 from pohly/log-contextual-beta
promote contextual logging to beta, enabled by default
2024-02-26 13:56:13 -08:00
Alexander Zielenski
aefaf66d2b remove unused service keys from aggregated discovery 2024-02-26 11:56:07 -05:00
Kubernetes Prow Robot
d171e6733a Merge pull request #123503 from aojea/ccm_ci
Ccm ci
2024-02-26 08:02:58 -08:00
Kubernetes Prow Robot
98bd90fbe2 Merge pull request #114672 from pohly/log-text-split-streams
log: split streams also for text output
2024-02-26 01:44:58 -08:00
Antonio Ojea
0ab006b8a1 node-controller reconcile node labels on each update
instead of waiting for the periodic loop of the node-controller to
go through all the nodes, use the sync logic to reconcile the node
labels each time that the node has changed after it has been
initialized.

This has the benefit that changes by external entities on this labels
are quickly reconciled.

Change-Id: I45cfc1e3f0b9eefdfdd67267229420d76132ab87
2024-02-26 09:01:21 +00:00
Antonio Ojea
03bd3e25b1 [cloud-provider] require providerID to initialize node
The node controller has two reconcilations loops:

1. workqueue receiving events from watchers, to implement
the node initialization

2. periodic loop to reconcile cloud-provider addresses and
node objects, since there is no watch for the cloud-provider
addresses. However, this loop can take O(xx) mins on large
clusters.

Before the external cloud providers were enabled by default,
the kubelet was in charge of setting the corresponding
providerID and zone and region labels during the node object
creation.

Once this logic was moved to the external cloud providers,
there are cases that the node controller may fail to add the
providerID value on the node object and this is never reconciled.
The problem is that there are many controllers and projects that
depend on this field to be set.

Checking at the code it is not possible to not have a ProviderID
in any cloud-provider, since it is always built from the provider name
and the instance. ProviderID is also inmutable once set, so we make
ProviderID a requirement for node initialization.

To avoid any possible problems, we rollout this change under a feature
gate in deprecated state, so cloud providers can opt-out to the new
behavior.

Change-Id: Ic5d9c23b6a286b12c9721d4a378485a8b81212d1

Change-Id: Iac8c7e7e47a3247553806ed7128b273bbef0a30b
2024-02-26 09:01:21 +00:00
Antonio Ojea
ef83ec2753 don't use leader elect on ccm integration tests
Change-Id: Ic1d0ff73d7913f23ed577a121b0045a1c33b9e78
2024-02-26 09:01:21 +00:00
Antonio Ojea
08f8be9903 fix goroutine leak on legacy-cloud-provider gce
Change-Id: Ice7f66683785d60ce9d09201d557a0438743ec72
2024-02-26 09:01:21 +00:00
Antonio Ojea
3636971c39 add aojea as reviewer
Change-Id: Ie69e01542f9c8420aa0d0275378acd838e77eca9
2024-02-26 08:56:23 +00:00
Kubernetes Prow Robot
689dca08e1 Merge pull request #123479 from Jefftree/sample-apiserver-129
Fix sample-apiserver rbac and bump to 1.29
2024-02-25 16:41:38 -08:00
Kubernetes Prow Robot
4b3da38651 Merge pull request #123417 from soltysh/kube_codegen-applyexternal
kube_codegen: expose external-applyconfigurations flag for client generation
2024-02-25 16:41:31 -08:00
Kubernetes Prow Robot
2a44cb0ab3 Merge pull request #122569 from IvoGoman/wrap-nomatcherror
feat(cli-runtime): wrap meta.NoKindMatchErrors
2024-02-24 10:01:33 -08:00
Jefftree
b3216214f9 Fix sample-apiserver rbac for v1.27 and bump e2e 2024-02-23 23:53:54 -05:00
Alexander Zielenski
247233f7b4 bugfix: modifying argument causes wrong fieldpath 2024-02-23 15:49:31 -08:00
Kubernetes Prow Robot
31a482a149 Merge pull request #120344 from rohitssingh/disable_force_detach
Add a flag to disable force detach behavior in kube-controller-manager
2024-02-22 13:02:38 -08:00
Kubernetes Prow Robot
446afd90b2 Merge pull request #123427 from alexzielenski/apiserver/policy/matching-refactor
ValidatingAdmissionPolicy: Factor out matching and params logic for reuse with MutatingAdmissionPolicy
2024-02-22 10:51:18 -08:00
Rohit Singh
13dddca6a2 Add "disable-force-detach-on-timeout" flag to kube-controller-manager 2024-02-22 18:31:52 +00:00
Alexander Zielenski
4760e0cc44 refactor: use shared CollectParams from VAP 2024-02-22 09:47:18 -08:00
Alexander Zielenski
64cd09f720 refactor: use match from generic pkg in vap
It is same exact code, but uses accessors now
2024-02-22 09:47:18 -08:00
Alexander Zielenski
96c418a7b7 add generic policy dispatcher
similar to the generic policy source, applies common match logic

for code sharing with validating/mutating
2024-02-22 09:47:18 -08:00
Cici Huang
9bc5257c45 [KEP-3962]Add feature gate for MAP (#123425)
* Add feature gate for MAP

* sort feature gates.

---------

Co-authored-by: Jiahui Feng <jhf@google.com>
2024-02-21 17:00:13 -08:00
Alexander Zielenski
11ed3032c0 test: infer gvk of objects
avoids relying on the GVK to be written to the object
2024-02-21 15:07:34 -08:00
Alexander Zielenski
acf1d850c6 refactor: handle paramKind directly
remove hacks that might conceal errors
2024-02-21 15:07:34 -08:00
Kubernetes Prow Robot
3ae6c051a0 Merge pull request #123223 from mmerkes/labels
Add AdditionalLabels to cloudprovider.InstanceMetadata
2024-02-21 14:41:50 -08:00
Kubernetes Prow Robot
3d3d705a6d Merge pull request #122883 from Jefftree/agg-discovery-block-stale
Aggregated Discovery, mark APIServices stale before initial health check
2024-02-21 12:02:41 -08:00
Jefftree
81e4c3002a add nil check to avoid passing fakeCh for all discovery tests 2024-02-21 12:54:58 -05:00
Kubernetes Prow Robot
9a90289838 Merge pull request #123348 from hoskeri/update-go-x-crypto-19
Update x/crypto to 0.19.
2024-02-21 09:11:50 -08:00
Maciej Szulik
16794502ee kube_codegen: expose external-applyconfigurations flag for client generation 2024-02-21 13:37:27 +01:00
Kubernetes Prow Robot
11785bb815 Merge pull request #123392 from thockin/depreciate
Cleanup: s/depreciated/deprecated/g
2024-02-21 01:40:39 -08:00
Kubernetes Prow Robot
e613eb3388 Merge pull request #123342 from logicalhan/storage-metric
bump the stability level of apiserver_storage_size_bytes to STABLE
2024-02-21 01:40:25 -08:00
hunshcn
ce6bacb5ac fix persistent volume docs link
Signed-off-by: hunshcn <hunsh.cn@gmail.com>
2024-02-21 16:26:16 +08:00
Kubernetes Prow Robot
6049a1bca4 Merge pull request #122880 from Jefftree/agg-discovery-v2-types
Add aggregated discovery v2 types
2024-02-20 21:03:22 -08:00
Jefftree
6726e65619 Aggregated Discovery, mark stale before initial health check 2024-02-20 18:15:13 -05:00
Kubernetes Prow Robot
5275bb0502 Merge pull request #123268 from benluddy/cbor-appendix-a-tests
KEP-4222: Add roundtrip tests for all CBOR examples in RFC 8949 Appendix A.
2024-02-20 13:04:00 -08:00
Kubernetes Prow Robot
930f60173b Merge pull request #123267 from benluddy/cbor-marshaling-tests
KEP-4222: Add decode and roundtrip tests for CBOR marshaling.
2024-02-20 13:03:42 -08:00