Commit Graph

91553 Commits

Author SHA1 Message Date
Hemant Kumar
74be9f04fa Ensure CleanupActionHandle always completes
The way gingko handles interrupts is:
 - It starts running AfterSuite hooks in a separate goroutine (this includes cleanupAction hooks)
 - Once AfterSuite hook is done executing it calls
   os.Exit(1) on test suite.

So how cleanupFunc() that runs via defer in test can be interrupted
is:
 - cleanupFunc starts running via defer (or AfterEach hook) but first
   thing that function does is to remove cleanupHandle from
   framework.RemoveCleanupAction.
 - Test suite receives interrupt from user and AfterSuite block
   starts executing
 - remember that while cleanupFunc is running in goroutine#1,
   AfterSuite is running concurrently in goroutine#2.
 - AfterSuite hook has bunch of CleanupActions it needs to run which
   were registered via framework.AddCleanupAction(cleanupFunc) but
   once cleanupFunc starts executing via defer in the test, it will
   remove the cleanupHandle from framework's aftersuite hooks.
 - So if AfterSuite did not had anything to run (because
   those actions were removed via framework.RemoveCleanupAction
   then it will simply go to the last framework.AfterEach action and call os.Exit(1)
 - So if os.Exit(1) is called before cleanupFunc has a chance to finish in defer, it will not complete.
2020-06-02 12:40:32 -04:00
Patrick Ohly
2a31764ba7 local-up-cluster.sh: install CSI snapshotter
This cluster add-on is required for snapshotting of CSI volumes and
must be installed when bringing up a cluster because CSI driver
installations depend on that.

It is unclear how many users of the script need CSI snapshotting,
therefore it is disabled by default (= the previous behavior).
2020-06-02 16:15:53 +02:00
Kubernetes Prow Robot
3995c1a54d
Merge pull request #91660 from ZeroMagic/get-azurefile
Add function GetFileShare in Azure Cloud Provider
2020-06-02 06:28:29 -07:00
Kubernetes Prow Robot
84861d2102
Merge pull request #91558 from liggitt/csr-e2e
Add e2e coverage for the CertificateSigningRequest API, enable patch support for approval subresource
2020-06-02 06:28:15 -07:00
Kaivalya Shah
dd1f029cd9 Change NodeAddresses function to work if it runs outside kubelet 2020-06-02 16:53:17 +05:30
Jin Hase
e6c1935355 Change status to status.Phase for removing unnecessary status information 2020-06-02 18:07:37 +09:00
Kubernetes Prow Robot
7bd4c53b27
Merge pull request #91630 from liggitt/kube-apiserver-kubelet-https
Mark --kubelet-https deprecated, unconditionally use https for apiserver->kubelet connections
2020-06-02 02:02:14 -07:00
ZeroMagic
07d334f1ee Add function GetFileShare in Azure Cloud Provider
Signed-off-by: ZeroMagic <jiliu8@microsoft.com>
2020-06-02 08:51:52 +00:00
Kubernetes Prow Robot
1efe51b52b
Merge pull request #91643 from hasheddan/permissions
Fix minor typo in projected service account e2e test
2020-06-01 23:34:39 -07:00
Kubernetes Prow Robot
99a56f6ace
Merge pull request #91604 from iobuf/review.job
[pkg/controller/job]: fix comment typo
2020-06-01 23:34:29 -07:00
Kubernetes Prow Robot
5fb9e35e57
Merge pull request #90191 from liggitt/csr-status
CSR condition status, lastTransitionTime, versioned validation
2020-06-01 23:34:15 -07:00
Kubernetes Prow Robot
5592b5d67a
Merge pull request #91470 from MHBauer/fail-0-remote-images
explicitly fail if no images are found when running remote tests
2020-06-01 20:58:14 -07:00
Jordan Liggitt
2e8461a5bc Mark --kubelet-https deprecated, unconditionally use https for apiserver->kubelet connections 2020-06-01 20:54:49 -04:00
Qing Ju
fe8ecb18b0 Added link to vendor.md in go.mod 2020-06-01 17:20:47 -07:00
Kubernetes Prow Robot
f834c92ce1
Merge pull request #91632 from liggitt/ginkgo-recover-e2e
Defer ginkgo recovers
2020-06-01 16:24:14 -07:00
Kubernetes Prow Robot
5bcc33ee94
Merge pull request #91569 from squeed/block-localnet
kubelet: block non-forwarded packets from crossing the localhost boundary
2020-06-01 13:10:28 -07:00
Kubernetes Prow Robot
c5444496d5
Merge pull request #91564 from saschagrunert/update-cri-tools
Update cri-tools to v1.18.0 (#2)
2020-06-01 13:10:14 -07:00
hasheddan
7b0b5cb8d1
Fix minor typo in projected service account e2e test
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-06-01 14:10:09 -05:00
Christian Huffman
7a55d3978c Adjust Azure e2e binding mode 2020-06-01 14:55:46 -04:00
Kubernetes Prow Robot
5b3fe0564d
Merge pull request #88695 from gavinfish/unsafe-json
Fix unsafe json construction for scale.go and codec_check.go
2020-06-01 10:27:56 -07:00
Qing Ju
c71272b0c7 Added clarification to delta FIFO doc 2020-06-01 10:19:31 -07:00
Carlos Panato
715aa8b733
get-kube.sh: fix order to get the binaries from the right bucket 2020-06-01 17:59:33 +02:00
Kubernetes Prow Robot
3fc7831cd8
Merge pull request #90896 from andyzhangx/azure-migration
feat: azure disk migration go beta in 1.19
2020-06-01 08:39:56 -07:00
Jordan Liggitt
c9638d54d0 Defer ginkgo recovers 2020-06-01 11:02:41 -04:00
Rostislav M. Georgiev
5d6cf8ecd4 kubeadm: Distinguish between user supplied and generated component configs
Until now, users were always asked to manually convert a component config to a
version supported by kubeadm, if kubeadm is not supporting its version.
This is true even for configs generated with older kubeadm versions, hence
getting users to make manual conversions on kubeadm generated configs.
This is not appropriate and user friendly, although, it tends to be the most
common case. Hence, we sign kubeadm generated component configs stored in
config maps with a SHA256 checksum. If a configs is loaded by kubeadm from a
config map and has a valid signature it's considered "kubeadm generated" and if
a version migration is required, this config is automatically discarded and a
new one is generated.
If there is no checksum or the checksum is not matching, the config is
considered as "user supplied" and, if a version migration is required, kubeadm
will bail out with an error, requiring manual config migration (as it's today).
The behavior when supplying component configs on the kubeadm command line
does not change. Kubeadm would still bail out with an error requiring migration
if it can recognize their groups but not versions.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2020-06-01 17:57:53 +03:00
Jin Hase
573e5c6b2f Migrate klog to klog.InfoS in pkg/kubelet 2020-06-01 19:36:55 +09:00
Kubernetes Prow Robot
b618411f1e
Merge pull request #91594 from neolit123/1.19-update-owners-test-lifecycle
test/e2e/lifecycle: update OWNERS
2020-05-31 23:57:55 -07:00
Kubernetes Prow Robot
413bc1a1d2
Merge pull request #91138 from chendave/imagelocality
Define the thresholds per the size of container images
2020-05-31 16:17:53 -07:00
Kubernetes Prow Robot
46d08c89ab
Merge pull request #91363 from alejandrox1/tune-node-perf-workloads
Tuned npb is workload resources
2020-05-30 23:25:53 -07:00
Kubernetes Prow Robot
46020220ad
Merge pull request #90386 from gaurav1086/azure_remove_extra_sprintf
[Provider/Azure] remove extra Sprintf()
2020-05-30 16:33:53 -07:00
Kubernetes Prow Robot
a017253ace
Merge pull request #88196 from janosi/sctp-e2e
e2e test cases for basic SCTP testing
2020-05-30 09:41:53 -07:00
Zhou Peng
bc9bff0d9e [pkg/controller/job]: fix comment typo
Signed-off-by: Zhou Peng <p@ctriple.cn>
2020-05-30 23:09:10 +08:00
Dave Chen
42fbb1d72f Define the thresholds per the size of container images
Given the assumption that 90% of images on dockerhub drops into this range (23~1000)MB,
this assumption is based on the container images instead of the pod.

pod might hold multiple container images, it's better to multiply the assumption by the size
of container images.

Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-05-30 20:57:50 +08:00
Kubernetes Prow Robot
6468bfa770
Merge pull request #91585 from liggitt/pending-pod-timeout
Add debugging and timeouts to pending pod e2e
2020-05-30 02:58:08 -07:00
Kubernetes Prow Robot
acaa9eaca1
Merge pull request #91520 from weijiehu/azureconfig
Improves unittest CC for azure_config
2020-05-30 02:57:52 -07:00
Kubernetes Prow Robot
774c9a6db6
Merge pull request #91349 from neolit123/1.19-fail-on-unrecognized-args
cmd/*: fail on unrecognized flags/arguments for component CLI
2020-05-30 00:27:53 -07:00
Kubernetes Prow Robot
6a526e8633
Merge pull request #91547 from Huang-Wei/postfilter-api
Scheduler PostFilter API
2020-05-29 20:45:53 -07:00
Wei Huang
8478c19a7f
autogen: PostFilter 2020-05-29 18:18:00 -07:00
Wei Huang
1837b49554
Scheduler PostFilter API 2020-05-29 18:18:00 -07:00
Kubernetes Prow Robot
99df02cd4a
Merge pull request #91561 from RainbowMango/pr_fix_invalid_recover
fix a client-go crash handler not working issue.
2020-05-29 18:17:53 -07:00
Kubernetes Prow Robot
1d566466cf
Merge pull request #91500 from deads2k/guarantee-service
reduce race risk in kubelet for missing KUBERNETES_SERVICE_HOST
2020-05-29 15:21:33 -07:00
Michael McCune
0a9c3e9684 remove unused variable from autoscaling e2e
This change removes the `coreCount` variable and associated counting
logic from the cluster size autoscaling test. This variable was used
during the 1.9 release era, but the tests that used it were removed
before the 1.10 release. Please see the referenced commits[0][1] for
more information.

[0]
c8b807837a
[1]
fd738945b1
2020-05-29 17:33:45 -04:00
David Eads
4da0e64bc1 reduce race risk in kubelet for missing KUBERNETES_SERVICE_HOST 2020-05-29 17:11:19 -04:00
Lubomir I. Ivanov
93549d5037 test/e2e/lifecycle: update OWNERS
The e2e/lifecycle package is owned by SIG CL, although maybe this
should be moved to e2e/auth at some point.

- copy the OWNERS from /cmd/kubeadm (minus the area/kueadm label)
- remove the OWNERS file in /bootstrap letting the parent OWNERS file
manage this sub-package.
2020-05-29 23:12:44 +03:00
Kubernetes Prow Robot
ae1103726f
Merge pull request #91566 from RainbowMango/pr_fix_invalid_recover_in_apiserver
Fix a wrong usage of recover in apiserver
2020-05-29 11:56:39 -07:00
Kubernetes Prow Robot
106c3eff51
Merge pull request #91544 from brianpursley/DeleteCollectionWorkers
Avoid creating more delete collection workers than items to delete
2020-05-29 11:56:29 -07:00
Kubernetes Prow Robot
d1586ea3f9
Merge pull request #91502 from deads2k/dyn-audit-removal-00
remove --feature-gates=DynamicAuditing
2020-05-29 11:56:20 -07:00
Kubernetes Prow Robot
5b1d78599f
Merge pull request #91460 from wojtek-t/addon_resizer_1_8_9
GCE: Bump addon resizer to 1.8.9 version and use metrics to get cluster size there
2020-05-29 11:56:09 -07:00
Kubernetes Prow Robot
39d0f7ba59
Merge pull request #91354 from cheftako/controller-manager
Adds staging directory for controller-manager code
2020-05-29 11:55:56 -07:00
Kubernetes Prow Robot
b69c8392b5
Merge pull request #84596 from akhinos/fix-statefulset-defaulting
UpdateStrategy.RollingUpdate.Partition is lost when UpdateStrategy.Type is not set
2020-05-29 11:55:49 -07:00