Commit Graph

111304 Commits

Author SHA1 Message Date
Oscar Utbult
de53dcc438 Fix Makefile help target 2022-10-23 14:59:25 +02:00
Kubernetes Prow Robot
641197dc95
Merge pull request #113256 from oscr/enable-gocritic-check
hack/tools enable additional linter gocritic in golangci-lint
2022-10-23 03:22:24 -07:00
Kubernetes Prow Robot
76fe4039e5
Merge pull request #113149 from marosset/hpc-inclusterconfig-e2e
Add e2e test to validate that hostProcess containers can use inclusterclient
2022-10-21 16:21:56 -07:00
Kubernetes Prow Robot
19aaafbe10
Merge pull request #113219 from marosset/fix-hpc-e2e-metrics
HostProcess containers metrics e2e test fixes
2022-10-21 15:05:56 -07:00
Mark Rossetti
8d915ea979
Add e2e test to validate that hostProcess containers can use inclusterclient
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-10-21 14:15:31 -07:00
Kubernetes Prow Robot
9ac6c0480a
Merge pull request #113265 from yuanchen8911/pointer
Replace deprecated pointer conversions in scheduler
2022-10-21 13:58:08 -07:00
Kubernetes Prow Robot
1c372121bb
Merge pull request #113214 from pohly/e2e-ginkgo-invocation-fix
hack: pass several Ginkgo parameters to the CLI instead of the test binary
2022-10-21 13:57:57 -07:00
Kubernetes Prow Robot
21335cc264
Merge pull request #113264 from alexzielenski/admission-flake-fix
fix flaky admission tests
2022-10-21 12:37:50 -07:00
Kubernetes Prow Robot
0a976627ae
Merge pull request #111332 from marosset/hpc-stats-e2e
Add e2e to validate stats for Windows hostprocess containers
2022-10-21 12:37:39 -07:00
Patrick Ohly
104aab81a4 hack: pass Ginkgo arguments more intelligently
Most parameters can be passed to both the CLI and the suite, but some
(for example, --ginkgo.slow-spec-threshold) had no effect when only
passed to the suite.
2022-10-21 19:57:53 +02:00
Yuan Chen
18f5b5c8e0 Replace deprecated pointer conversions in scheduler 2022-10-21 10:43:24 -07:00
Kubernetes Prow Robot
a497c56c33
Merge pull request #113030 from Richabanker/kubelet-metrics-slis
add metrics/slis to kubelet health checks
2022-10-21 10:35:52 -07:00
Mark Rossetti
da0b66b3fe
Add e2e to validate stats for Windows hostprocess containers
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-10-21 10:07:38 -07:00
Alexander Zielenski
bfbc1f3479
fix flaky admission tests
would fllake .04% of the time on my machine.

In tests waiting for objects to be reconciled, would erroneously treat the "Not Found" case as an error rather than waiting a bit.

