Commit Graph

89318 Commits

Author SHA1 Message Date
Łukasz Osipiuk
c957b2509f Bump Cluster-Autoscaler to 1.18.0 2020-03-12 21:33:18 +01:00
Rob Scott
a68d712f12
Removing ConfigMap as suggestion for IngressClass parameters
As this is a a local object reference from a global object, referencing a ConfigMap would not be possible. Controller specific custom resources are a much better fit here, allowing for better validation.
2020-03-12 11:15:34 -07:00
Christopher M. Luciano
d22e18ad4f
ipvs: only attempt setting of sysctlconnreuse on supported kernels
This builds on previous work but only sets the sysctlConnReuse value
if the kernel is known to be above 4.19. To avoid calling GetKernelVersion
twice, I store the value from the CanUseIPVS method and then check the version
constraint at time of expected sysctl call.

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-03-12 13:16:00 -04:00
Kubernetes Prow Robot
55bb72b774
Merge pull request #89054 from losipiuk/lo/bump-ca-1.18.0-beta.1
Bump Cluster-Autoscaler to cluster-autoscaler:v1.18.0-beta.1
2020-03-12 08:18:39 -07:00
Alvaro Aleman
3244350046 Apierrors Is<<ErrType>>: Support wrapped errors 2020-03-12 10:22:58 +01:00
Kubernetes Prow Robot
5bf4a4ca2f
Merge pull request #89078 from liggitt/kubectl-table-test
Remove kubectl column output test
2020-03-12 02:08:38 -07:00
Kubernetes Prow Robot
d8077e9ba6
Merge pull request #89048 from aojea/flakymetrics
wait until /metrics are ready on e2e test
2020-03-12 00:26:37 -07:00
Somtochi Onyekwere
ee41c6b1a4 Refactors MakeSecPods function 2020-03-12 07:14:08 +01:00
Jordan Liggitt
a35ca04dd6 Remove kubectl column output test 2020-03-11 22:59:51 -04:00
Li Zhijian
e03385d6ac build/release-images.sh: remove possible duplicate targets
Previously, cmd/kubectl is duplicate as following:
$ make V=1 quick-release-images
...
+++ [0310 11:30:50] Building go targets for linux/amd64:
    cmd/kube-apiserver
    cmd/kube-controller-manager
    cmd/kube-scheduler
    cmd/kube-proxy
    vendor/github.com/onsi/ginkgo/ginkgo
    test/e2e/e2e.test
    cluster/images/conformance/go-runner
    cmd/kubectl
    cmd/kubelet
    cmd/kubectl

Co-Authored-By: Benjamin Elder <bentheelder@google.com>
Suggested-by: Davanum Srinivas <davanum@gmail.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
2020-03-12 10:48:39 +08:00
Srinivasa Satya Pradeep Nekkalapudi
66491d2d89 Add tolerations with effect "NoExecute" and "NoSchedule" to allow schedule of nodelocaldns pods on node pools with taints
Currently if we define taints on all node pools in a cluster then nodelocaldns pods wont get scheduled on those node pools. Also in GKE as the daemonset has reconcile flag set tolerations cannot be added. So adding these tolerations will allow nodelocaldns pods to get scheduled on all node pools.
2020-03-11 18:27:13 -07:00
Kubernetes Prow Robot
562a420d86
Merge pull request #88915 from roycaihw/fix/image-manager-data-race
Fix a data race in kubelet image manager
2020-03-11 15:04:37 -07:00
Kubernetes Prow Robot
c034a145be
Merge pull request #88819 from praseodym/fix-bazel-build
Fix Bazel build
2020-03-11 11:37:36 -07:00
Andrew Sy Kim
366dd4af44 EndpointSlice and Endpoints should treat terminating pods the same
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-11 13:03:18 -04:00
Sandeep Rajan
fcd229e4bd ensure coredns running when migration fails
add an additional check for coredns image sha

