Commit Graph

17879 Commits

Author SHA1 Message Date
Arda Güçlü
6c346e6cc9 Re-enable label selector 2023-02-20 09:10:51 +03:00
Arda Güçlü
6e8a1beda7 Add integration test for diff --prune --selector
This PR adds new integration tests for `kubectl diff --prune -l` to
catch possible regressions in the future.
2023-02-20 09:10:50 +03:00
Kubernetes Prow Robot
70b2e4aa3e
Merge pull request #113312 from jiahuif-forks/feature/cel/builtins
OpenAPI-based CEL type library
2023-02-18 00:31:36 -08:00
Kubernetes Prow Robot
1c97dbc8c9
Merge pull request #115809 from seans3/openapi-file-client
New openapi v3 testing file client
2023-02-17 09:00:16 -08:00
Kubernetes Prow Robot
8014155cb5
Merge pull request #115472 from lanycrost/client-go-110992-GenerateSelfSignedCertKeyWithFixtures-permissions
client-go: make generating certificate/key permissions more restrictive (600)
2023-02-17 09:00:03 -08:00
Khachatur Ashotyan
49af62e64f
client-go: change permissions of key 2023-02-17 14:21:24 +04:00
cpanato
8bbd1a77c7
update go to 1.19.6 in publishing bot rules for active release branches
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-02-17 10:23:19 +01:00
Khachatur Ashotyan
3cc99c5e77 client-go: change permissions of GenerateSelfSignedCertKeyWithFixtures generated cert 2023-02-17 11:20:39 +04:00
Khachatur Ashotyan
c941877438 client-go: change permissions of directories and certs 2023-02-17 11:16:46 +04:00
Kubernetes Prow Robot
e55f2a9b54
Merge pull request #112393 from borgerli/apf-pl-dump
APF: two improvements when dumping priority levels
2023-02-16 19:33:48 -08:00
Kubernetes Prow Robot
814faade7f
Merge pull request #115620 from odinuge/ou-relist-missing-delete
client-go/cache: fix missing delete event on replace
2023-02-16 16:09:37 -08:00
Sean Sullivan
195a55c84c New openapi v3 testing file client 2023-02-16 12:52:14 -08:00
Kubernetes Prow Robot
894cfdfeb4
Merge pull request #115363 from ravisantoshgudimetla/promote-pdb-healthy
Promote pdb healthy to beta
2023-02-16 11:45:49 -08:00
Kubernetes Prow Robot
7d681c96a3
Merge pull request #113263 from andrewsykim/fix-flaky-flowcontrol-queueset-test
[Flaky test] fix floating point precision error in TestDifferentWidths
2023-02-16 11:45:37 -08:00
Kubernetes Prow Robot
4c4f0c3a20
Merge pull request #115837 from wedaly/kubectl-netadmin-pointer-bool
kubectl: use pointer.Bool instead of deprecated pointer.BoolPtr
2023-02-16 09:56:03 -08:00
Kubernetes Prow Robot
5c09c9de29
Merge pull request #115828 from cpanato/go1201
[go] Bump images, dependencies and versions to go 1.20.1
2023-02-16 09:55:56 -08:00
Kubernetes Prow Robot
ffe410bbb4
Merge pull request #115604 from pacoxu/fix-design-proposals-links
old design proposals are now moved to Design Proposals Archive repo
2023-02-16 09:55:38 -08:00
Will Daly
4101b79606
kubectl: use pointer.Bool instead of deprecated pointer.BoolPtr
Signed-off-by: Will Daly <widaly@microsoft.com>
2023-02-16 06:47:33 -08:00
cpanato
65230338ad
[go] Bump images, dependencies and versions to go 1.20.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2023-02-16 13:38:32 +01:00
ZhangYu
48b9f7bb6c change unnecessary switch to if in metrics.go 2023-02-16 18:37:53 +08:00
Kubernetes Prow Robot
6a5c88b9dd
Merge pull request #115712 from wedaly/kubectl-netadmin-debug-profile
kubectl debug: add netadmin profile
2023-02-15 23:39:38 -08:00
Paco Xu
3d536bd14b API docs: point to current docs instead of archived designs 2023-02-16 15:32:08 +08:00
Kubernetes Prow Robot
292450717c
Merge pull request #115394 from ritazh/kmsv2-metrics
kmsv2: add metrics
2023-02-15 18:03:37 -08:00
Kubernetes Prow Robot
a25834cb5a
Merge pull request #115802 from logicalhan/webhook-metrics
webhook metrics top out at 2.5s but default timeout is 10s
2023-02-15 15:29:11 -08:00
Rita Zhang
bd0f7f8ee8
kmsv2: add metrics
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2023-02-15 15:08:24 -08:00
Damien Grisonnet
51ae7265ae restclient: revert metrics test to use old label
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2023-02-15 20:57:31 +01:00
Damien Grisonnet
437c9d9ab2 Revert "restclient: rename "method" label to "verb""
This reverts commit c9944709bc.
2023-02-15 20:08:13 +01:00
Han Kang
7b823002f3 add 25s bucket 2023-02-15 10:31:12 -08:00
Kubernetes Prow Robot
ebae41641f
Merge pull request #115798 from pohly/dra-event-broadcaster
dra: avoid goroutine leaks from event broadcaster
2023-02-15 09:58:41 -08:00
Han Kang
20b5205dad use 10 seconds as the biggest bucket for webhook metrics otherwise charts will top out at 2.5s for webhook latencies 2023-02-15 09:17:41 -08:00
Patrick Ohly
0e1139d027 dra: avoid goroutine leaks from event broadcaster
When using these controllers in test/integration/scheduler_perf, the goroutine
leak check there pointed out that broadcaster.Shutdown function wasn't called
and thus goroutines leaked during a test.
2023-02-15 15:14:27 +01:00
Kubernetes Prow Robot
b3d8ac8496
Merge pull request #115786 from liggitt/net-0.7.0-master
Update golang.org/x/net to v0.7.0
2023-02-14 23:28:35 -08:00
Kubernetes Prow Robot
98406e2a3e
Merge pull request #115785 from liggitt/fix-kubectl-test
Revert "Refactor fake versions of openapi client into testing subdir"
2023-02-14 21:26:39 -08:00
Kubernetes Prow Robot
62903e3de6
Merge pull request #115626 from hh/patch-3
Migrate apiserver tracing_test.go to registry.k8s.io
2023-02-14 21:26:31 -08:00
Jordan Liggitt
f8e00778dd
Update golang.org/x/net to v0.7.0 2023-02-14 23:14:30 -05:00
Jordan Liggitt
f989445900
Revert "Refactor fake versions of openapi client into testing subdir"
This reverts commit 869da89eab.
2023-02-14 22:14:37 -05:00
Kubernetes Prow Robot
08bbecb8e3
Merge pull request #115465 from seans3/openapi-client-testing
Refactor fake versions of openapi client into testing subdir
2023-02-14 16:35:54 -08:00
Kubernetes Prow Robot
b8688048f8
Merge pull request #115758 from sourcelliu/storageversion
Remove unused code
2023-02-14 14:26:03 -08:00
Andrew Sy Kim
7367201288 increase expected fairness margin in TestDifferentWidths
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-02-14 16:34:04 -05:00
Kubernetes Prow Robot
4cf352c4bb
Merge pull request #115456 from pohly/goroutine-leak-check
test/integration: goroutine leak check
2023-02-14 08:31:31 -08:00
mantuliu
bc70548c47 Remove unused code
Signed-off-by: mantuliu <240951888@qq.com>
2023-02-14 20:08:11 +08:00
Kubernetes Prow Robot
5ad9e41879
Merge pull request #114987 from astefanutti/pr-codegen-applyconfig
Add applyconfiguration generator to code-generator script
2023-02-14 03:19:30 -08:00
Patrick Ohly
f131cabfa0 test: use go-uber/goleak for strict leak checking
It provides more readable output and has additional APIs for using it inside a
unit test. goleak.IgnoreCurrent is needed to filter out the goroutine that gets
started when importing go.opencensus.io/stats/view.

