Commit Graph

111366 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e287b36cc1
Merge pull request #113364 from wojtek-t/refactor_storage_tests_2
Refactor storage tests - part 2
2022-10-26 12:58:23 -07:00
Wojciech Tyczyński
e04fe81dfc Minor cleanup of etcd3 tests 2022-10-26 20:54:51 +02:00
Wojciech Tyczyński
6c8ce894e1 Refactor pagination tests 2022-10-26 20:54:51 +02:00
Wojciech Tyczyński
8472e1bc13 Refactor GetReads 2022-10-26 20:51:20 +02:00
Kubernetes Prow Robot
fd331bcdd4
Merge pull request #111569 from inosato/remove-ioutil-from-controller-manager
Remove ioutil from controller-manager
2022-10-26 11:32:37 -07:00
Kubernetes Prow Robot
f3e6e05979
Merge pull request #113355 from chendave/preflightErrors
kubeadm: Don't reuse the `ignorePreflightErrors` from initCfg for `reset`
2022-10-26 08:40:36 -07:00
Kubernetes Prow Robot
9acd38e07d
Merge pull request #113343 from logicalhan/doc
Add support to metrics framework to auto-generate documentation for metrics
2022-10-26 07:34:51 -07:00
Kubernetes Prow Robot
ca03736670
Merge pull request #113323 from RomanBednar/retro-sc-metric
add a metric for retroactive sc errors
2022-10-26 07:34:39 -07:00
Kubernetes Prow Robot
c33a773886
Merge pull request #113357 from wojtek-t/refactor_storage_tests
Refactor storage tests
2022-10-26 05:26:36 -07:00
Wojciech Tyczyński
afc5ded839 Move GuaranteedUpdateChecksData test to generic package 2022-10-26 12:23:25 +02:00
Wojciech Tyczyński
5344bc5e1b Minor cleanup of storage tests 2022-10-26 12:21:55 +02:00
Wojciech Tyczyński
012676acc3 Move GuaranteedUpdate test to generic test package 2022-10-26 12:21:55 +02:00
Dave Chen
5854b92450 kubeadm: Don't reuse the ignorePreflightErrors from initCfg for reset
The init config file fetched from cluster won't have `ignorePreflightErrors`
set, and shouldn't try to reuse it even it's set with any value.

Instead, it should be defined in reset config file and fetch from it when the
reset config is ready.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-10-26 16:14:11 +08:00
Kubernetes Prow Robot
5539a5b80f
Merge pull request #113353 from chendave/validation
kubeadm: print the invalid field when validating bootstrap token discovery
2022-10-26 00:44:36 -07:00
Dave Chen
1607babd35 kubeadm: print the invalid field when validating bootstrap token discovery
It was saying `discovery.bootstrapToken` is invalid with empty value, while
it is actually `discovery.bootstrapToken.caCertHashes` invalid.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-10-26 13:45:00 +08:00
Kubernetes Prow Robot
d77d28b15f
Merge pull request #113338 from apelisse/swagger-unmarshaljson
Swagger unmarshaljson
2022-10-25 22:38:35 -07:00
Kubernetes Prow Robot
bb12faf15b
Merge pull request #113141 from dobsonj/csi-inline-pod-test-flake
test: remove flaky pod update test in CSIInlineVolumes e2e
2022-10-25 16:26:45 -07:00
Kubernetes Prow Robot
797536fc76
Merge pull request #105867 from VilledeMontreal/feature/compPlugins
Shell completion for plugins
2022-10-25 16:26:34 -07:00
Antoine Pelisse
5be7430fe3 Use Swagger#UnmarshalJSON rather than json.Unmarshal
Since we're now using the experimental json code to deserialize
spec.Swagger, we should rather use UnmarshalJSON since this has a much
lower CPU overhead.
2022-10-25 15:03:33 -07:00
Kubernetes Prow Robot
244c035b87
Merge pull request #110263 from claudiubelu/unittests
unittests: Fixes unit tests for Windows
2022-10-25 14:50:34 -07:00
Han Kang
fa2eb8e3ea make changes suggested by sig docs
Change-Id: I793eea636e7a83da7f87b23a3aa4e7ddfaf42ec6
2022-10-25 17:08:00 -04:00
Claudiu Belu
6f2eeed2e8 unittests: Fixes unit tests for Windows
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- config options not supported on Windows.
- files not closed, which means that they cannot be removed / renamed.
- paths not properly joined (filepath.Join should be used).
- time.Now() is not as precise on Windows, which means that 2
  consecutive calls may return the same timestamp.
- different error messages on Windows.
- files have \r\n line endings on Windows.
- /tmp directory being used, which might not exist on Windows. Instead,
  the OS-specific Temp directory should be used.
- the default value for Kubelet's EvictionHard field was containing
  OS-specific fields. This is now moved, the field is now set during
  Kubelet's initialization, after the config file is read.
