Commit Graph

88223 Commits

Author SHA1 Message Date
Antoine Pelisse
f2b21f08d9 kubectl-diff: Return non-1 errors on kubectl failures
Currently, diff AND kubectl can return 1 errors either when diff finds
differences, or when kubectl fails something. It also prints an ugly
error when diff finds a differences, since 1 is treated as an error.

Two things this PR does:

1. If diff returns 1, then do not treat it as an error, and exit with
exit code 1. It no longer prints the ugly error.

2. Kubectl errors are +1'd so that they never return 1 which shouldn't
be considered an error.

We need to update the documentation accordingly, to mention that
`KUBECTL_EXTERNAL_DIFF` programs must also follow the convention of
using one as their exit code for changes detected.
2020-01-21 14:32:18 -08:00
Davanum Srinivas
bb587690fd
Default the --enable-cadvisor-endpoints flag to disabled
As part of #68522, Switching off the cAdvisor v1 Json API that we expose
directly. These include /stats/, /stats/container, /stats/{podName}/{containerName},
and /stats/{namespace}/{podName}/{uid}/{containerName}
2020-01-21 17:30:46 -05:00
Yu Liao
368fe70aed bumped pause-win to 1.1.0 2020-01-21 13:42:00 -08:00
Kubernetes Prow Robot
c9b4cf3d25
Merge pull request #87342 from Huang-Wei/move-predicates-to-kubelet
Move GeneralPredicates logic to kubelet.
2020-01-21 12:58:47 -08:00
Kubernetes Prow Robot
95fcc5f777
Merge pull request #87072 from fenggw-fnst/work
Fix typo in comments for func GetFullContainerName
2020-01-21 12:58:34 -08:00
Daniel Smith
24314d228c fix flaky test 2020-01-21 12:27:59 -08:00
Anago GCB
c30f4489b4 Update CHANGELOG-1.15.md for v1.15.9. 2020-01-21 18:09:13 +00:00
Anago GCB
781f51c22d Update CHANGELOG-1.16.md for v1.16.6. 2020-01-21 18:08:30 +00:00
Anago GCB
cbc089a984 Update CHANGELOG-1.17.md for v1.17.2. 2020-01-21 18:07:39 +00:00
Wei Huang
3f8b202266
Move GeneralPredicates logic to kubelet. 2020-01-21 09:27:00 -08:00
Kubernetes Prow Robot
37f98ac3b6
Merge pull request #87401 from zouyee/move
Move scheduler's SchedulerExtender interface to core/extenders.go
2020-01-21 09:21:50 -08:00
Kubernetes Prow Robot
c01451585e
Merge pull request #86408 from julianvmodesto/kubectl-ss-dry-run-helper
Support server-side dry-run in cli-runtime REST Helper
2020-01-21 09:21:37 -08:00
Haosdent Huang
50d511d4b8 Deprecate scheduler's framework.plugins.RegistryArgs 2020-01-21 23:50:58 +08:00
Kubernetes Prow Robot
84beab6f26
Merge pull request #87386 from liggitt/local-up-token-signer
Enable bound tokens in local-up-cluster
2020-01-21 06:35:51 -08:00
Kubernetes Prow Robot
29a4b39536
Merge pull request #87382 from yiyang5055/fix-staticcheck
fix static check failure in pkg/controller/disruption and pkg/control…
2020-01-21 06:35:37 -08:00
Antonio Ojea
de57657b2b Self nominate aojea as sig-network-reviewer 2020-01-21 14:31:04 +01:00
zouyee
d6b449b5c7 Move scheduler's SchedulerExtender interface to core/extenders.go
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2020-01-21 20:20:20 +08:00
Anago GCB
2808d7154d Update CHANGELOG-1.18.md for v1.18.0-alpha.2. 2020-01-21 11:18:31 +00:00
Kubernetes Prow Robot
a7b4459cd1
Merge pull request #87379 from hase1128/add-comment-to-several-verify-scripts_3
Add comments in several hack/verify-*.sh(g-r)
2020-01-21 01:30:09 -08:00
Kubernetes Prow Robot
12203f3fd9
Merge pull request #87317 from YuikoTakada/move_skip_e2e_framework
Use e2eskipper package in test/e2e/framework/
2020-01-21 00:15:36 -08:00
Kubernetes Prow Robot
48cb968825
Merge pull request #87297 from alculquicondor/cleanup/get_binder
Replace Scheduler.GetBinder with a method
2020-01-20 21:25:36 -08:00
Lubomir I. Ivanov
261f26075c kubeadm: remove the deprecated GA CoreDNS feature-gate
The CoreDNS GA feature-gate in kubeadm was deprecated since 1.13.
The k8s policy is to remove the gate 2 releases after it transitions
to GA:
https://kubernetes.io/docs/reference/using-api/deprecation-policy/#deprecation