In order to handle background goroutines that get created on demand and cannot
be stopped (like the one for LogzHealth), a helper function ensures that those
are running before calling goleak.IgnoreCurrent. Keeping those goroutines
running is not a problem and thus not worth the effort of adding new APIs to
stop them.

Other goroutines are genuine leaks for which no fix is available. Those get
suppressed via IgnoreTopFunction, which works as long as that function
is unique enough.

Example output for the leak fixed in https://github.com/kubernetes/kubernetes/pull/115423:

    E0202 09:30:51.641841   74789 etcd.go:205] "EtcdMain goroutine check" err=<
        found unexpected goroutines:
        [Goroutine 4889 in state chan receive, with k8s.io/apimachinery/pkg/watch.(*Broadcaster).loop on top of the stack:
        goroutine 4889 [chan receive]:
        k8s.io/apimachinery/pkg/watch.(*Broadcaster).loop(0xc0076183c0)
        	/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch/mux.go:268 +0x65
        created by k8s.io/apimachinery/pkg/watch.NewBroadcaster
        	/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch/mux.go:77 +0x116
    >
2023-02-14 12:11:37 +01:00
Li Bo
2d98d2412a refine code 2023-02-14 15:10:54 +08:00
Sean Sullivan
869da89eab Refactor fake versions of openapi client into testing subdir 2023-02-13 17:43:01 -08:00
Kubernetes Prow Robot
0e5d4a81f1
Merge pull request #115732 from jsafrane/revert-root-test
Revert #114605: its unit test requires root permission
2023-02-13 15:57:29 -08:00
Kubernetes Prow Robot
30f1567145
Merge pull request #115685 from skitt/rest-req-error
client-go: add an Error() function on Request
2023-02-13 14:53:41 -08:00
Will Daly
f5095bf34d kubectl debug: add netadmin profile
Add the netadmin profile from KEP 1441
https://github.com/kubernetes/enhancements/tree/master/keps/sig-cli/1441-kubectl-debug#debugging-profiles

Signed-off-by: Will Daly <widaly@microsoft.com>
2023-02-13 14:39:38 -08:00
Odin Ugedal
27f4bcae5c client-go/cache: update Replace comment to be more clear
Since the behavior is now changed, and the old behavior leaked objects,
this adds a new comment about how Replace works.

Signed-off-by: Odin Ugedal <ougedal@palantir.com>
Signed-off-by: Odin Ugedal <odin@uged.al>
2023-02-13 19:48:39 +00:00
Kubernetes Prow Robot
281acc6a6b
Merge pull request #115722 from ardaguclu/restclientgetter-debug
kubectl debug: Use restClientGetter instead cmd.Factory
2023-02-13 11:45:41 -08:00