2022-10-25 23:46:56 +03:00
Han Kang
1e99f54bb6 adjust sizes and documentation
Change-Id: Icd89c0c5bd6fbfb616255132db602b4db5ee2fe9
2022-10-25 16:32:55 -04:00
Han Kang
eb7253dfd5 ignore golint error
Change-Id: I696ab9ae8cb47407208e5a848b5ab852f1319037
2022-10-25 16:11:19 -04:00
Kubernetes Prow Robot
19ab5b6910
Merge pull request #113310 from logicalhan/storage-metric
swap name for storage metric for underlying storage db
2022-10-25 13:10:35 -07:00
Han Kang
8dffb57188 add documentation about auto-generating auto-documentation
Change-Id: I6bfa6a7e8d83d211f4e52865e033b9911f607c58
2022-10-25 15:09:54 -04:00
Han Kang
325f09045f add automated documentation generation from our static analysis pipeline
Change-Id: I66a0b4fd836ad3b51873517f16eb5a73b05bf329
2022-10-25 14:44:09 -04:00
Jonathan Dobson
e377d071bb test: remove flaky pod update test in CSIInlineVolumes e2e 2022-10-25 11:55:59 -06:00
Kubernetes Prow Robot
449c46258b
Merge pull request #113325 from panslava/fix-time-since-defer
Fix time.Since() in defer. Wrap in anonymous function
2022-10-25 06:42:36 -07:00
Roman Bednar
42422a1d16 add a metric for retroactive sc errors 2022-10-25 15:09:16 +02:00
Slavik Panasovets
864e41f16d Fix time.Since() in defer. Wrap in anonymous function
Function arguments in defer evaluated during definition of defer, not
during execution
2022-10-25 12:38:35 +00:00
Kubernetes Prow Robot
256ade5aa4
Merge pull request #112377 from weilaaa/refactor_sets_use_generic
refactor sets use generic
2022-10-24 21:14:34 -07:00
Kubernetes Prow Robot
b932a3ac37
Merge pull request #112696 from aimuz/fix-22422
Fixed: 22422 use singleflight to alleviate simultaneous calls to
2022-10-24 20:08:34 -07:00
Kubernetes Prow Robot
245d59273c
Merge pull request #113136 from jprzychodzen/kcm-remove-race-condition
NodeLifecycleController: Remove race condition
2022-10-24 15:48:34 -07:00
Kubernetes Prow Robot
74e33de9aa
Merge pull request #113297 from claudiubelu/test-images/fixes-failing-images
test images: Fixes httpd-new image
2022-10-24 14:40:45 -07:00
Kubernetes Prow Robot
48d0a5fd5f
Merge pull request #113276 from Huang-Wei/hack-local-sched-v1
update scheduler config version to v1
2022-10-24 14:40:34 -07:00
Kubernetes Prow Robot
c5242edd92
Merge pull request #108858 from zshihang/master
track legacy service account tokens
2022-10-24 12:44:23 -07:00
Jakub Przychodzeń
de25c5fdcf NodeLifecycleController: Remove race condition
Patch request does not support RV by default, we need to include them explicitly and patching lists actually overwrites whole field. It means that there is a race condition, in which we can overwrite changes to taints that happened between GET and PATCH requests.
2022-10-24 19:36:58 +00:00
Han Kang
3a2d1bab26 swap name for storage metric for underlying storage db
Change-Id: Ic7cd9bf5ef29d9c51a728ef37c94d77172fbf678
2022-10-24 15:27:05 -04:00
Kubernetes Prow Robot
23aaf78a4a
Merge pull request #113189 from MikeSpreitzer/add-borrowing-parms
Introduce constants for the two parameters of seat borrowing
2022-10-24 09:44:26 -07:00
Shihang Zhang
569cd70a52 track legacy service account tokens 2022-10-24 09:37:53 -07:00
Kubernetes Prow Robot
7ad4b04632
Merge pull request #113303 from claudiubelu/update-windowsservercore-cache
test images: Revert windows-servercore-cache version
2022-10-24 08:28:25 -07:00
Kubernetes Prow Robot
9b9a963a8d
Merge pull request #113238 from pacoxu/storage-quantity-warning
pvc storage request warning for fractional byte value
2022-10-24 06:30:37 -07:00
Kubernetes Prow Robot
38c659eb9f
Merge pull request #111534 from claudiubelu/unittests-7
unittests: Fixes unit tests for Windows
2022-10-24 06:30:25 -07:00
Kubernetes Prow Robot
36dd5f2846
Merge pull request #113191 from saltbo/refa-remove-unused-ipconfig
Remove the unused pkg/util/ipconfig
2022-10-23 19:22:25 -07:00
Kubernetes Prow Robot
6a709cf07b
Merge pull request #113194 from saltbo/refa-replace-ioutil
Replace the ioutil by the os and io for the pkg/util
2022-10-23 18:08:24 -07:00
Claudiu Belu
ae3885b889 test images: Revert windows-servercore-cache version
The Windows Server Core images are quite large (~2GB each), and pulling
it for multiple build jobs / E2E images is inefficient, especially if
have to build for multiple OS versions.

The windows-servercore-cache image is meant to simply cache the Windows files
we need from the Windows Server core images, so we can pull the small cache image
instead of the entire image. It is never meant to be a promotable image,
the version is not meant to be bumped.

The other images (e.g.: agnhost) rely on the version 1.0 images.
2022-10-23 13:50:42 -07:00
Claudiu Belu
fb7aaab3b9 test images: Fixes httpd-new image
httpd-2.4.48-win64-VC15.zip no longer exists. Use httpd-2.4.54-win64-VC15.zip
instead.
2022-10-23 10:07:17 -07:00
saltbo
6f878d92fb
fix: update the fsstore_test.go
Signed-off-by: saltbo <saltbo@foxmail.com>
2022-10-23 21:51:48 +08: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