add a check to see if migration is required
2020-03-11 11:32:32 -04:00
Ted Yu
ced2948fde Remove wait.Until for running Kubelet Bootstrap
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-03-11 08:30:00 -07:00
Łukasz Osipiuk
6be4d0a705 Bump Cluster-Autoscaler to cluster-autoscaler:v1.18.0-beta.1 2020-03-11 16:16:30 +01:00
Kubernetes Prow Robot
a37d68ec05
Merge pull request #88917 from adelina-t/fix_pod_admit_handler
Implement noopWindowsResourceAllocator
2020-03-11 07:45:37 -07:00
Antonio Ojea
4361f8f052 wait until /metrics are ready on e2e test
Some e2e tests depend on the controller-manager to expose metrics
on the path /metrics.

It may happen that when the test runs, the pod is not available or the
URL not ready, causing it to fail.

Previously, the test were waiting until the pod was running, but we
need to wait until the /metrics URL is ready.
2020-03-11 14:32:03 +01:00
Kubernetes Prow Robot
cb38560422
Merge pull request #89002 from ArchangelSDY/azure-vmss-cache
Fix VMSS cache content
2020-03-11 00:23:35 -07:00
Kubernetes Prow Robot
7989ca4324
Merge pull request #88734 from joelsmith/master
Work-around for missing memory metrics on CRI-O exited containers
2020-03-10 16:21:36 -07:00
Haowei Cai
462b75388f let image cache do sort on write instead of on read to avoid data
race and improve efficienty
2020-03-10 15:33:34 -07:00
Anago GCB
2c26e109b4 CHANGELOG: Update directory for v1.18.0-beta.2 release 2020-03-10 20:46:12 +00:00
Adelina Tuvenie
a9f834d17d Implement noopWindowsResourceAllocator
On Windows, the podAdmitHandler returned by the GetAllocateResourcesPodAdmitHandler() func
and registered by the Kubelet is nil.

We implement a noopWindowsResourceAllocator that would admit any pod for Windows in order
to be consistent with the original implementation.
2020-03-10 21:32:23 +01:00
Kubernetes Prow Robot
0ec85a1467
Merge pull request #88934 from aojea/endpointnolog
Stop flooding the kube-proxy logs on dual-stack because of IPFamily
2020-03-10 12:43:37 -07:00
Kubernetes Prow Robot
c4a7d3cf16
Merge pull request #88903 from claudiubelu/test-images/sample-apiserver-fix
test images: ARG instructions should be first
2020-03-10 11:15:35 -07:00
Kubernetes Prow Robot
307bafb860
Merge pull request #88995 from liggitt/crd-list-conversion
Preserve target apiVersion when decoding into unstructured lists
2020-03-10 09:43:35 -07:00
Jordan Liggitt
fa12441ab9 Preserve target apiVersion when decoding into unstructured lists 2020-03-10 10:31:56 -04:00
Kubernetes Prow Robot
2bacdf8047
Merge pull request #88988 from smarterclayton/ensure_host_network_podips
kubelet: Also set PodIPs when assign a host network PodIP
2020-03-10 06:43:36 -07:00
Dayang Shen
ce3644ca59 Fix VMSS cache content
Using reference to a loop iterator variable is common mistake because it
takes different values in each loop iteration.
2020-03-10 19:17:48 +08:00
Kubernetes Prow Robot
a35f54e3e8
Merge pull request #88982 from aojea/flakyvolumes
e2e: wait for controller manager pod to be ready
2020-03-10 03:29:36 -07:00
Kubernetes Prow Robot
f8ff8f4420
Merge pull request #88641 from antoninbas/fix-regex-in-conformance-tests-runner
Fix default regular expressions in conformance tests runner
2020-03-09 23:33:35 -07:00
Kubernetes Prow Robot
5877945048
Merge pull request #88739 from julianvmodesto/diff-server-side-field-manager
Set field manager for kubectl diff --server-side
2020-03-09 18:57:35 -07:00
Kubernetes Prow Robot
900143c6d4
Merge pull request #88935 from satyasm/kep-local-cidr
Add NodeCIDR for detect-local-mode
2020-03-09 16:37:36 -07:00
Clayton Coleman
c26653ced9
kubelet: Also set PodIPs when assign a host network PodIP
When we clobber PodIP we should also overwrite PodIPs and not rely
on the apiserver to fix it for us - this caused the Kubelet status
manager to report a large string of the following warnings when
it tried to reconcile a host network pod:

```
 I0309 19:41:05.283623    1326 status_manager.go:846] Pod status is inconsistent with cached status for pod "machine-config-daemon-jvwz4_openshift-machine-config-operator(61176279-f752-4e1c-ac8a-b48f0a68d54a)", a reconciliation should be triggered:
   &v1.PodStatus{
           ... // 5 identical fields
           HostIP:                "10.0.32.2",
           PodIP:                 "10.0.32.2",
 -         PodIPs:                []v1.PodIP{{IP: "10.0.32.2"}},
 +         PodIPs:                []v1.PodIP{},
           StartTime:             s"2020-03-09 19:41:05 +0000 UTC",
           InitContainerStatuses: nil,
           ... // 3 identical fields
   }
```

With the changes to the apiserver, this only happens once, but it is
still a bug.
2020-03-09 18:15:32 -04:00
Kubernetes Prow Robot
b1c1187cca e2e: wait for controller manager pod to be ready
The MetricsGrabber may use the controller-manager pod
to gather metrics, however, it doesn't wait until
it is ready to serve, failing the test if this is the
case.

We wait until the controller-manager pod is running
before trying to get metrics from it.
2020-03-09 22:04:16 +01:00
Satyadeep Musuvathy
e053fdd08a Add NodeCIDR for detect-local-mode 2020-03-09 13:44:34 -07:00
Monis Khan
a38071cc81
Allow system:serviceaccounts to read the SA discovery endpoints
This change allows all service accounts to read the service account
issuer discovery endpoints.

This guarantees that in-cluster services can rely on this info being
available to them.

Signed-off-by: Monis Khan <mok@vmware.com>
2020-03-09 13:40:46 -04:00
Kubernetes Prow Robot
0bb125e731
Merge pull request #87487 from skilxn-go/master
Move TaintBasedEvictions feature gates to GA
2020-03-09 09:03:45 -07:00
Kubernetes Prow Robot
381a372455
Merge pull request #88879 from JoshVanL/88878-apiserver-webhook-config-panic
Checks error for loading audit webhook config to prevent panic
2020-03-09 06:05:40 -07:00
mosesyou
d874275fb7 Add unit test TestListPlugins for the scheduler 2020-03-09 15:33:42 +08:00
skilxn-go
6b8fc8dc5e Move TaintBasedEvictions feature gates to GA 2020-03-09 10:49:00 +08:00
Kubernetes Prow Robot
5383e01d2a
Merge pull request #88952 from smarterclayton/fix_reason
test: Detect flakes caused by container teardown races on CRI
2020-03-08 17:55:34 -07:00
Clayton Coleman
d80981b657
test: Detect flakes caused by container teardown races on CRI
CRI returns a different reason than the dockershim, and we must also
catch the symptoms of https://github.com/kubernetes/kubernetes/issues/88766
in that environment.
2020-03-08 16:21:57 -04:00
drfish
f4da086cbe Move resource methods from e2e fw to e2e resource fw 2020-03-08 15:27:49 +08:00
Kubernetes Prow Robot
672aa55ee4
Merge pull request #87777 from dbenoit17/master
fix range copy issue
2020-03-07 08:25:34 -08:00
Kubernetes Prow Robot
e71ff9e5e6
Merge pull request #88916 from dims/use-go-bin-data-from-vendor
Use go-bindata built from vendor/
2020-03-07 06:31:34 -08:00
Antonio Ojea
df58c042a8 metaproxier logging for endpoints ipfamily
The kube-proxy metaproxier implementations tries to get the IPFamily
from the endpoints, but if the endpoints doesn't contains an IP
address it logs a Warning.

This causes that services without endpoints keep flooding the logs
with warnings.

We log this errors with a level of Verbosity of 4 instead of a Warning
2020-03-07 11:42:02 +01:00
Kubernetes Prow Robot
71ad0a9020
Merge pull request #88875 from apelisse/apply-no-op
SSA: Applying same object twice should be a no-op the second time
2020-03-07 01:13:34 -08:00
Kubernetes Prow Robot
b30c9a3aba
Merge pull request #88929 from liggitt/expansions
client-go: plumb context to expansions methods
2020-03-06 20:35:34 -08:00