We kept it around for longer to prevent existing setups from breaking
as it caused minimal maintenance overhead.
2020-01-21 04:54:47 +02:00
Kubernetes Prow Robot
9822016bf8
Merge pull request #87397 from klueska/upstream-cpu-manager-set-initial-containers
Initialize CPUManager containerMap to set of initial containers
2020-01-20 17:39:50 -08:00
Kubernetes Prow Robot
98186e00ed
Merge pull request #87335 from dims/remove-docker/docker-references-from-tests
switch to docker command line in tests/e2e_node
2020-01-20 17:39:37 -08:00
YuikoTakada
e5a2aeeae6 Fix static check failures in test/e2e/instrumentation/logging/stackdriver 2020-01-21 00:43:21 +00:00
Kubernetes Prow Robot
e6b5194ec1
Merge pull request #84300 from klueska/upstream-cpu-manager-reconcile-on-container-state
Update logic in `CPUManager` `reconcileState()`
2020-01-20 12:27:37 -08:00
Kevin Klues
bd9d8fa42f Initialize CPUManager containerMap to set of initial containers
A recent change made it so that the CPUManager receives a list of
initial containers that exist on the system at startup. This list can be
non-empty, for example, after a kubelet retart.

This commit ensures that the CPUManagers containerMap structure is
initialized with the containers from this list.
2020-01-20 20:42:29 +01:00
Aldo Culquicondor
eb265bc7db Remove GetBinder member and replace it with a method.
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-20 14:10:02 -05:00
Kubernetes Prow Robot
37ee6425ef
Merge pull request #87255 from klueska/upstream-remove-redundant-active-pods-check
Remove check for empty activePods list in CPUManager removeStaleState
2020-01-20 09:05:50 -08:00
Kubernetes Prow Robot
b869053987
Merge pull request #87253 from SaranBalaji90/update-aws-sdk
Update aws-sdk-go dependency to v1.28.2
2020-01-20 09:05:36 -08:00
Aldo Culquicondor
7a39e1396a Remove unnecessary slow binding test
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-01-20 11:49:45 -05:00
Casey Callendrello
5aacacbdf0 client-go/cache/testing: add ability to simulate watch disruption
This adds ResetWatch() to the FakeControllerSource, which lets the
controller simulate a re-list-and-watch.
2020-01-20 17:46:15 +01:00
Kubernetes Prow Robot
33aa665c34
Merge pull request #87326 from wawa0210/bump-golang-mock
Bump golang/mock version to v1.3.1
2020-01-20 07:25:51 -08:00
Kubernetes Prow Robot
23fa359d6c
Merge pull request #84705 from whypro/cpumanager-panic-master
Return error instead of panic when cpu manager fails on startup.
2020-01-20 07:25:37 -08:00
mattjmcnaughton
73b2d83125
Refactor docker specific oom const out of qos pkg
Previously, `pkg/kubelet/qos` contained two different docker-specific
OOM constants. One set the oom adj for sandbox docker containers and the
other set the oom adj for the docker daemon. Move both to be closer to
their actual usages in `dockershim`.

This change addresses a TODO and leads us towards the overall goal of
making `pkg/kubelet` runtime agnostic except for `dockershim`.
2020-01-20 10:22:31 -05:00
Kevin Klues
7be9b0fe55 Update comments and error messages in the CPUManager 2020-01-20 15:31:01 +01:00
Jordan Liggitt
2a2ce207f2 Enable bound tokens in local-up-cluster 2020-01-20 09:19:37 -05:00
Tomas Smetana
c42e815fb5 Fix multinode storage e2e tests for multizone clusters 2020-01-20 15:01:41 +01:00
Kevin Klues
f2acbf6607 Base CPUManager state reconciliation on container state, not pod state 2020-01-20 13:57:30 +00:00
Kevin Klues
f6cf9b8ce9 Move CPUManager Pod Status logic before container loop 2020-01-20 13:57:30 +00:00
Philipp Stehle
772dbbc7d7 Fix describe of statefulset prints pointer not value 2020-01-20 12:20:24 +01:00
Kubernetes Prow Robot
f680c261e6
Merge pull request #87074 from yuxiaobo96/k8s-staticcheck
fix staticcheck: pkg/volume/awsebs
2020-01-20 03:09:37 -08:00
yuxiaobo
221396ac35 cleanup: delete unused func
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2020-01-20 18:20:57 +08:00
yiyang5055
53aff819e0 fix static check failure in pkg/controller/disruption and pkg/controller/namespace/deletion 2020-01-20 09:10:46 +00:00
yuxiaobo
72f34b817e staticcheck: pkg/volume/fc, pkg/volume/portworx and pkg/volume/vsphere_volume
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2020-01-20 16:47:54 +08:00
Jin Hase
c8df27c2b1 Add comments in several hack/verify-*.sh(g-r) 2020-01-20 17:10:55 +09:00
YuikoTakada
afe3d5f09f Use e2eskipper package in test/e2e/common/ 2020-01-20 07:58:13 +00:00
Mike Spreitzer
1c092bf635 Simplified logic around context cancel, removing bugs
Previously, a `decisionCancel` could overwrite a `decisionReject` or
`decisionExecute`, causing confusion.  Now a request gets exactly one
decision and there is no confusion.

Also added write-once to the promise package and refactored.
2020-01-20 01:58:50 -05:00
Mike Spreitzer
1e170637c3 Refactored QueueSet configuration into two phases
So that errors can be detected before resolving concurrency shares
into concurrency counts.
2020-01-20 01:58:50 -05:00
Mike Spreitzer
ce12105edc Added server-side printers for the API object types for API priority and fairness 2020-01-20 01:49:05 -05:00