Commit Graph

10808 Commits

Author SHA1 Message Date
Jie Shen
363bb39142 Use utils.net to parse ports instead of atoi (#89120) 2020-04-21 20:55:52 -07:00
Jonathan Basseri
a5c4f29a54 Fix race in vsphere cloud provider
When a go loop launches goroutines, it is a common mistake to assume
that the routines can reference the loop value from their specific loop
iteration. Actually, all goroutines share the same reference to the loop
veriable, and they typically all see the last value.

To correct this, the loop variable must be captured as a parameter to
the anonymous func.

This fix might eliminate the need for the retry logic below, but I do
not have enough information to back that up.

Signed-off-by: Jonathan Basseri <misterikkit@google.com>
2020-04-21 17:17:26 -07:00
Kubernetes Prow Robot
8be6307c56 Merge pull request #90218 from wojtek-t/lazy_network_initialization
Lazy initialization of network urls for GCE provider
2020-04-21 14:52:10 -07:00
Kubernetes Prow Robot
5a0e39e4fd Merge pull request #90189 from liggitt/api-1.18
Update API compatibility data for v1.18.0
2020-04-21 14:51:52 -07:00
Gaurav Singh
958834683e [Provider/Azure] remove unncessary sprintf 2020-04-21 11:57:23 -04:00
Gaurav Singh
033f94e58a [Provider/aws] use strings.TrimPrefix() 2020-04-21 11:21:40 -04:00
wojtekt
de05bd811e Lazy initialization of network urls for GCE provider 2020-04-21 16:32:18 +02:00
Kubernetes Prow Robot
72cdc8c211 Merge pull request #89256 from yue9944882/integration-test-flowcontrol
Priority-level isolation integration test
2020-04-21 05:42:55 -07:00
Kubernetes Prow Robot
4362bf7919 Merge pull request #89505 from knight42/fix/kubectl-explain-crd
fix(kubectl): explain crds whose resource name is the same as builtin objects
2020-04-21 01:44:56 -07:00
Kubernetes Prow Robot
f9532e4663 Merge pull request #90162 from rfranzke/fix/azure-csi-translation
Fix flaws in Azure CSI translation
2020-04-20 22:26:55 -07:00
Gaurav Singh
59a28111be [Azure] cache map remove exists check 2020-04-20 22:40:06 -04:00
tangcong
16c3ef2df8 fix client-go util staticcheck error 2020-04-21 07:27:23 +08:00
Kubernetes Prow Robot
4820b6cbdb Merge pull request #90242 from wojtek-t/efficient_alias_ranges
Avoid unnecessary GCE API calls for IP-alias calls
2020-04-20 15:54:25 -07:00
wojtekt
3758ab62d1 Avoid unnecessary GCE API calls for IP-alias calls
This is to avoid unnecessary GCE API calls done by getInstanceByName
helper, which is iterating over all zones to find in which zone the
VM exists.
ProviderID already contains all the information - it's in the form:
gce://<VM URL> (VM URL contains project, zone, VM name).

ProviderID is propagated by Kubelet on node registration and in case
of bugs backfilled by node-controller.
2020-04-20 20:47:11 +02:00
Kubernetes Prow Robot
5157383b84 Merge pull request #90227 from gosoon/bugfix
kubectl: fix the Scheduled eventTime is <unknown> when printing event
2020-04-20 10:41:40 -07:00
wojtekt
ab7e659953 Autogenerated 2020-04-20 18:04:44 +02:00
wojtekt
0360e4d1a1 Promote Immutable Secrets/ConfigMaps feature to Beta 2020-04-20 18:04:43 +02:00
Kubernetes Prow Robot
4c7254bd76 Merge pull request #90269 from gaurav1086/azure_fix_publicIP_tests
[Provider/Azure] fix publicIP test cases
2020-04-20 07:01:39 -07:00
Uwe Krueger
3c2de633d4 go-to-protobuf: fix rewrite of embedded struct fields
The protobuf generator cannot handle embedded struct fields correctly.
When using an embedded field by pointer it produces the error message

`unable to get name for tag from struct "...", field ...`

The reason is that the name determination evaluating the AST does not
handle pointers if the AST does not already contain a field name.
This seems to be the case for structs embedded by pointers.

Example:

```
type MyStruct struct {
  *OtherStruct `protobuf:"bytes,1,opt,name=otherStruct"`
}
```
2020-04-20 13:35:52 +02:00
andyzhangx
17d2e00e68 fix: azure file csi migration failure 2020-04-20 11:13:47 +00:00
Kubernetes Prow Robot
b8600d766b Merge pull request #90273 from nilo19/cleanup/enrich-azure-vmss-unit-test
Provider/Azure: Enrich the unit tests for azure_vmss.go.
2020-04-20 01:19:39 -07:00
t-qini
3fdceba86f Enrich the unit tests for azure_vmss.go. 2020-04-20 11:19:41 +08:00
Kubernetes Prow Robot
32540b0eaa Merge pull request #90280 from gaurav1086/azure_lb_remove_unncessary_check
[Provider/Azure] remove unncessary nil check for range
2020-04-19 18:05:38 -07:00
Gaurav Singh
a0c2af4fcd [Azure] remove unncessary nil check for range 2020-04-19 09:22:37 -04:00
Kubernetes Prow Robot
e95106106b Merge pull request #90243 from soltysh/issue90074
Revert "stop defaulting kubeconfig to http://localhost:8080"
2020-04-18 23:07:36 -07:00
Gaurav Singh
2df5a30ba3 [Azure] fix publicIP test cases 2020-04-18 18:30:59 -04:00
Kubernetes Prow Robot
44f9218a9d Merge pull request #90247 from liggitt/lifecycle-generator
Lifecycle generator updates
2020-04-17 19:09:35 -07:00
Kubernetes Prow Robot
f6f92aa00a Merge pull request #90082 from bitscuit/consistent-year-formats
fix exact year inconsistencies in human readable duration
2020-04-17 17:23:36 -07:00
Jordan Liggitt
b80578366b Update generated files 2020-04-17 15:50:51 -04:00
Jordan Liggitt
2fa1d202b3 Mark replacement APIs for deprecated extensions/v1beta1 APIs 2020-04-17 15:50:51 -04:00
Jordan Liggitt
d0babe2613 Prerelease lifecycle generator updates
Logs at lower verbosity to match other generators

Switches major/minor return types to int

Prefixes generated method names with APILifecycle to avoid collisions

Adds a k8s:prerelease-lifecycle-gen:replacement=group,version,kind tag for indicating a replacement API
2020-04-17 15:50:51 -04:00
Maciej Szulik
34865774a8 Fix kubectl version test to tolerate Run error coming from default
localhost:8080
2020-04-17 21:23:36 +02:00
bitscuit
36139a7255 add boundary test for subtraction 2020-04-17 11:04:52 -07:00
Kubernetes Prow Robot
875d3b534e Merge pull request #90091 from gongguan/dynamic-cache
Use dynamic size watch-cache.
2020-04-17 10:57:07 -07:00
Maciej Szulik
a871738c86 Revert "stop defaulting kubeconfig to http://localhost:8080"
This reverts commit b19ad9e7a7.
2020-04-17 16:37:15 +02:00
Brian Pursley
99f6dca1a8 Added kubectl apply check to prevent using --dry-run=server with --force 2020-04-17 09:15:36 -04:00
gosoon
798f677aac kubectl: fix the Scheduled eventTime is <unknown> when use kubectl describe pod xxx 2020-04-17 19:58:27 +08:00
Kubernetes Prow Robot
6652347cee Merge pull request #89674 from superbrothers/fix-kubectl-alpha-debug
Fix missing a shorthand for container flag of kubectl alpha debug
2020-04-16 23:49:07 -07:00
louisgong
56407b656c Use dynamic size watch-cache.
If all cached events occur inside eventFreshDuration, increase cache capacity by 2x.
Decrease cache capacity by 2x when recent half events occur outside eventFreshDuration.
2020-04-17 14:03:23 +08:00
Mike Spreitzer
012c3dab95 Clarify comment on Watch::ResultChan() 2020-04-16 21:56:32 -04:00
ZP-AlwaysWin
5796b7a32e Repair description 2020-04-17 09:36:38 +08:00
Kubernetes Prow Robot
d0f99fe39c Merge pull request #90212 from pancernik/pod-topology-spread-plugin-args
Add PodTopologySpread plugin arg types to kube-scheduler.config.k8s.io
2020-04-16 13:59:21 -07:00
Kubernetes Prow Robot
8fa7931159 Merge pull request #90200 from gongguan/capacity-metric
move watchCache metrics to a seperate file
2020-04-16 08:39:08 -07:00
Rafal Wicha
b511fa8627 Add PodTopologySpread plugin arg types to kube-scheduler.config.k8s.io 2020-04-16 16:26:27 +01:00
ga
cf1b72e457 [AZURE] t.Fatalf() for nil pointer (#90154)
* [AZURE] t.FatalF() for nil pointer

* [AZURE] t.FatalF() for nil pointer
2020-04-16 07:08:46 -07:00
Kubernetes Prow Robot
4bb5211367 Merge pull request #90010 from deads2k/verify-beta
generate metadata for requiring transition from beta
2020-04-16 04:54:47 -07:00
Phil Ferrell
f092c38840 apiextensions-apiserver: update test for CRD custom columns to jsonpath output of non-primitive type 2020-04-16 03:21:07 -07:00
louisgong
21ba510ef0 move watchCache metrics to a seperate file 2020-04-16 17:39:31 +08:00
Markus Thömmes
b113638cc8 Run ./hack/update-codegen.sh. 2020-04-16 10:53:36 +02:00
Markus Thömmes
565a4da0b2 Don't generate parameterCodec for private schemes. 2020-04-16 10:53:21 +02:00