also add some more context to test errors to improve debuggability
2022-10-21 09:48:01 -07:00
Oscar Utbult
21fa8d12bb hack/tools enable additional linter in golangci-lint
Enables linter gocritic with two checks enabled for a subset of the project
2022-10-21 17:58:15 +02:00
Kubernetes Prow Robot
4d50d28777
Merge pull request #113193 from kerthcet/cleanup/remove-unnecessary-tests
Remove unuseful multi scheduler testcases
2022-10-21 08:32:03 -07:00
Kubernetes Prow Robot
18b81513b6
Merge pull request #112025 from kerthcet/refactor/handle-scheduling-failure
Refactor schedulingCycle and bindingCycle in scheduler
2022-10-21 08:31:51 -07:00
Kubernetes Prow Robot
e876d63ec2
Merge pull request #113244 from SataQiu/print-detail-20221021
kubeadm: print the detailed manifest info when decoding it into runtime.Object fails
2022-10-21 02:59:50 -07:00
SataQiu
93ece333e6 kubeadm: print the detailed manifest info when decoding it into runtime.Object fails 2022-10-21 16:50:17 +08:00
Kubernetes Prow Robot
fe9d04763b
Merge pull request #113231 from Huang-Wei/cleanup-sched-main-test
cleanup scheduler server_test.go
2022-10-21 00:45:51 -07:00
kerthcet
f7f857814f Refactor schedulingCycle and bindingCycle in scheduler
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-10-21 13:53:18 +08:00
Kubernetes Prow Robot
98533290e9
Merge pull request #113229 from BenTheElder/more-shell-tidy
more shellcheck cleanups
2022-10-20 22:25:50 -07:00
Kubernetes Prow Robot
2313e2b825
Merge pull request #113176 from alculquicondor/finalizer_metric
Add metric for terminated pods with tracking finalizer
2022-10-20 20:52:01 -07:00
Kubernetes Prow Robot
b9973d28f2
Merge pull request #113074 from andrewsykim/apiserver-lease-gc-tests
add unit tests for apiserverleasegc controller
2022-10-20 20:51:50 -07:00
Kubernetes Prow Robot
f3ae27f5ef
Merge pull request #113213 from pohly/e2e-instrumentation-dead-code-removal
test/e2e/instrumentation/logging/utils: remove dead package
2022-10-20 18:25:14 -07:00
Wei Huang
761d06d91a
cleanup scheduler server_test.go 2022-10-20 18:09:05 -07:00
Benjamin Elder
64ed5964d5 permit self-assignment line for clarity and also fear of touching get-kube.sh 2022-10-20 16:22:11 -07:00
Benjamin Elder
bf3df26efd disable SC2120 on functions with optional parameters
https://www.shellcheck.net/wiki/SC2120#exceptions
2022-10-20 16:22:11 -07:00
Benjamin Elder
239b3338e9 idiomatically check for empty variable 2022-10-20 16:22:10 -07:00
Kubernetes Prow Robot
615929ed88
Merge pull request #113133 from sxllwx/fix-issue-111985
Fix DeleteCollection API decode DeleteOptions fail
2022-10-20 16:09:22 -07:00
Kubernetes Prow Robot
f33ddd1b9c
Merge pull request #113210 from dims/ensure-we-are-using-gnu-date-for-builds
Ensure we are using GNU date for builds
2022-10-20 14:51:22 -07:00
Kubernetes Prow Robot
fc866d87dc
Merge pull request #113208 from soltysh/azure_timeouts
Set default test timeouts first, only then modify the required ones
2022-10-20 12:07:20 -07:00
Kubernetes Prow Robot
f765d0bd37
Merge pull request #113183 from dashpole/new_trace_api
Add new tracing library to bridge otel and utiltrace apis
2022-10-20 12:07:07 -07:00
Kubernetes Prow Robot
fb9b466f30
Merge pull request #113159 from pacoxu/patch-3
flake: wait for crd ready in kubectl apply script
2022-10-20 12:06:56 -07:00
Kubernetes Prow Robot
dbb3b4f340
Merge pull request #113212 from pohly/e2e-progress-on-stdout-removal
e2e: remove JSON progress output on stdout
2022-10-20 10:29:12 -07:00
Kubernetes Prow Robot
0a08757181
Merge pull request #113128 from pohly/e2e-storage-cleanup
e2e storage: cleanup with context
2022-10-20 10:29:00 -07:00
Kubernetes Prow Robot
dc3c9c0101
Merge pull request #113202 from oscr/update-golangci-lint
hack/tools: update golangci-lint version (1.48.0 -> 1.50.0)
2022-10-20 08:57:15 -07:00
Kubernetes Prow Robot
8305358630
Merge pull request #108494 from sanposhiho/RunScorePlugins-return-type
change framework.RunScorePlugins to return slice organized by node
2022-10-20 08:57:02 -07:00
Aldo Culquicondor
12d308f5c4 Add metric for terminated pods with tracking finalizer
Change-Id: I26f3169588c30ed82250cb7baff8e277f8d13bb7
2022-10-20 11:35:20 -04:00
David Ashpole
729085287d
add new tracing library to bridge otel and utiltrace apis 2022-10-20 14:40:51 +00:00
Patrick Ohly
3e560e8341 e2e: remove JSON progress output on stdout
The original intention was to address "frustration of end users running the e2e
suite is that they take a significant amount of time and it is difficult to
gauge progress".

But Ginkgo's output is different now than it was in Kubernetes 1.19. If users
want to see progress, then "ginkgo --progress" might provide enough
information.

Printing to os.Stdout doesn't work as intended anyway when output redirection
is enabled (the default for parallel runs) and causes these JSON snippets to
appear as "show stdout" for each failed test in a Prow job, which is
distracting.
2022-10-20 16:33:10 +02:00
Davanum Srinivas
ec71e53adb
Ensure we are using GNU date for builds
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-10-20 10:12:23 -04:00
Kubernetes Prow Robot
7423cc931f
Merge pull request #112691 from aimuz/apiextensions-apiserver-change-to-cmp
apiextensions-apiserver: change k8s.io/apimachinery/pkg/util/diff to github.com/google/go-cmp/cmp
2022-10-20 07:01:01 -07:00
Maciej Szulik
24d30bf8b2
Set default test timeouts first, only then modify the required ones 2022-10-20 15:35:17 +02:00
Patrick Ohly
f15d7f6cca e2e storage: eliminate context.TODO and cleanup callbacks
Tests should accept a context from Ginkgo and pass it through to all functions
which may block for a longer period of time. In particular all Kubernetes API
calls through client-go should use that context. Then if a timeout occurs,
the test returns immediately because everything that it could block on will
return.

Cleanup code then needs to run in a separate Ginkgo node, typically
DeferCleanup, which ensures that it gets a separate context which has not timed
out yet.
2022-10-20 13:56:59 +02:00
Patrick Ohly
d8d3dc9476 e2e storage: eliminate explicit test driver cleanup
Cleanup can be handled inside the setup code with ginkgo.DeferCleanup. This
simplifies the code.
2022-10-20 13:56:59 +02:00
Oscar Utbult
de1fff9afa hack/tools: update golangci-lint version (1.48.0 -> 1.50) 2022-10-20 13:51:10 +02:00
Kubernetes Prow Robot
687b001648
Merge pull request #113190 from BenTheElder/shell-fixups
assorted small shell script fixes
2022-10-20 03:34:57 -07:00
Kubernetes Prow Robot
9bcb81e13f
Merge pull request #113175 from liggitt/pr_normalize_probes_lifecycle_handlers
Record event and metric for lifecycle fallback to http
2022-10-20 02:31:08 -07:00
Kubernetes Prow Robot
fc4344a748
Merge pull request #111706 from tallclair/audit-error
More useful audit error logs
2022-10-20 02:30:56 -07:00