Kubernetes Prow Robot
42fa1c081f
Merge pull request #88568 from RainbowMango/pr_cleanup_resource_metrics_ut
...
Clean up duplicate code and remove import cycle.
2020-05-16 16:09:36 -07:00
Kubernetes Prow Robot
7f0c05b909
Merge pull request #90544 from chendave/weight
...
configurable weight on the CPU and memory
2020-05-16 07:36:30 -07:00
Kubernetes Prow Robot
9769e0f5da
Merge pull request #90008 from gavinfish/scheduler-utilparsers
...
Scheduler: remove direct import to /pkg/util/parsers
2020-05-16 07:35:49 -07:00
Kubernetes Prow Robot
ac5a6aced2
Merge pull request #89681 from iobuf/cleanup-kubelet
...
[pkg/kubelet]: make func a little comfortable
2020-05-16 07:35:36 -07:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Davanum Srinivas
9006b2db69
Fix for API change in cadvisor
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:53:03 -04:00
louisgong
260a9005a0
define cloud-provider InstanceMetadata and InstanceMetadataByProviderID function
2020-05-16 14:16:46 +08:00
Kubernetes Prow Robot
e5b8e3ae19
Merge pull request #91106 from RobbinBaauw/fix-fsstats-tag
...
Add inline tag to FsStats
2020-05-15 23:02:32 -07:00
Kubernetes Prow Robot
52ae8b1ebb
Merge pull request #91099 from snowplayfire/skip_unnecessary_scheduling
...
skip unnecessary scheduling attempt when pod has its Finalizers updated
2020-05-15 23:02:22 -07:00
Kubernetes Prow Robot
65f2803c68
Merge pull request #91084 from ahg-g/ahg-affinity2
...
Added pre-processed preferred affinity terms to scheduler's PodInfo type
2020-05-15 23:02:03 -07:00
Kubernetes Prow Robot
738e557f2c
Merge pull request #91083 from KobayashiD27/Add-test-to-scheduler-apis-config-types-test
...
Add test case in scheduler/apis/config/types_test.go to improve the t…
2020-05-15 23:01:49 -07:00
Wei Huang
133a02540f
Move unschedulable Pod to internal schedulingQ synchronously
...
- use in-cache Pod instead of real-time Pod (by calling API server) to mark it as unschedulable
in internal schedulingQ
- remove the backoff logic as now we don't call API server
- the whole logic is changed to a synchronous call
2020-05-15 19:27:28 -07:00
Wei Huang
1b30105dac
Fix scheduler cache inconsistency upon Pods with same name but different UIDs
...
Co-authored-by: Wei Huang <wei.huang1@ibm.com>
Co-authored-by: tianxia52 <871883758@qq.com>
2020-05-15 11:41:54 -07:00
Jordan Liggitt
2408d8101f
Fix kubelet client certificate gauge
2020-05-15 12:57:34 -04:00
cici37
f52636330a
Moving leaderelectionconfig to k8s.io/component-base
2020-05-15 09:08:20 -07:00
Kubernetes Prow Robot
ab207be846
Merge pull request #90608 from huffmanca/update-default-fstype-cinder
...
Updates the fstype of Cinder volumes to be ext4 if nil
2020-05-15 08:57:37 -07:00
Dave Chen
621c73b984
Configurable weight on the CPU and memory
...
This change also make it possible to score the resources beyond the "cpu"
and "memory" which is currently listed in "defaultRequestedRatioResources".
Signed-off-by: Dave Chen <dave.chen@arm.com>
2020-05-15 22:26:30 +08:00
Abdullah Gharaibeh
087839daf7
Added pre-processed preferred affinity terms to scheduler's PodInfo type.
2020-05-15 09:00:56 -04:00
jingxueli
b95191fe10
add test for finalizers
2020-05-15 18:57:09 +08:00
Kubernetes Prow Robot
71277de4d6
Merge pull request #91069 from alculquicondor/bind_ctx
...
Use passed context in default binder
2020-05-15 02:49:28 -07:00
Kubernetes Prow Robot
c453be845a
Merge pull request #91062 from ahg-g/ahg-affinity1
...
Added pre-processed required affinity terms to scheduler's PodInfo type.
2020-05-15 02:49:07 -07:00
Kubernetes Prow Robot
8a9206c9b2
Merge pull request #91046 from wawa0210/remove-beta-os-label
...
kubelet no longer registers "beta.kubernetes.io/os" and "beta.kubernetes.io/arch" node labels to apiserver
2020-05-15 02:48:58 -07:00
Kubernetes Prow Robot
57b79e3fb4
Merge pull request #91037 from Huang-Wei/prefactor-PreemptExtender
...
Refactor preemption extender logic and move SchedulerExtender interface to framework pkg
2020-05-15 02:48:30 -07:00
Kubernetes Prow Robot
95e598586e
Merge pull request #91016 from chendave/nits
...
Fix nits in comments for NodeResources plugins
2020-05-15 02:48:02 -07:00
Kubernetes Prow Robot
78abe8b270
Merge pull request #90978 from brianpursley/kubernetes-89259
...
Changed scheduler to use patch when updating pod status
2020-05-15 02:47:53 -07:00
Kubernetes Prow Robot
f3a8eccd32
Merge pull request #90907 from gnufied/fix-overflow-issue
...
When casting resource.Quantity to int64 it may overflow
2020-05-15 02:47:39 -07:00
Lars Ekman
f54b8f98b9
Filter nodePortAddresses to the proxiers.
...
Log a warning for addresses of wrong family.
2020-05-15 09:54:33 +02:00
Kubernetes Prow Robot
96e13de777
Merge pull request #88980 from tedyu/evict-delay-sorting
...
Delay sorting of evictUnits slice in kuberuntime_gc
2020-05-14 21:24:58 -07:00
hezhizhen
1c84efe0c7
Refine extractFileSpec
2020-05-15 10:18:52 +08:00
Kubernetes Prow Robot
2b00dd8536
Merge pull request #90409 from rphillips/fixes/add_logging_around_pod_container_deletor
...
add logging around pod_container_deletor DeleteContainer
2020-05-14 13:38:58 -07:00
David Eads
4522141f0a
reduce complexity in pdb refactor
2020-05-14 15:25:59 -04:00
Brian Pursley
9eb8e7a6d6
Changed scheduler to use patch when updating pod status to avoid potential conflicts
2020-05-14 15:17:53 -04:00
Kubernetes Prow Robot
5bda0c1b3b
Merge pull request #83726 from cofyc/fix56180
...
scheduler: Move all volume binding code into VolumeBinding plugin
2020-05-14 10:08:23 -07:00
Abdullah Gharaibeh
5e0211c72d
Added pre-processed required affinity terms to scheduler's PodInfo type.
2020-05-14 10:30:42 -04:00
Robbin Baauw
77a2a72541
Add inline tag to FsStats
...
Co-authored-by: Victor Roest <victor@xirion.net>
2020-05-14 14:23:36 +02:00
Dave Chen
6b9fb2c591
Fix nits in comments for NodeResources plugins
2020-05-14 18:45:59 +08:00
Kubernetes Prow Robot
dc1934e078
Merge pull request #90477 from rphillips/feat/add_tracing_to_remote_runtime
...
kubelet: add remote_runtime tracing at log level 10
2020-05-14 00:46:22 -07:00
jingxueli
b1143da370
skip unnecessary scheduling attempt when pod's finalizers change
2020-05-14 15:43:54 +08:00
Kubernetes Prow Robot
f975b4b0df
Merge pull request #91066 from rphillips/fixes/exec-probe_log
...
kubelet: tweak exec-probe log statement to be more concise
2020-05-13 22:14:35 -07:00
Kobayashi Daisuke
96690673c4
Add test case in scheduler/apis/config/types_test.go to improve the test coverage.
2020-05-14 11:24:27 +09:00
Hemant Kumar
75fdb6d554
When casting resource.Quantity to int64 it may overflow
...
We need to ensure that when converting resource.Quantity
to int64 it does not overflow and if it does, then an error is
returned back to the use rather than attempting expansion and
provisioning operations with scaled value.
2020-05-13 21:22:59 -04:00
Kubernetes Prow Robot
0d0c400715
Merge pull request #91004 from cwdsuzhou/May/relplace_log
...
Use klog to replace log to keep them in consistence
2020-05-13 15:59:33 -07:00
Kubernetes Prow Robot
40b0f4f6cb
Merge pull request #90565 from alculquicondor/cleanup-sched-config
...
Remove wrapper around base LeaderElectionConfiguration
2020-05-13 15:59:05 -07:00
Kubernetes Prow Robot
4339ac30a0
Merge pull request #90554 from vboulineau/vboulineau/fix_win_stats_init_containers
...
kubelet: fix `/stats/summary` endpoint on Windows when init-containers are present on the node
2020-05-13 15:58:51 -07:00
Kubernetes Prow Robot
2ca3347dc0
Merge pull request #90499 from knabben/kubelet-testing-flags
...
Deprecating Kubelet not used testing flags
2020-05-13 15:58:37 -07:00
Kubernetes Prow Robot
5a5ae8d6ff
Merge pull request #90350 from ZeroMagic/update_azurefile
...
Switch to use AzureFile management SDK
2020-05-13 15:58:23 -07:00
Wei Huang
eb17b7559c
move SchedulerExtender interface to pkg/scheduler/framework/v1alpha1
2020-05-13 13:09:13 -07:00
Wei Huang
e4f878ea3a
cleanup: use string instead of v1.Node as key of nodeToVictims
2020-05-13 13:08:20 -07:00
Ryan Phillips
348d9941b1
kubelet: tweak exec-probe log statement to be more concise
2020-05-13 11:42:43 -05:00
Aldo Culquicondor
78fca663ce
Use passed context in default binder
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-13 11:36:14 -04:00
wawa0210
54c0f8b677
Remove the 'beta' version of the node label (os and arch types)
2020-05-13 22:51:52 +08:00
Kubernetes Prow Robot
61f00365d4
Merge pull request #91030 from liggitt/node-subject-rules-review
...
Indicate node authorizer does not support rule resolution
2020-05-13 00:19:22 -07:00
Kubernetes Prow Robot
977aeab3e5
Merge pull request #90987 from andrewsykim/service-controller-fixup
...
service controller: clean up unit tests
2020-05-13 00:19:13 -07:00
Kubernetes Prow Robot
fb3009c3c0
Merge pull request #86034 from tahsinrahman/kubeletconfig-tests
...
Add tests for KubeletConfig
2020-05-13 00:18:26 -07:00
Kubernetes Prow Robot
77a86a52c0
Merge pull request #91034 from liggitt/ingress-validation
...
Ingress validation
2020-05-12 21:01:11 -07:00
Kubernetes Prow Robot
592a79cfde
Merge pull request #90972 from squeed/proxy-last-queued-metric
...
proxy: followup to last-queued-change metric
2020-05-12 21:01:01 -07:00
Jordan Liggitt
fd78947489
Indicate node authorizer does not support rule resolution
2020-05-12 20:34:13 -04:00
Jordan Liggitt
1758d17689
Allow resource backends in Ingress
2020-05-12 15:38:19 -04:00
Jordan Liggitt
8f7b8105a1
Remove ingress regex path requirement
2020-05-12 15:38:15 -04:00
mrobson
03892097fc
Set session scanning to manual to avoid discovering all iSCSI devices during login
...
Move session scanning to before if !b.chapSession
2020-05-12 13:55:33 -04:00
Andrew Sy Kim
758c25de2f
service controller: store feature gate in local fields for better testability
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-05-12 13:40:54 -04:00
Michael Gugino
9f80e7a6f8
Allow deletion of pending pods when using PDBS
...
Currently, if you have a PDB set, it is possible for
a pod stuck in pending state to be prevented from
deletion even though there are in fact enough healthy
replicas.
This commit allows pods in Pending state to be removed.
This commit also adds associated unit tests.
related-bug: #80389
2020-05-12 12:44:05 -04:00
Kubernetes Prow Robot
e5aabaec18
Merge pull request #90989 from ahg-g/ahg-err
...
Count NoNodesAvailable scheduling failure as unschedulable instead of error
2020-05-12 08:25:08 -07:00
Kubernetes Prow Robot
70948498bc
Merge pull request #90769 from andrewsykim/service-controller-node-sync
...
service controller: only sync LB node pools when relevant fields change
2020-05-12 03:30:21 -07:00
cici37
fd694fa947
Remove CloudControllerManagerPort to k8s.io/cloud_provider
2020-05-12 01:15:16 -07:00
caiweidong
5ed8fb690c
Use klog to replace log to keep them in consistence
2020-05-12 13:49:10 +08:00
ZeroMagic
01713f2411
chore: set resourceGroup into azure pv annotation
...
Signed-off-by: ZeroMagic <jiliu8@microsoft.com>
2020-05-12 05:34:27 +00:00
Yecheng Fu
85a8740d9b
scheduler/volumebinding: auto-generated files only
2020-05-12 10:13:06 +08:00
Yecheng Fu
c14b749521
scheduler/volumebinding: move all volume binding logic into VolumeBinding plugin
2020-05-12 10:13:05 +08:00
Kubernetes Prow Robot
e26af96b8e
Merge pull request #90951 from mattjmcnaughton/mattjmcnaughton/clarify-dockershim-no-docker-error-message
...
Clarify `kubelet_dockershim_nodocker` error message
2020-05-11 18:08:42 -07:00
Kubernetes Prow Robot
751fe16b93
Merge pull request #90927 from BenTheElder/unit-shmunit
...
remove oom TestStartingWatcher ""unit"" test
2020-05-11 18:08:28 -07:00
Kubernetes Prow Robot
437c2df36f
Merge pull request #90855 from wojtek-t/remove_listwatchuntil
...
Remove ListWatchUntil
2020-05-11 15:22:35 -07:00
Andrew Sy Kim
b3419e0ccf
service controller: remove duplicate unit test TestGetNodePredicate (Test_getNodeConditionPredicate already exists)
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-05-11 16:59:12 -04:00
Andrew Sy Kim
55292cf3b4
service controller: remove pkg/controller dep in unit tests
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-05-11 16:59:12 -04:00
Tim Allclair
029a144ae9
Remove tallclair from some OWNERS files
2020-05-11 11:44:38 -07:00
Abdullah Gharaibeh
c3be8feee6
count no nodes scheduling failure as unschedulable instead of error
2020-05-11 14:07:52 -04:00
Casey Callendrello
042daa24ac
proxy: followup to last-queued-change metric
...
Fixes two small issues with the metric added in #90175 :
1. Bump the timestamp on initial informer sync. Otherwise it remains 0 if
restarting kube-proxy in a quiescent cluster, which isn't quite right.
2. Bump the timestamp even if no healthz server is specified.
2020-05-11 18:48:47 +02:00
Kubernetes Prow Robot
15182dc418
Merge pull request #90897 from tedyu/page-size-unit
...
Append suffix 'i' only if needed
2020-05-11 08:37:51 -07:00
wojtekt
ead12b02fe
Remove ListWatchUntil
2020-05-11 16:34:18 +02:00
Kubernetes Prow Robot
2b2cf8df30
Merge pull request #80700 from mrkm4ntr/add-error-check
...
Add missing error check
2020-05-11 00:37:51 -07:00
Ted Yu
1b9d6f46bf
Append suffix 'i' only if needed
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-05-10 07:36:58 -07:00
mattjmcnaughton
1a63e6fead
Clarify kubelet_dockershim_nodocker
error message
...
Clarify the error message returned when trying to use the docker runtime
on a Kubelet that was compiled without Docker.
We removed the "w/" and "w/o", which can be confusing abbreviations, and
also add slightly more detail on the actual error.
2020-05-10 10:22:56 -04:00
Kubernetes Prow Robot
ba35704b51
Merge pull request #81443 from mikedanese/socks5
...
rest.Config: support configuring an explict proxy URL
2020-05-10 06:05:50 -07:00
Paulo Gomes
6db5b5c50f
Add seccomp least privilege for docker sandbox
2020-05-10 11:52:42 +01:00
Kubernetes Prow Robot
423c17d859
Merge pull request #90086 from rvillablanca/fix/handle-error-parseform
...
Handling error returned by request.Request.ParseForm()
2020-05-09 22:07:50 -07:00
Kubernetes Prow Robot
b5f67110ed
Merge pull request #87746 from mattjmcnaughton/mattjmcnaughton/poc-compiling-kubelet-wo-docker
...
Support compiling Kubelet w/o docker/docker
2020-05-09 12:01:51 -07:00
Zhou Peng
b33e202397
CronJob: cleanup legacy ScheduledJob vars,docs
...
Signed-off-by: Zhou Peng <p@ctriple.cn>
2020-05-10 00:45:21 +08:00
Kubernetes Prow Robot
c1fe194e06
Merge pull request #90771 from alculquicondor/api-comment
...
Clarify usage of MaxSkew and WhenUnsatisfiable
2020-05-09 07:24:18 -07:00
Kubernetes Prow Robot
68ade56a47
Merge pull request #90534 from apelisse/mutatinggcfields-fieldmanager
...
Changes to ManagedFields is not mutation for GC
2020-05-09 07:23:50 -07:00
Kubernetes Prow Robot
ba3bf32300
Merge pull request #90662 from nilo19/cleanup/decouple-cloud-testutils
...
Remove the deps to testutils in pkg/controller/cloud.
2020-05-09 02:17:51 -07:00
Kubernetes Prow Robot
8d718b1ef5
Merge pull request #90731 from deads2k/csr-separate-signer-flags
...
refactor the CSR controller into distinct controllers to allow easy
2020-05-09 00:44:05 -07:00
Benjamin Elder
c6c68a73e1
remove oom TestStartingWatcher ""unit"" test
2020-05-08 23:25:28 -07:00
Kubernetes Prow Robot
a3cf6fc0aa
Merge pull request #90915 from Huang-Wei/remove-enableNonPreempting
...
Remove `enableNonPreempting` field from scheduler codebase
2020-05-08 20:45:51 -07:00
ZeroMagic
f3a64e22d9
chore: switch to use AzureFile management SDK
...
Signed-off-by: ZeroMagic <jiliu8@microsoft.com>
2020-05-09 02:52:51 +00:00
t-qini
fd4f3c6323
Remove the deps of testutils in pkg/controller/cloud.
2020-05-09 10:23:14 +08:00
Wei Huang
e283e73994
Remove enableNonPreempting
field from scheduler codebase
2020-05-08 19:02:51 -07:00
Kubernetes Prow Robot
e6e29fbbc3
Merge pull request #90820 from alculquicondor/score-max-skew
...
Use maxSkew in score calculation
2020-05-08 18:28:19 -07:00
Kubernetes Prow Robot
dc5b9c17f9
Merge pull request #90774 from julianvmodesto/dry-run-feature-ga
...
Mark the server-side dry-run feature as GA
2020-05-08 18:28:05 -07:00
Andrew Sy Kim
80a8a8df1c
service controller: only sync LB node pools when relevant fields change
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-05-08 15:45:24 -04:00
Md Tahsin Rahman
ea15f60328
Add tests for KubeletConfig
2020-05-09 00:06:16 +08:00
Aldo Culquicondor
516c8fbfad
Use maxSkew in score calculation
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-08 09:34:45 -04:00
Kubernetes Prow Robot
90f7ae54ac
Merge pull request #90657 from alculquicondor/default-plugin-args
...
Move Plugin Args defaults to versioned packages
2020-05-08 02:03:42 -07:00
mattjmcnaughton
49fc82f7ab
Ensure we only run the cadvisor/docker
init in !dockerless
...
We do not want to run the `cadvisor/docker` init when we are using the
dockerless build tags. We can ensure this by isolating into a separate
file with the proper build tag constraints.
2020-05-07 17:18:51 -04:00
mattjmcnaughton
29fa1f4566
Fix the verify job
...
Small changes to fix the verify job. Add the proper headers, fix lint
errors, etc...
2020-05-07 17:18:50 -04:00
mattjmcnaughton
b36f637f0d
Add dockerless tags to all files in dockershim
...
As the final step, add the `dockerless` tags to all files in the
dockershim. Using `-tags=dockerless` in `go build`, we can compile
kubelet without the dockershim.
Once cadvisor no longer depends on `docker/docker`, compiling with
`-tags=dockerless` should be sufficient to compile the Kubelet w/o a
dependency on `docker/docker`.
2020-05-07 17:18:50 -04:00
mattjmcnaughton
7fb6c51822
Move DockerLegacyService interface out of pkg/kubelet/dockershim
...
DockerLegacyService interface is used throughout `pkg/kubelet`.
It used to live in the `pkg/kubelet/dockershim` package. While we
would eventually like to remove it entirely, we need to give users some form
of warning.
By including the interface in
`pkg/kubelet/legacy/logs.go`, we ensure the interface is
available to `pkg/kubelet`, even when we are building with the `dockerless`
tag (i.e. not compiling the dockershim).
While the interface always exists, there will be no implementations of the
interface when building with the `dockerless` tag. The lack of
implementations should not be an issue, as we only expect `pkg/kubelet` code
to need an implementation of the `DockerLegacyService` when we are using
docker. If we are using docker, but building with the `dockerless` tag, than
this will be just one of many things that breaks.
`pkg/kubelet/legacy` might not be the best name for the package... I'm
very open to finding a different package name or even an already
existing package.
2020-05-07 17:18:49 -04:00
mattjmcnaughton
34c8f51dcb
Remove all uses of dockershim
from cmd/kubelet
...
We can remove all uses of `dockershim` from `cmd/kubelet`, by just
passing the docker options to the kubelet in their pure form, instead of
using them to create a `dockerClientConfig` (which is defined in
dockershim). We can then construct the `dockerClientConfig` only when we
actually need it.
2020-05-07 17:18:49 -04:00
mattjmcnaughton
e0e6d54cdf
Extract running Dockershim into own file
...
Extract a `runDockershim` function into a file outside of `kubelet.go`.
We can use build tags to compile two separate functions... one which
actually runs dockershim and one that is a no-op.
2020-05-07 17:18:48 -04:00
mattjmcnaughton
53adde65ce
Remove ExperimentalDockershim
from kubelet
...
Remove one of two uses of Dockershim in `cmd/kubelet`. The other is for
creating a docker client which we pass to the Kubelet... we will handle
that refactor in a separate diff.
I'm fairly confident, though need to double check, that no one is
actually using this experimental dockershim behavior. If they are, I
think we will want to find a new way to support it (that doesn't require
using the Kubelet only to launch Dockershim).
2020-05-07 17:18:48 -04:00
Kubernetes Prow Robot
b24eba019d
Merge pull request #90563 from cici37/traint
...
Copy RemoveTaintOffNode logic to k8s.io/cloud-provider
2020-05-07 14:01:42 -07:00
Mike Danese
652a48d2e7
wire up proxier in spdy transport
...
and delete useless function
2020-05-07 09:13:58 -07:00
Aldo Culquicondor
2935480cc8
Move Plugin Args defaults to versioned packages
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-06 18:00:23 -04:00
Aldo Culquicondor
883e4860d3
Clarify usage of MaxSkew and WheUnsatisfiable
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-05-06 13:15:51 -04:00
Kubernetes Prow Robot
fecc66aa1f
Merge pull request #90755 from Huang-Wei/refine-schedQueue-test
...
Refine schedulerQueue test to avoid unneeded locks
2020-05-05 20:03:22 -07:00
cici37
32411016cc
Copy RemoveTaintOffNode logic to k8s.io/cloud-provider
2020-05-05 16:47:09 -07:00
Julian V. Modesto
df0ee9f88b
Mark the server-side dry-run feature as GA
2020-05-05 17:13:24 -04:00
Indeed
3117b6a084
fix case where node exists but shutdown.
2020-05-05 08:57:58 -07:00
Indeed
78ace24670
check node existence before shutdown status.
2020-05-05 08:57:58 -07:00
Indeed
84dfaace5d
add test about shutdown but non-existing node.
2020-05-05 08:51:21 -07:00
David Eads
83035890ad
refactor the CSR controller into distinct controllers to allow easy configuration of multiple signing keys
2020-05-05 10:18:04 -04:00
Wei Huang
8c2a540cdc
Refine schedulerQueue test to avoid unneeded locks
...
- revert PR 88331
- remove createAndRunPriorityQueue()
- PriorityQueue is created and not run by default
- flushXYZ() is called on demand by manipulating FakeClock and Step()
2020-05-05 00:11:04 -07:00
Shihang Zhang
3db7275b54
set proper file permission for projected service account volume
2020-05-04 18:25:23 -07:00
Kubernetes Prow Robot
e8d6d3768e
Merge pull request #90561 from cici37/util
...
Copy patchNodeStatus logic to cloud-provider
2020-05-04 13:46:43 -07:00
Kubernetes Prow Robot
dc6c640a12
Merge pull request #90375 from cici37/removeConfigz
...
move pkg/util/configz to k8s.io/component-base
2020-05-04 13:46:09 -07:00
Vincent Boulineau
3bff11244b
kubelet: fix /stats/summary
endpoint on Windows when init-containers are present on the node
...
Following changes in #87730 , Kubelet is directly hcsshim to gather stats.
However, unlike `docker stats` API that was used before, hcsshim does not
keep information about exited containers.
When the Kubelet lists containers (`docker_container.go:ListContainers()`),
it sets `All: true`, retrieving non-running containers.
When docker stats is called with such container id, it'll return a valid JSON
with all values set to 0. The non-running containers are filtered later on in the process.
When the hcsshim is called with such container id, it'll return an error, effectively
stopping the stats retrieval for all containers.
2020-05-04 14:42:02 +02:00
Kubernetes Prow Robot
594cbdfd19
Merge pull request #89508 from KobayashiD27/test-coverage-up
...
Add test case to improve the test coverage.
2020-05-01 13:00:31 -07:00
Kubernetes Prow Robot
7e627e01ef
Merge pull request #90640 from gongguan/clean-port-flag
...
clean some dead constants
2020-05-01 00:42:22 -07:00
Kubernetes Prow Robot
26ad2c2a47
Merge pull request #90613 from Huang-Wei/cleanup-comments
...
cleanup: remove stale comments
2020-05-01 00:42:03 -07:00
Kubernetes Prow Robot
434b6fb37f
Merge pull request #90578 from wccsama/gc-controller-test
...
use subtests in gc_controller_test.go
2020-05-01 00:41:27 -07:00
Kubernetes Prow Robot
ba43630708
Merge pull request #90475 from alculquicondor/topology-scoring
...
Topology spreading scoring with automatically weighted topologies
2020-05-01 00:40:04 -07:00
Kubernetes Prow Robot
f372c5417b
Merge pull request #90628 from liggitt/pod-ip-status
...
Fix podIP validation
2020-04-30 19:30:07 -07:00
Amim Knabben
fe9eb1ba46
Migrating Kubelet testing flags to configuration
2020-04-30 22:12:39 -04:00
Jordan Liggitt
23e9fb1bb5
Fix podIP validation
2020-04-30 19:49:45 -04:00
Kubernetes Prow Robot
8dd93ca94c
Merge pull request #90309 from alculquicondor/plugin-args-decoding
...
Use internal config types in scheduling plugin args
2020-04-30 05:32:18 -07:00
louisgong
9390ff35a1
clean some dead configs
2020-04-30 20:07:08 +08:00
Kubernetes Prow Robot
8876563700
Merge pull request #90360 from tnozicka/fix-client-ca-reload
...
Fix client-ca dynamic reload in apiserver
2020-04-30 01:10:18 -07:00
wccsama
c776e80109
using case name instead
2020-04-30 13:55:50 +08:00
Kubernetes Prow Robot
863ce9726e
Merge pull request #90295 from tanjunchen/pkg/scheduler/framework/plugins/-20200420
...
pkg/scheduler/framework/plugins/:fix unconsistent comments and make log more clear
2020-04-29 18:30:18 -07:00
cici37
b8bac0206d
Copy patchNodeStatus logic to cloud-provider
2020-04-29 15:51:55 -07:00
Aldo Culquicondor
98d1e241f1
Use internal config types in scheduling plugin args
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-29 17:07:10 -04:00
Aldo Culquicondor
6b153dc920
Add decoding of nested scheduling plugin configs
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-29 17:06:58 -04:00
Wei Huang
79963ac8fb
cleanup: remove stale comments
2020-04-29 13:51:25 -07:00
Christian Huffman
a29fcc679f
Updates the fstype of Cinder volumes to be ext4 if nil
2020-04-29 15:48:25 -04:00
cici37
7f4d19167e
Move pkg/util/configz to k8s.io/component-base
2020-04-29 12:17:25 -07:00
Antoine Pelisse
89b68bacf1
Changes to ManagedFields is not mutation for GC
2020-04-29 09:29:43 -07:00
Tomas Nozicka
b22a170d46
Fix client-ca dynamic reload in apiserver
2020-04-29 16:03:09 +02:00
Aldo Culquicondor
1aaa5fcc80
Topology scoring with dynamically weighted topologies
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-29 09:55:52 -04:00
wccsama
7d45e12523
use sub test in gc_controller_test.go
2020-04-29 11:12:35 +08:00
Kubernetes Prow Robot
961a5ed144
Merge pull request #90380 from spiffxp/import-boss-test-files
...
Update import-boss files to yaml, include test files in CI job
2020-04-28 15:58:24 -07:00
Kubernetes Prow Robot
4099ad6e0d
Merge pull request #90542 from lixiang233/master
...
There's no need to set moveRequestCycle and do broadcast twice.
2020-04-28 12:58:25 -07:00
Aldo Culquicondor
29f5adee7f
Remove wrapper around base LeaderElectionConfiguration
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-28 15:44:35 -04:00
Kubernetes Prow Robot
f7907083c2
Merge pull request #89160 from tedyu/symlink-first-seen
...
Remove potentially unhealthy symlink only for dead containers
2020-04-28 09:58:07 -07:00
Aaron Crickenberger
64c0c4792a
cmd/api/testing no longer overrides pkg's rules
2020-04-28 08:46:49 -07:00
Aaron Crickenberger
c05629eac4
empty forbiddenPrefixes is same as not being there at all
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
a7af20922f
use forbiddenPrefixes instead of allowedPrefixes
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
81881e4a12
prune .import-restrictions
...
specifically:
- cmd/kubeadm/.import-restrictions
- we don't need to explicitly allow k8s.io repos (external or published)
- rm pkg/controller/.import-restrictions
- pkg/client/unversioned was removed in 59042
- pkg/kubectl/.import-restrictions
- pkg/printers is no longer used
- pkg/api was masking all of the pkg/apis prefixes
- rm staging/src/k8s.io/code-generator/cmd/lister-gen/.import-restrictions
- noop / empty file
- test/e2e/framework/.import-restrictions
- we don't need to explicitly allow k8s.io repos (external or published)
2020-04-28 08:41:36 -07:00
Aaron Crickenberger
f306a0dbb4
convert .import-restrictions to yaml
...
yaml has comments, so we can explain why we have certain rules or
certain prefixes
for those files that weren't already commented yaml, I converted them to
yaml and took a best guess at comments based on the PRs that introduced
or updated them
2020-04-28 08:41:36 -07:00
Kubernetes Prow Robot
fabe9cddf1
Merge pull request #90467 from Huang-Wei/honor-runAllFilters
...
Simplify status handling of scheduler RunFilterPlugins
2020-04-27 22:26:43 -07:00
Kubernetes Prow Robot
3c3497bed9
Merge pull request #89981 from gaurav1086/VolumeMode_nil_ptr_check
...
[volume] VolumeMode nil pointer check
2020-04-27 22:26:19 -07:00
Kubernetes Prow Robot
54e1e5b62f
Merge pull request #90527 from alculquicondor/optimize-scoring-map
...
Spreading score optimization: Store ignored instead of qualifying nodes
2020-04-27 19:40:05 -07:00
Kubernetes Prow Robot
df1a4c4e55
Merge pull request #90537 from freehan/enable-externalip
...
Enable externalPolicyForExternalIP by default
2020-04-27 16:28:04 -07:00
Minhan Xia
432ad6c677
enable externalPolicyForExternalIP by default
2020-04-27 14:52:14 -07:00
Kubernetes Prow Robot
e00e89ae1c
Merge pull request #90449 from wojtek-t/remove_events_deprecated_field
...
Remove events deprecated field
2020-04-27 13:40:19 -07:00
Kubernetes Prow Robot
7fdc1275d9
Merge pull request #90377 from cbf123/container_cpuset_fixup_2
...
Fix exclusive CPU allocations being deleted at container restart
2020-04-27 13:40:04 -07:00
Kubernetes Prow Robot
561b2aba94
Merge pull request #90419 from klueska/upstream-update-reusable-cpus-strategy
...
Update strategy used to reuse CPUs from init containers in CPUManager
2020-04-27 12:09:23 -07:00
Chris Friesen
ab5870d808
Fix exclusive CPU allocations being deleted at container restart
...
The expectation is that exclusive CPU allocations happen at pod
creation time. When a container restarts, it should not have its
exclusive CPU allocations removed, and it should not need to
re-allocate CPUs.
There are a few places in the current code that look for containers
that have exited and call CpuManager.RemoveContainer() to clean up
the container. This will end up deleting any exclusive CPU
allocations for that container, and if the container restarts within
the same pod it will end up using the default cpuset rather than
what should be exclusive CPUs.
Removing those calls and adding resource cleanup at allocation
time should get rid of the problem.
Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
2020-04-27 11:36:54 -06:00
Aldo Culquicondor
a9461fe6f5
spreading: Store ignored instead of qualifying nodes
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-27 13:18:34 -04:00
wojtekt
5a9b6a3114
Autogenerated
2020-04-27 18:53:11 +02:00
wojtekt
edc60a970a
Remove deprecated State fiel in EventSeries
2020-04-27 18:53:11 +02:00
lixiang
5844bc3b9f
There's no need to set moveRequestCycle and do broadcast twice.
2020-04-28 00:43:58 +08:00
Kubernetes Prow Robot
64d55ae13b
Merge pull request #90270 from gaurav1086/aws_block_test
...
[Provider/AWS] fix block test
2020-04-27 05:13:29 -07:00
drfish
0b715ea690
Scheduler: remove direct import to /pkg/util/parsers
2020-04-26 23:41:52 +08:00
Kubernetes Prow Robot
36eee3ca8a
Merge pull request #90080 from gaurav1086/gce_nil_ptr_check
...
[GCE] VolumeNode nil check
2020-04-25 12:17:29 -07:00
Kubernetes Prow Robot
52ba6dc560
Merge pull request #89594 from wojtek-t/beta_immutable_secrets
...
Promote Immutable Secrets/ConfigMaps to Beta
2020-04-25 03:17:29 -07:00
Kubernetes Prow Robot
40cb93bf95
Merge pull request #90425 from DavidParks8/daparks/fixacrauth
...
fix: Allow automatic ACR auth in private Azure clouds
2020-04-24 20:43:28 -07:00
David Parks
333b0493fb
fix: ACR auth fails in private azure clouds
2020-04-24 19:13:52 -07:00
Ryan Phillips
aecddc9f13
kubelet: add remote_runtime tracing at log level 10
2020-04-24 17:37:27 -05:00
Kubernetes Prow Robot
7297fbd0ce
Merge pull request #90413 from PurelyApplied/nil-expiry
...
Improve error message when refresh token expiry is nil.
2020-04-24 15:32:07 -07:00
Kubernetes Prow Robot
219f062769
Merge pull request #64829 from dixudx/e2e_hostpath_type
...
fix bug on checking non directory HostPathType and add e2e tests for HostPathType
2020-04-24 15:31:29 -07:00
Wei Huang
92ba2a4e09
Simplify status handling of scheduler RunFilterPlugins
2020-04-24 12:16:42 -07:00
Kubernetes Prow Robot
f8297af392
Merge pull request #90284 from wawa0210/kubelet-nodename-clean
...
Remove duplicate calculation nodename、hostname、hostnameOverridden when kubelet is initialized
2020-04-24 12:15:34 -07:00
Kubernetes Prow Robot
277f7614ea
Merge pull request #90203 from tanjunchen/remove-repeat-test-sche
...
/pkg/scheduler/framework/plugins/ : remove the repeat test example and add an test example
2020-04-24 12:15:20 -07:00
Kubernetes Prow Robot
a9f47c3a70
Merge pull request #90175 from squeed/proxy-last-queued-metric
...
pkg/proxy: add last-queued-timestamp metric
2020-04-24 09:38:22 -07:00
Gaurav Singh
3531283b70
Changed error message
2020-04-24 11:15:48 -04:00
Gaurav Singh
749839c050
Change the error message
2020-04-24 10:48:09 -04:00
tanjunchen
0e38ba0ef6
pkg/scheduler/framework/:fix unconsistent comments and make log more clear
2020-04-24 11:17:11 +08:00
Kubernetes Prow Robot
0c0984abdb
Merge pull request #90385 from neolit123/1.19-remove-kubeadm-from-pkg-api-testing
...
pkg/api/testing: remove kubeadm references
2020-04-23 19:20:21 -07:00
Kubernetes Prow Robot
30cefca5a6
Merge pull request #89128 from vincent178/move-runonce-kubeletconfiguration
...
move runonce from flag to config
2020-04-23 17:20:07 -07:00
wawa0210
40da2c521a
Remove duplicate calculation nodename 、hostname 、hostnameOverridden
2020-04-24 07:49:33 +08:00
Patrick Rhomberg
5ea1cef4c5
gofmt fix.
2020-04-23 23:32:04 +00:00
Patrick Rhomberg
a262b2762a
Improve error message when refresh token expiry is nil.
...
Add test coverage for this case.
2020-04-23 20:52:58 +00:00
Kevin Klues
751b9f3e13
Update strategy used to reuse CPUs from init containers in CPUManager
...
With the old strategy, it was possible for an init container to end up
running without some of its CPUs being exclusive if it requested more
guaranteed CPUs than the sum of all guaranteed CPUs requested by app
containers. Unfortunately, this case was not caught by our unit tests
because they didn't validate the state of the defaultCPUSet to ensure
there was no overlap with CPUs assigned to containers. This patch
updates the strategy to reuse the CPUs assigned to init containers
across into app containers, while avoiding this edge case. It also
updates the unit tests to now catch this type of error in the future.
2020-04-23 20:27:43 +00:00
Kubernetes Prow Robot
775feed217
Merge pull request #90018 from wojtek-t/deprecate_default_conversions
...
Deprecate default conversions
2020-04-23 10:23:10 -07:00
Lubomir I. Ivanov
cbe2add519
pkg/api/testing: remove kubeadm references
...
1. Remove the .import-restrictions file as it's no longer needed
2. Remove the outdated kubeadm GVK from the test map in defaulting_test.go
This test only tests known APIs and maybe at some point kubeadm was
part of that and it was defaulted / fuzzed. This GVK was removed
a long time ago.
2020-04-23 20:13:04 +03:00
Ryan Phillips
a464299e97
add logging around pod_container_deletor DeleteContainer
2020-04-23 09:54:01 -05:00
Kubernetes Prow Robot
3e2ae631b4
Merge pull request #90209 from ZP-AlwaysWin/dev
...
Repair description
2020-04-23 03:57:59 -07:00
Kubernetes Prow Robot
b850b5ce2e
Merge pull request #89222 from fengzixu/master
...
bugfix: initcontainer is also taken into account when calculating resource requests
2020-04-23 00:45:44 -07:00
Kubernetes Prow Robot
29e4e66b59
Merge pull request #90371 from ahg-g/ahg-pinfo
...
Deprecate scheduler's PodLister interface
2020-04-22 23:09:58 -07:00
Di Xu
084fe6de93
fix bug on checking hostpath type file
2020-04-23 10:52:40 +08:00
Kubernetes Prow Robot
15ed3b36d1
Merge pull request #90235 from cici37/addflag
...
Remove CCM dependency pkg/util/flag
2020-04-22 19:22:14 -07:00
Kubernetes Prow Robot
6107b140ae
Merge pull request #90373 from fabiokung/updated-annotations-during-bind
...
kube-scheduler: compatibility with ServerSideApply
2020-04-22 17:03:09 -07:00
Kubernetes Prow Robot
d2dcd6c399
Merge pull request #89896 from carlosedp/fix-89597
...
Add error messages to IPVS module
2020-04-22 17:02:41 -07:00
Kubernetes Prow Robot
fc08288bd9
Merge pull request #89609 from gavinfish/improve-discruption
...
Continue label is no more needed for countHealthyPods()
2020-04-22 17:02:12 -07:00
Kubernetes Prow Robot
43cd2ff239
Merge pull request #89549 from happinesstaker/sa-rotate
...
Monitoring safe rollout of time-bound service account token.
2020-04-22 17:01:58 -07:00
Abdullah Gharaibeh
57585640e8
change scheduler's framework PodLister to PodInfoLister
2020-04-22 19:25:27 -04:00
Kubernetes Prow Robot
9066ee9906
Merge pull request #90330 from cwdsuzhou/April/log_level
...
Increase log level to avoid print binding messages in framework too frequently
2020-04-22 14:03:46 -07:00
Fabio Kung
d341a5b9d3
kube-scheduler: compatibility with ServerSideApply
...
avoid moving Pods that have been assumed back to the scheduling queue in
case they have annotations modified with ServerSideApply, which causes
Pod.ObjectMeta.ManagedFields to be modified automatically
2020-04-22 12:02:40 -07:00
Jiajie Yang
ae0e52d28c
Monitoring safe rollout of time-bound service account token.
2020-04-22 11:59:16 -07:00
Carlos de Paula
b3d84fac52
Add error messages to IPVS module
...
Signed-off-by: Carlos de Paula <me@carlosedp.com>
2020-04-22 15:21:15 -03:00
fengzixu
d54822d193
bugfix: initcontainer wasn't considered when calculate resource request
2020-04-23 02:08:33 +09:00
cici37
15c844031f
Remove CCM dependency pkg/util/flag
2020-04-22 10:06:11 -07:00
Kubernetes Prow Robot
eb50f4dd09
Merge pull request #90319 from ahg-g/ahg-info2
...
Split scheduler's PodInfo into two types, PodInfo and PodQueueInfo
2020-04-22 02:27:52 -07:00
Kubernetes Prow Robot
168686a0ab
Merge pull request #90314 from tangcong/fix-kubelet-staticcheck-err
...
fix kubelet stats staticcheck error
2020-04-21 20:56:05 -07:00
Jie Shen
363bb39142
Use utils.net to parse ports instead of atoi ( #89120 )
2020-04-21 20:55:52 -07:00
caiweidong
171a242e1e
Increase log level to avoid print binding messages in framework too frequently
2020-04-22 11:37:35 +08:00
Abdullah Gharaibeh
a151682887
Split scheduler's PodInfo into two types, PodInfo and PodQueueInfo
2020-04-21 21:45:20 -04:00
Kubernetes Prow Robot
85ee5fdd90
Merge pull request #87743 from u2takey/master
...
log pod event when node not ready
2020-04-21 17:25:52 -07:00
Jordan Liggitt
dab2a830da
Fix conflicts patching scale subresources
2020-04-21 16:36:24 -04:00
Ted Yu
18e9f33fc6
Remove unhealthy symlink only for dead containers
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-21 12:30:51 -07:00
Kubernetes Prow Robot
13561c94e5
Merge pull request #90289 from tanjunchen/fix-comment-20200420
...
pkg/kubelet/remote/remote_runtime.go:fix the incorrect klog comment
2020-04-21 09:17:27 -07:00
Casey Callendrello
2e1a884bf3
pkg/proxy: add last-queued-timestamp metric
...
This adds a metric, kubeproxy_sync_proxy_rules_last_queued_timestamp,
that captures the last time a change was queued to be applied to the
proxy. This matches the healthz logic, which fails if a pending change
is stale.
This allows us to write alerts that mirror healthz.
Signed-off-by: Casey Callendrello <cdc@redhat.com>
2020-04-21 15:19:32 +02:00
Gaurav Singh
d7a59d7694
Code review changes
2020-04-20 23:13:19 -04:00
Gaurav Singh
c41932e919
Code review changes
2020-04-20 23:05:05 -04:00
tangcong
764b902d72
fix ipvs staticcheck error
2020-04-21 07:25:28 +08:00
tangcong
2b984b3e3a
fix kubelet stats staticcheck error
2020-04-21 07:16:58 +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
Kubernetes Prow Robot
d92fdebd85
Merge pull request #89897 from giuseppe/test-e2e-node
...
kubelet: fix e2e-node cgroups test on cgroup v2
2020-04-20 15:54:12 -07:00
marosset
90367729a3
Adding/updating kubelet/kuberuntime tests
2020-04-20 22:25:05 +00: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
18b5c4ddbb
Merge pull request #90283 from gaurav1086/scheduler_cleanup_map_deletion
...
[Scheduler] Improve complexity from O(logN) to O(1)
2020-04-20 10:41:53 -07:00
wojtekt
0360e4d1a1
Promote Immutable Secrets/ConfigMaps feature to Beta
2020-04-20 18:04:43 +02:00
Kubernetes Prow Robot
5655350b2b
Merge pull request #89999 from soltysh/fix_events2
...
If firstTimestamp is not set use eventTime when printing event
2020-04-20 08:45:40 -07:00
Antonio Ojea
e3df13439a
fix service allocation concurrency issues
...
The service allocator is used to allocate ip addresses for the
Service IP allocator and NodePorts for the Service NodePort
allocator. It uses a bitmap backed by etcd to store the allocation
and tries to allocate the resources directly from the local memory
instead from etcd, that can cause issues in environment with
high concurrency.
It may happen, in deployments with multiple apiservers, that the
resource allocation information is out of sync, this is more
sensible with NodePorts, per example:
1. apiserver A create a service with NodePort X
2. apiserver B deletes the service
3. apiserver A creates the service again
If the allocation data of apiserver A wasn't refreshed with the
deletion of apiserver B, apiserver A fails the allocation because
the data is out of sync. The Repair loops solve the problem later,
but there are some use cases that require to improve the concurrency
in the allocation logic.
We can try to not do the Allocation and Release operations locally,
and try instead to check if the local data is up to date with etcd,
and operate over the most recent version of the data.
2020-04-20 09:50:00 +02:00
Antonio Ojea
cb87793d57
Add unit test to portallocator storage
...
Add unit test for the portallocator storage based on
the ipallocator ones.
pkg/registry/core/service/ipallocator/storage/storage_test.go
2020-04-20 09:49:59 +02:00
tanjunchen
21039d5bd3
pkg/kubelet/remote/remote_runtime.go:fix the incorrect klog comment
2020-04-20 09:55:40 +08:00
Gaurav Singh
31afb24244
[Scheduler] Map deletion complexity: log(n) => O(1)
2020-04-19 11:31:55 -04:00
Gaurav Singh
5ed70c66e8
[kubelet] nodestatus: remove slice nil check
2020-04-19 11:16:21 -04:00
Gaurav Singh
903b98d2bf
[AWS] fix block test
2020-04-18 18:56:59 -04:00
Kubernetes Prow Robot
c70e3e93bd
Merge pull request #89845 from yuga711/pvc-pv
...
Added events for failures in PV/PVC processing.
2020-04-18 02:51:35 -07:00
marosset
03479e4d12
kubelet - adding pod annotations to various image calls to get runtime-handler info to CRI
2020-04-17 23:57:09 +00:00
Jayasekhar Konduru
5a4f1be19d
Added events for failures in PV/PVC processing:
...
- PV has a dangling reference to a PVC
- PVC is trying to bind to a PV that already references a different PVC
Change-Id: Ic509d39808763149b02b4dd52347edb74a8803fd
2020-04-16 22:11:02 -07:00
ZP-AlwaysWin
5796b7a32e
Repair description
2020-04-17 09:36:38 +08:00
tanjunchen
6180d701cc
/pkg/scheduler/framework/plugins/ : remove the repeat test example and add an test example
2020-04-17 09:24:45 +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
b4a088f1cf
Merge pull request #88217 from gkarthiks/master
...
fix: golint failures
2020-04-16 08:38:46 -07:00
Rafal Wicha
b511fa8627
Add PodTopologySpread plugin arg types to kube-scheduler.config.k8s.io
2020-04-16 16:26:27 +01:00
Kubernetes Prow Robot
4f2f51602e
Merge pull request #90081 from gaurav1086/linux_nil_ptr_check
...
[LINUX] call T.Fatalf() for nil ptr
2020-04-16 04:55:01 -07:00
Kubernetes Prow Robot
0a7675eddc
Merge pull request #90173 from ialidzhikov/doc/supported-values
...
Fix doc for leader-elect-resource-lock flag
2020-04-15 22:29:02 -07:00
Kubernetes Prow Robot
3a0417cc4b
Merge pull request #81185 from andrewsykim/service-controller-node-resync
...
service controller: add node event handlers for faster LB backend sync
2020-04-15 22:28:44 -07:00
Kubernetes Prow Robot
b35fdbc037
Merge pull request #89904 from alculquicondor/raw-extension-plugin-args
...
Use RawExtension and Object for external and internal, respectively, scheduling plugin args
2020-04-15 15:22:59 -07:00
Kubernetes Prow Robot
1df63e7dc7
Merge pull request #88510 from steveazz/steveazz/68026-rlimit
...
Fix golint issues for `pkg/util/rlimit`
2020-04-15 15:22:45 -07:00
Kubernetes Prow Robot
b86297c837
Merge pull request #89669 from yangkev/yangkev-make-tests-table-driven-patch
...
allow running cronjob controller unit tests individually by name
2020-04-15 13:14:58 -07:00
Kubernetes Prow Robot
ec79307b04
Merge pull request #90057 from ialidzhikov/fix/gcp-ccm
...
Fix Node initialization for GCP cloud provider
2020-04-15 11:36:24 -07:00
ialidzhikov
fa7dadba0f
Fix doc for leader-elect-resource-lock flag
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-04-15 20:39:36 +03:00
Rodrigo Villablanca
1014d307a5
After run ./hack/update-bazel.sh
2020-04-15 09:24:54 -04:00
Kubernetes Prow Robot
28c442ee2f
Merge pull request #90126 from smarterclayton/features_default
...
Promote service exclusion and legacy node role to beta
2020-04-15 01:12:03 -07:00
Kubernetes Prow Robot
d0183703cb
Merge pull request #90059 from ahg-g/ahg-nodeinfo2
...
Cleanup obsolete NodeInfo methods
2020-04-14 17:32:04 -07:00
Kubernetes Prow Robot
344130a574
Merge pull request #89870 from gaurav1086/controller_nil_ptr_check
...
[Controller]: cidr nil ptr dereference
2020-04-14 14:02:17 -07:00
Kubernetes Prow Robot
303a6c7e34
Merge pull request #89996 from KobayashiD27/addTestCaseInSchedulerUtil
...
Add test case in scheduler/util/non_zero_test.go
2020-04-14 12:34:17 -07:00
Kubernetes Prow Robot
6c499314cd
Merge pull request #88480 from savitharaghunathan/kubelet_flag_migration_1
...
Kubelet flag migration - Part 1
2020-04-14 12:33:39 -07:00
Steve Azzopardi
4936cd476b
Fix golint issues for pkg/util/rlimit
...
pkg/util/rlimit/rlimit_linux.go:25:1: exported function RlimitNumFiles should have comment or be unexported
pkg/util/rlimit/rlimit_linux.go:25:6: func name will be used as rlimit.RlimitNumFiles by other packages, and that stutters; consider calling this NumFiles
pkg/util/rlimit/rlimit_unsupported.go:25:1: exported function RlimitNumFiles should have comment or be unexported
pkg/util/rlimit/rlimit_unsupported.go:25:6: func name will be used as rlimit.RlimitNumFiles by other packages, and that stutters; consider calling this NumFiles
Ref: https://github.com/kubernetes/kubernetes/issues/68026
2020-04-14 21:00:41 +02:00
Abdullah Gharaibeh
d6522e0e74
rename framework pkg with schedulerframework for all instances under pkg/kubelet
2020-04-14 14:24:07 -04:00
Kubernetes Prow Robot
105c0c6951
Merge pull request #88970 from mysunshine92/correct-NodeAllocatableRoot
...
fix function NodeAllocatableRoot
2020-04-14 11:04:13 -07:00
ialidzhikov
5c276a451d
Fix Node initialization for GCP cloud provider
...
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2020-04-14 21:01:26 +03:00
Aldo Culquicondor
ce05382b58
Use RawExtension and Object for external and internal scheduling plugin args, respectively
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-14 13:44:42 -04:00
Kubernetes Prow Robot
864b4bcc1e
Merge pull request #90023 from robscott/app-protocol-beta
...
Graduating ServiceAppProtocol to beta
2020-04-13 22:49:11 -07:00
Kubernetes Prow Robot
fca197c748
Merge pull request #90041 from tanjunchen/sche-remove-dependency-001
...
Scheduler:remove direct dependency for pkg/api/testing
2020-04-13 20:01:11 -07:00
Clayton Coleman
d70b31e282
Remove the legacy load balancer exclusion annotation
...
alpha.service-controller.kubernetes.io/exclude-balancer is now
removed, deployers should use
node.kubernetes.io/exclude-from-external-load-balancers.
2020-04-13 21:01:11 -04:00
Clayton Coleman
2369ef090e
Promote service exclusion and legacy node role to beta
...
We did not promote these to beta in 1.18 but will do so in 1.19.
As per the KEP we do not set disable LegacyNodeRoleBehavior to false
until 1.20.
2020-04-13 21:00:57 -04:00
Kubernetes Prow Robot
342d328064
Merge pull request #89934 from tedyu/unregister-plugin
...
Simplify the unregistration of csiplugin
2020-04-13 16:21:11 -07:00
Ted Yu
1001be85ad
Simplify unregistration of csiplugin
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-13 15:04:52 -07:00
vincent178
745b742de5
move runonce from flag to config
2020-04-14 06:00:43 +08:00
Keerthan Reddy,Mala
9b9cf33771
fake remote runtime should call correct method on remove pod sandbox
2020-04-13 14:36:35 -07:00
Keerthan Reddy,Mala
70e2559aca
use runtime sandbox status instead of calling cri
2020-04-13 14:36:34 -07:00
Keerthan Reddy,Mala
c24349e9f2
update the build file for bazel
2020-04-13 14:36:34 -07:00
Keerthan Reddy,Mala
1e42737e58
add unit tests
2020-04-13 14:36:34 -07:00
Keerthan Reddy,Mala
aae8a2847a
Check for sandboxes before deleting the pod from apiserver
2020-04-13 14:36:34 -07:00
Rodrigo Villablanca
ae603b8ef1
Add some testing
2020-04-13 12:47:07 -04:00
Rodrigo Villablanca
0972c9ba4d
Improvements
2020-04-13 12:47:07 -04:00
Rodrigo Villablanca
a68482290d
Handling error returned by request.Request.ParseForm()
2020-04-13 12:47:07 -04:00
Kubernetes Prow Robot
5668dbdc6e
Merge pull request #90099 from tanjunchen/remove-feature
...
pkg/features/:Remove PodShareProcessNamespace feature
2020-04-13 08:58:02 -07:00
Kubernetes Prow Robot
b17ddac4df
Merge pull request #78944 from avorima/golint_fix_job
...
Fix golint errors in pkg/controller/job
2020-04-12 21:57:47 -07:00
tanjunchen
dea7660ccd
pkg/features/:Remove PodShareProcessNamespace feature
2020-04-13 11:06:09 +08:00
Kubernetes Prow Robot
6239abe698
Merge pull request #89225 from andrewsykim/apparmor-api
...
move apparmor annotation constants to k8s.io/api/core/v1
2020-04-12 19:11:50 -07:00
Abdullah Gharaibeh
bed9b2f23b
Cleanup obsolete NodeInfo methods
2020-04-12 18:13:46 -04:00
Kubernetes Prow Robot
cc75cd5aba
Merge pull request #90036 from MikeSpreitzer/fix-psh-name
...
Regularize name of PostStartHook injecting APF config objects
2020-04-11 19:07:47 -07:00
Kubernetes Prow Robot
ee6b88ddf9
Merge pull request #90000 from SataQiu/staging-scheduler-20200409
...
scheduler: remove direct import to pkg/master/ports
2020-04-11 10:46:01 -07:00
Kubernetes Prow Robot
7f1641b8b2
Merge pull request #89914 from SataQiu/dual-stack-20200407
...
Dual-stack: fix the bug that isValidAddress only checks the first IP even a Pod has more than one address
2020-04-11 09:25:48 -07:00
Gaurav Singh
fe8d468633
call T.Fatalf() for nil ptr
2020-04-11 11:15:40 -04:00
Gaurav Singh
e84c415417
Correct error log message
2020-04-11 10:05:29 -04:00
Gaurav Singh
11d54320ac
Correct error message
2020-04-11 10:02:56 -04:00
Gaurav Singh
a2e3a9f37a
gce_correct_nil_check
2020-04-11 09:59:15 -04:00
Kubernetes Prow Robot
eece89a253
Merge pull request #90031 from thockin/proxy-cleanup
...
kube-proxy: Startup and updates logging
2020-04-11 06:23:47 -07:00
Kubernetes Prow Robot
de5508839d
Merge pull request #90037 from angao/redundant
...
remove redundant code
2020-04-11 03:29:47 -07:00
SataQiu
41d3e44a2f
scheduler: remove direct import to pkg/master/ports
...
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-11 13:56:53 +08:00
tanjunchen
5ab543500b
Scheduler:remove direct dependency for pkg/api/testing
2020-04-11 13:16:06 +08:00
Tim Hockin
9551ecb7c3
Cleanup: Change "Ip" to "IP" in func and var names
2020-04-10 15:29:50 -07:00
Tim Hockin
efb24d44c6
Rename iptables IsIpv6 to IsIPv6
2020-04-10 15:29:50 -07:00
Tim Hockin
ef934a2c5e
Add Protocol() method to iptables
...
Enables simpler printing of which IP family the iptables interface is
managing.
2020-04-10 15:29:49 -07:00
Tim Hockin
b874f7c626
Encapsulate sysctl test and log
2020-04-10 15:29:49 -07:00
Tim Hockin
341022f8d1
kube-proxy: log service and endpoint updates
2020-04-10 15:29:44 -07:00
Tim Hockin
37da906db2
kube-proxy: more logging at startup
2020-04-10 15:17:46 -07:00
Kubernetes Prow Robot
c7297a4498
Merge pull request #87646 from SataQiu/staticcheck-20200129
...
Fix staticcheck failures of pkg/probe/http
2020-04-10 14:39:48 -07:00
Kubernetes Prow Robot
95c3a69b19
Merge pull request #89980 from agadelshin/68026-pkg-registry-apps-golint
...
Fix goling issues for pkg/registry/apps
2020-04-10 09:29:47 -07:00
wojtekt
f624314f91
Fix multiple conversion tests
2020-04-10 17:03:35 +02:00
Gaurav Singh
05149450d9
s/t.Errorf/t.Fatalf/
2020-04-10 09:23:35 -04:00
Kubernetes Prow Robot
2f08dc1b87
Merge pull request #90030 from ahg-g/ahg-nodeinfo
...
Scheduler NodeInfo cleanup
2020-04-10 04:11:48 -07:00
Kubernetes Prow Robot
4a63d95916
Merge pull request #89792 from andrewsykim/remove-redundant-len-check
...
proxy: remove redundant length check on local address sets
2020-04-10 00:31:47 -07:00
SataQiu
68ba2fecc1
fix staticcheck failures of pkg/probe/http
2020-04-10 12:14:25 +08:00
Kubernetes Prow Robot
3d350d86d6
Merge pull request #81892 from praseodym/fix-staticcheck-pkg/volume
...
Fix staticcheck failures for pkg/volume/...
2020-04-09 20:03:48 -07:00
Wen Gao
65b43e5d10
remove redundant code
2020-04-10 10:59:30 +08:00
Mike Spreitzer
3501f7c470
Regularize the name of the post-start-hook that injects APF config objects
...
Name it analogously to its companion that launches the consumer of
APF config objects.
2020-04-09 20:59:56 -04:00
Abdullah Gharaibeh
2c51c13620
Scheduler NodeInfo cleanup
2020-04-09 19:03:51 -04:00
Kubernetes Prow Robot
695cd49c40
Merge pull request #89963 from liggitt/hpa-conversion
...
Fix HPA conversion handling of annotations
2020-04-09 14:15:48 -07:00
Mark Janssen
2c61627f8c
Fix staticcheck failures for pkg/volume/...
...
Errors from staticcheck:
pkg/volume/azure_dd/azure_common.go:68:2: var winDiskNumFormat is unused (U1000)
pkg/volume/csi/csi_block.go:97:2: field volumeInfo is unused (U1000)
pkg/volume/csi/csi_block_test.go:56:6: func prepareBlockUnmapperTest is unused (U1000)
pkg/volume/csi/csi_client.go:108:2: const initialDuration is unused (U1000)
pkg/volume/csi/csi_client.go:109:2: const factor is unused (U1000)
pkg/volume/csi/csi_client.go:110:2: const steps is unused (U1000)
pkg/volume/csi/csi_client_test.go:83:8: this value of err is never used (SA4006)
pkg/volume/csi/csi_mounter.go:76:2: field options is unused (U1000)
pkg/volume/csi/csi_mounter_test.go:454:13: this value of err is never used (SA4006)
pkg/volume/csi/csi_plugin_test.go:766:16: this value of err is never used (SA4006)
pkg/volume/csi/csi_plugin_test.go:861:13: this value of err is never used (SA4006)
pkg/volume/csi/csi_plugin_test.go:1186:13: this value of err is never used (SA4006)
pkg/volume/csi/csi_plugin_test.go:1249:13: this value of err is never used (SA4006)
pkg/volume/csi/csi_test.go:305:5: the goroutine calls T.Fatalf, which must be called in the same goroutine as the test (SA2002)
pkg/volume/flexvolume/probe_test.go:67:10: this value of err is never used (SA4006)
pkg/volume/iscsi/iscsi_test.go:95:2: field attachCalled is unused (U1000)
pkg/volume/iscsi/iscsi_test.go:96:2: field detachCalled is unused (U1000)
pkg/volume/iscsi/iscsi_test.go:501:24: this value of err is never used (SA4006)
pkg/volume/iscsi/iscsi_util_test.go:159:2: this value of exist is never used (SA4006)
pkg/volume/local/local.go:351:57: argument devicePath is overwritten before first use (SA4009)
pkg/volume/plugins_test.go:119:2: this value of plug is never used (SA4006)
pkg/volume/plugins_test.go:125:2: this value of plug is never used (SA4006)
pkg/volume/quobyte/quobyte.go:474:23: this result of append is never used, except maybe in other appends (SA4010)
pkg/volume/quobyte/quobyte.go:477:23: this result of append is never used, except maybe in other appends (SA4010)
pkg/volume/quobyte/quobyte.go:480:23: this result of append is never used, except maybe in other appends (SA4010)
pkg/volume/rbd/rbd.go:886:2: field adminSecret is unused (U1000)
pkg/volume/rbd/rbd.go:887:2: field adminID is unused (U1000)
pkg/volume/rbd/rbd.go:888:2: field imageFormat is unused (U1000)
pkg/volume/rbd/rbd.go:889:2: field imageFeatures is unused (U1000)
pkg/volume/storageos/storageos.go:302:2: field secretName is unused (U1000)
pkg/volume/storageos/storageos_util_test.go:43:2: field apiAddr is unused (U1000)
pkg/volume/storageos/storageos_util_test.go:44:2: field apiUser is unused (U1000)
pkg/volume/storageos/storageos_util_test.go:45:2: field apiPass is unused (U1000)
pkg/volume/storageos/storageos_util_test.go:46:2: field apiVersion is unused (U1000)
pkg/volume/util/atomic_writer_test.go:756:49: argument err is overwritten before first use (SA4009)
pkg/volume/util/fsquota/common/quota_linux_common.go:37:2: const acct is unused (U1000)
pkg/volume/util/fsquota/common/quota_linux_common.go:38:2: const enforcing is unused (U1000)
pkg/volume/util/fsquota/project.go:168:31: identical expressions on the left and right side of the '==' operator (SA4000)
pkg/volume/util/fsquota/quota_linux.go:306:50: argument poduid is overwritten before first use (SA4009)
pkg/volume/util/fsquota/quota_linux_test.go:558:16: this value of err is never used (SA4006)
pkg/volume/util/subpath/subpath_linux.go:232:81: argument err is overwritten before first use (SA4009)
pkg/volume/util/subpath/subpath_linux_test.go:579:73: argument err is overwritten before first use (SA4009)
2020-04-09 22:08:07 +02:00
Rob Scott
0493a30805
Graduating ServiceAppProtocol to beta
2020-04-09 12:12:54 -07:00
Kubernetes Prow Robot
0c9245a29f
Merge pull request #89974 from ahg-g/ahg-info
...
scheduler's NodeInfo tracks PodInfos instead of Pods
2020-04-09 09:19:58 -07:00
Kubernetes Prow Robot
e322da5ddc
Merge pull request #88585 from pancernik/plugin-args-api-config
...
Add types for Scheduler plugin args to kube-scheduler.config.k8s.io
2020-04-09 09:19:44 -07:00
Giuseppe Scrivano
26d94ad628
kubelet: do not configure the device cgroup
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 16:18:06 +02:00
Giuseppe Scrivano
a9772b2290
kubelet: adapt cgroup_manager to cgroup v2
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 16:18:04 +02:00
Giuseppe Scrivano
6d16fee229
kubelet: cpu hard capping is supported on cgroup v2
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-09 16:18:03 +02:00
Maciej Szulik
808fb25a9e
If firstTimestamp is not set use eventTime when printing event
2020-04-09 11:21:36 +02:00
Kobayashi Daisuke
e16c4f22dd
Add test case in scheduler/util/non_zero_test.go to improve the test coverage.
2020-04-09 17:42:43 +09:00
SataQiu
e71f84b1c4
dual-stack: fix the bug that isValidAddress only checks the first IP even a Pod has more than one address
...
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-09 16:17:34 +08:00
Abdullah Gharaibeh
b8ddd00312
scheduler's NodeInfo tracks PodInfos instead of Pods
2020-04-08 17:53:20 -04:00
Artur Gadelshin
3ab5ea09ed
Fix goling issues for pkg/registry/apps
2020-04-08 23:12:29 +02:00
Gaurav Singh
2061924b0f
[volume] VolumeMode nil pointer check
2020-04-08 17:09:13 -04:00
Kubernetes Prow Robot
a34b914e82
Merge pull request #89921 from fromanirh/cpumanager-checkpoint
...
cpumanager: drop old custom file backend
2020-04-08 13:37:58 -07:00
Rafał Wicha
c4d20ca8a8
Add types for Scheduler plugin args to kube-scheduler.config.k8s.io
2020-04-08 20:23:56 +01:00
HARISH KUNA
79f3f6e9b1
Test dropped round-trip annotations in HPA conversion
2020-04-08 11:16:15 -04:00
Jordan Liggitt
eb69ac30da
Drop round-trip annotations in HPA conversion
2020-04-08 11:16:15 -04:00
Kubernetes Prow Robot
0926c9c476
Merge pull request #89131 from cwdsuzhou/March/expose_scheduler_metric
...
Expose scheduler metric to make it possible for plugins to use it
2020-04-08 04:25:43 -07:00
Kubernetes Prow Robot
7061dddf26
Merge pull request #88521 from mattjmcnaughton/mattjmcnaughton/add-error-testing-image-service
...
Add error path testing to image handling by `kubeGenericRuntimeManager`
2020-04-07 22:45:43 -07:00
Kubernetes Prow Robot
1edbfe1745
Merge pull request #89908 from alculquicondor/fix_cache
...
Skip updating scheduler cache on pod update if the node was deleted
2020-04-07 16:46:06 -07:00
Kubernetes Prow Robot
007f7ae7dc
Merge pull request #89912 from ahg-g/ahg-fwk
...
Move scheduler's NodeInfo and Listers types to framework pkg
2020-04-07 12:49:57 -07:00
Aldo Culquicondor
e75b5dcfe4
Skip updating cache on pod update if the node was deleted
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-04-07 13:24:42 -04:00
Francesco Romani
623587ec8b
cpumanager: test: add missing helper
...
add back the missing AssertStateEqual helper;
it is needed by some tests we still want to run.
Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-04-07 16:59:07 +02:00
Abdullah Gharaibeh
a5d8172715
move nodeinfo type to framework pkg
2020-04-07 10:25:24 -04:00
Francesco Romani
be0fe3df9b
cpumanager: drop old custom file backend
...
The cpumanager file-based state backend was obsoleted since few
releases, aving the cpumanager moved to the checkpointmanager common
infrastructure.
The old test checking compatibility to/from the old format is
also no longer needed, because the checkpoint format is stable
(see
https://github.com/kubernetes/kubernetes/tree/master/pkg/kubelet/checkpointmanager ).
Signed-off-by: Francesco Romani <fromani@redhat.com>
2020-04-07 13:24:48 +02:00
caiweidong
bbaa76c8f5
Expose scheduler metric register function to make it possible for plugins to use it
2020-04-07 19:07:30 +08:00
leiiwang
c6c18c8fed
event pod event when node not ready
2020-04-07 18:24:00 +08:00
Kubernetes Prow Robot
cabf5d1cdc
Merge pull request #89350 from SataQiu/fix-kube-proxy-20200323
...
kube-proxy: treat failure to bind to a port as fatal
2020-04-06 17:47:20 -07:00
Kubernetes Prow Robot
4b56705883
Merge pull request #89713 from hprateek43/channel_migration
...
Internal channels for scheduler
2020-04-06 15:42:23 -07:00
Kubernetes Prow Robot
037db1cb6c
Merge pull request #89687 from dims/update-docker-dependency
...
Update docker dependency and remove deprecated method use
2020-04-06 15:42:14 -07:00
Kubernetes Prow Robot
8cdf21ab4c
Merge pull request #86409 from sshukun/fix-golint
...
Fix go-lint issues in package pkg/kubelet/checkpointmanager/testing/example_checkpoint_formats/v1
2020-04-06 15:42:01 -07:00
Kubernetes Prow Robot
0d8b4b5df4
Merge pull request #85994 from coderanger/patch-1
...
Tiny typo in a comment.
2020-04-06 15:41:47 -07:00
Kubernetes Prow Robot
9441df3aad
Merge pull request #89808 from fuweid/close-resize-chan
...
remotecommand: close resize channel for notification
2020-04-06 13:47:46 -07:00
Wei Fu
d2b59f10c5
remotecommand: close resize channel for notification
...
Remotecommand package should notify executor by closing resizeChan.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2020-04-06 23:32:23 +08:00
Andrew Sy Kim
2e56866c97
move apparmor annotation constants to k8s.io/api/core/v1
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-04-06 10:22:04 -04:00
Gaurav Singh
4cbdb7bf97
[Controller]: cidr nil ptr dereference
2020-04-05 19:03:07 -04:00
Kubernetes Prow Robot
4d0e86f0b8
Merge pull request #89823 from gongguan/fix-89729
...
Do not forget recording loaded modules
2020-04-04 17:57:46 -07:00
louisgong
619f657b15
add loaded module
2020-04-04 08:49:19 +08:00
Kubernetes Prow Robot
d911254deb
Merge pull request #89704 from liggitt/gnostic
...
github.com/googleapis/gnostic v0.4.1
2020-04-03 14:19:46 -07:00
Harsh Singh
015d06bf41
Internal channels for scheduler
2020-04-04 02:30:16 +05:30
Davanum Srinivas
7368359782
Stop using deprecated method
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-03 15:48:32 -04:00
Kubernetes Prow Robot
60df45fa55
Merge pull request #89768 from andyzhangx/update-max-disk-count2
...
fix: get attach disk error due to missing item in max count table
2020-04-03 08:33:45 -07:00
Kubernetes Prow Robot
873fe1478a
Merge pull request #89207 from wccsama/service-controller-test
...
clean up the awkward pattern in service_controller_test
2020-04-03 02:09:46 -07:00
Kubernetes Prow Robot
b030be376b
Merge pull request #89581 from Wenfeng-GAO/simplify
...
simplify code in topologymanager
2020-04-02 23:07:46 -07:00
Kubernetes Prow Robot
adcbe470d7
Merge pull request #89619 from mattjmcnaughton/mattjmcnaughton/delete-unused-builder-type
...
Delete unused `Builder` type from `kubelet.go`
2020-04-02 21:40:31 -07:00
Kubernetes Prow Robot
b215be875c
Merge pull request #89530 from tklauser/use-bits-onescount
...
Use OnesCount8 from math/bits to implement countBits
2020-04-02 21:40:13 -07:00
Kubernetes Prow Robot
dd35908c7f
Merge pull request #89298 from gavinfish/scheuler-config-alph1
...
Remove kubescheduler.config.k8s.io/v1alpha1
2020-04-02 21:39:59 -07:00
Kubernetes Prow Robot
01df16aee8
Merge pull request #89794 from msau42/cleanup-logs
...
Clean up event messages for errors.
2020-04-02 19:04:09 -07:00
Kubernetes Prow Robot
69681d7df8
Merge pull request #89286 from uzuku/mar-fix-nil-pointer-in-format
...
Handle nil pod in pod format
2020-04-02 19:04:00 -07:00
Kubernetes Prow Robot
489d3712ea
Merge pull request #89612 from SataQiu/fix-20200328
...
Dual-stack: fix the bug that Service clusterIP does not respect specified ipFamily
2020-04-02 17:23:46 -07:00
Michelle Au
63ee9b3f4f
Clean up event messages for errors.
...
Change-Id: Ib70b50e676b917c4d976f32ee7a19f8fc63b6bc6
2020-04-02 15:25:36 -07:00
Andrew Sy Kim
5169ef5fb5
proxy: remove redundant length check on local address set
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-04-02 16:06:51 -04:00
Kubernetes Prow Robot
e8a24cb7f4
Merge pull request #89703 from ahg-g/ahg-podinfo
...
Rename scheduler/nodeinfo pkg to scheduler/types
2020-04-02 12:43:11 -07:00
Kubernetes Prow Robot
4e6a12223b
Merge pull request #89567 from giuseppe/cgroupv2-unit-test
...
kubelet: add tests for cgroup v2 conversions
2020-04-02 12:42:52 -07:00
Kubernetes Prow Robot
bbe5594409
Merge pull request #89296 from danwinship/random-emptily
...
Don't log whether we're using iptables --random-fully
2020-04-02 12:42:24 -07:00
andyzhangx
9b14d44aa5
fix: update max azure disk max count
2020-04-02 13:44:23 +00:00
Noah Kantrowitz
14969831e9
Apply the same style of fix as #87913 but for HTTP methods too.
...
Go does not validate HTTP methods beyond len!=0 and that they don't contain HTTP meta chars like a newline. Also to using string sets instead of maps.
2020-04-02 02:15:04 -07:00
Kubernetes Prow Robot
2fd8debe9b
Merge pull request #87926 from fedepaol/agnostsctp
...
Preliminary SCTP connectivity tests
2020-04-02 02:12:24 -07:00
wccsama
8daf9ec2d4
clean up the pattern
2020-04-02 15:04:58 +08:00
Kubernetes Prow Robot
98e65951dc
Merge pull request #89300 from huffmanca/expand_pvc_validation_message
...
Expand the PVC validation messages
2020-04-01 22:15:19 -07:00
Kubernetes Prow Robot
ad4bd386eb
Merge pull request #86752 from SataQiu/fix-kubelet-20191231
...
Add error handler for rlimit.RlimitNumFiles
2020-04-01 22:14:38 -07:00
Kubernetes Prow Robot
c2ae0bd763
Merge pull request #74073 from Nordix/issue-70020
...
Issue #70020 ; Flush Conntrack entities for SCTP
2020-04-01 22:14:24 -07:00
SataQiu
871b90ba23
kube-proxy: add '--bind-address-hard-fail' flag to treat failure to bind to a port as fatal
...
Signed-off-by: SataQiu <1527062125@qq.com>
2020-04-02 13:13:10 +08:00
Kubernetes Prow Robot
8d773421ee
Merge pull request #80973 from xiaoanyunfei/bugfix/orphan-volume
...
fix orphaned pod flexvolume can not be cleaned up
2020-04-01 20:50:23 -07:00
Hemant Kumar
6362a616ec
Force sgid bit to be off before checking volume permission
2020-04-01 11:20:38 -04:00
Sascha Grunert
2dfb22b5b7
Remove unnecessary sprintf in node status tests
...
There is no invocation to sprintf needed for those strings so we can
remove them.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-04-01 14:16:28 +02:00
Andrew Sy Kim
e2bc3a755f
move well-known kubelet cloud provider annotations to k8s.io/cloud-provider ( #88631 )
...
* move well-known kubelet cloud provider annotations to k8s.io/cloud-provider
Signed-off-by: andrewsykim <kim.andrewsy@gmail.com>
* cloud provider: rename AnnotationProvidedIPAddr to AnnotationAlphaProvidedIPAddr to indicate alpha status
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-31 23:01:27 -07:00
Jordan Liggitt
d879965808
Clean up list items listType
2020-03-31 23:08:08 -04:00
Kubernetes Prow Robot
357d3c9f93
Merge pull request #89584 from kevtaylor/kep/VolumeSubpathExpansion-Remove-FeatureGate
...
Remove VolumeSubpathEnvExpansion Feature Gate
2020-03-31 20:03:27 -07:00
Abdullah Gharaibeh
ed3fe054df
move scheduler nodeinfo to pkg/scheduler/types
2020-03-31 21:02:09 -04:00
Kubernetes Prow Robot
dda530cfb7
Merge pull request #89665 from alculquicondor/per_node_filter_spreading
...
Optimize topology spreading filter
2020-03-31 16:43:41 -07:00
Aldo Culquicondor
93fc02cf54
Set initial map size
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-31 15:48:34 -04:00
Aldo Culquicondor
65d9f81758
Replace lock with atomic updates in spreading filter
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-31 15:48:32 -04:00
Aldo Culquicondor
275da7afc0
Benchmark for topology spreading filter
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-31 15:12:22 -04:00
Kubernetes Prow Robot
1168b4b812
Merge pull request #88006 from tedyu/socket-path
...
Unregister csiplugin even if socket path is gone
2020-03-31 10:54:40 -07:00
Ted Yu
c7bde41478
Unregister csiplugin even if socket path is gone
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-03-31 06:57:05 -07:00
Kubernetes Prow Robot
2590f6cc77
Merge pull request #89435 from humblec/correct
...
Clean some code paths and correct static errors
2020-03-31 05:14:40 -07:00
Kubernetes Prow Robot
9f7aaf4174
Merge pull request #89654 from thockin/proxy-cleanup
...
Proxy cleanup
2020-03-31 03:14:41 -07:00
Zhou Peng
930bedf144
[pkg/kubelet]: make func a little comfortable
...
This func has only 1 argument, don't wrap it across multiple lines
Signed-off-by: Zhou Peng <p@ctriple.cn>
2020-03-31 16:47:32 +08:00
Kubernetes Prow Robot
203d1035c0
Merge pull request #89636 from dims/avoid-internal-api-in-streaming-packages
...
Avoid internal api in streaming packages
2020-03-30 17:09:11 -07:00
Kubernetes Prow Robot
f95b9fa00f
Merge pull request #89116 from rikatz/issue89109
...
Update ipvs library to the new repo and upgrade library version
2020-03-30 15:50:40 -07:00
Kevin Yang
58a21399c5
wrap table driven tests in t.Run to allow running individual tests
...
This makes debugging individual test cases much easier. For example:
go test -p 1 ./pkg/controller/cronjob -run TestSyncOne_Status/prev_ran_but_done,_is_time,_past_deadline -v
2020-03-30 14:58:28 -07:00
Tim Hockin
15632b10cb
Clean up kube-proxy metrics startup
2020-03-30 10:29:14 -07:00
Tim Hockin
8747ba9370
Clean up kube-proxy healthz startup
...
Make the healthz package simpler, move retries back to caller.
2020-03-30 10:29:14 -07:00
Kubernetes Prow Robot
59c66dab8c
Merge pull request #89487 from alculquicondor/per_node_spreading
...
Optimize preferred spreading for hostname topology
2020-03-30 08:21:54 -07:00
Davanum Srinivas
a1bceb8915
add import restrictions
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-30 10:45:22 -04:00
Kubernetes Prow Robot
e178cacb97
Merge pull request #89589 from jsafrane/fix-node-startup
...
Wait for APIServer 'ok' forever during CSINode initialization during Kubelet init
2020-03-30 07:02:08 -07:00
Humble Chirammal
31b837b420
Clean some code paths and correct static errors
...
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2020-03-30 17:34:06 +05:30
Kubernetes Prow Robot
a329e67922
Merge pull request #89511 from andyzhangx/sharedisk
...
feat: add azure shared disk support
2020-03-29 17:29:53 -07:00
Davanum Srinivas
765e926d35
Avoid using internal packages for streaming/ package
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-29 18:42:27 -04:00
andyzhangx
51e0bd2480
feat: add azure shared disk support
...
fix comment
2020-03-29 09:35:15 +00:00
SataQiu
b66fd46cd5
fix the bug that Service clusterIP does not respect specified ipFamily
...
Signed-off-by: SataQiu <1527062125@qq.com>
2020-03-29 17:19:52 +08:00
mattjmcnaughton
6b5b8bb186
Delete unused Builder
type from kubelet.go
...
As far as I can tell, nothing uses this type. As a result, it doesn't
really provide any benefit, and just clutters `kubelet.go`.
There's also the risk of it falling out of date with `NewMainKubelet`,
as nothing enforces `NewMainKubelet` being of the `Builder` type.
2020-03-28 20:04:58 -04:00
drfish
251706ceb4
Continue label is no more needed for countHealthyPods()
2020-03-28 09:57:25 +08:00
Kubernetes Prow Robot
79bf624746
Merge pull request #89583 from liggitt/bound-token-grace-period
...
Consider future deletionTimestamps when validating bound tokens
2020-03-27 17:12:25 -07:00
Kubernetes Prow Robot
fca2963aa2
Merge pull request #89540 from dashpole/fix_metric
...
Fix cpu resource metric type by changing to counter
2020-03-27 14:36:07 -07:00
Jordan Liggitt
5125310023
Consider future deletionTimestamps when validating bound tokens
2020-03-27 14:37:33 -04:00
Jan Safranek
8bdbd4d683
Fix CSINodeInfo startup
...
To speed up unit tests and add more observability when things go wrong.
2020-03-27 18:29:34 +01:00
David Zhu
8205f815fb
Wait for APIServer 'ok' forever during CSINode initialization during Kubelet init
2020-03-27 18:27:57 +01:00
Kevin Taylor
9fd48b4039
Remove VolumeSubpathEnvExpansion Feature Gate
2020-03-27 16:28:33 +00:00
Wenfeng-GAO
1aebbee7da
simplify code in topologymanager
2020-03-28 00:04:51 +08:00
Giuseppe Scrivano
c4429d8bd4
kubelet: add tests for cgroup v2 conversions
...
follow-up for https://github.com/kubernetes/kubernetes/pull/85218
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-27 13:50:57 +01:00
Kubernetes Prow Robot
123691bd93
Merge pull request #89231 from andrewsykim/e2e-framework-ssh
...
e2e/framework: implement ssh exec internally
2020-03-26 17:24:23 -07:00
Kubernetes Prow Robot
99d0559ab4
Merge pull request #89172 from jsafrane/fix-mount-opts
...
Fix mountOptions in iSCSI and FC volume plugins
2020-03-26 15:58:23 -07:00
Kubernetes Prow Robot
708dd2ea7a
Merge pull request #89308 from zshihang/sync
...
sync api/v1/pod/util with api/pod/util
2020-03-26 14:10:49 -07:00
Kubernetes Prow Robot
34c8b26c9f
Merge pull request #85218 from giuseppe/cgroupv2
...
kubelet: add initial support for cgroupv2
2020-03-26 14:10:23 -07:00
David Ashpole
86192d4b9a
fix cpu resource metric type by changing to counter
2020-03-26 13:30:36 -07:00
Kubernetes Prow Robot
8aca6dc710
Merge pull request #89142 from zhouya0/fix_printers_ignoring_object_average_value
...
Fix printers ignoring object average value
2020-03-26 12:48:23 -07:00
Aldo Culquicondor
d2b1903149
Calculate scores in parallel on spreading benchmarks
...
This is closer to what happens in the core scheduler
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-26 15:33:50 -04:00
Kubernetes Prow Robot
57144b38eb
Merge pull request #89463 from fxmumu/feature-scheduler-err-handler
...
Remove nested if statement and test it
2020-03-26 11:14:17 -07:00
Kubernetes Prow Robot
4488fd4749
Merge pull request #89053 from bg-chun/move_package
...
migration of re-usable package from pkg/kubelet/cm/cpumanager to pkg/kubelet/cm
2020-03-26 11:14:09 -07:00
Jan Safranek
58129fd12c
Fix mount options in FibreChannel volumes
...
Do not mount volumes in WaitForAttach(), mount them in MountDevice()
instead. They will get proper mount options this way.
2020-03-26 18:01:19 +01:00
Tobias Klauser
811f9d8abf
Use OnesCount8 from math/bits to implement countBits
...
This allows to drop the bitCounts table. Also, bits.OnesCount8 can be
intrinsified to a single instruction on several GOARCHes.
2020-03-26 16:58:48 +01:00
Kubernetes Prow Robot
894916b665
Merge pull request #89459 from chendave/scorer_desc
...
Trival fix: update the desc on the score plugins
2020-03-26 07:56:39 -07:00
Kubernetes Prow Robot
1442df8ab3
Merge pull request #89384 from Huang-Wei/score-printing
...
Print detailed score results on verbose level 10
2020-03-26 07:56:25 -07:00
Ricardo Pchevuzinske Katz
5c48f209a5
Update ipvs library to the new repo and upgrade library version
2020-03-26 11:20:01 -03:00
yameiwang
6783f991c3
fix function NodeAllocatableRoot
2020-03-26 18:48:05 +08:00
Kobayashi Daisuke
9d6235c54e
Add test case to improve the test coverage.
2020-03-26 17:34:38 +09:00
Kubernetes Prow Robot
3cf4832d09
Merge pull request #89320 from andrewsykim/node-controller-fake-client
...
cloud node controller: refactor tests to not depend on controller/testutils
2020-03-25 16:34:25 -07:00
Kubernetes Prow Robot
c4fd09d80a
Merge pull request #89438 from robscott/endpointslice-controller-error-backoff
...
Lengthening initial backoff time for EndpointSlice controller
2020-03-25 14:02:38 -07:00
Rob Scott
94e5537fa0
Lengthening initial backoff time for EndpointSlice controller
...
The EndpointSlice controller has the potential to manage a large number of resources that are updated frequently. Without proper backoffs in place, there is potential for it to unnecessarily overload the API Server with requests. This makes two significant changes: Increasing the base backoff from 5ms to 1s and making all syncs triggered by EndpointSlice changes delayed by at least 1 second to enable batching.
2020-03-25 11:00:00 -07:00
Wei Huang
06f48a988f
Print detailed score results on verbose level 10
2020-03-25 10:46:28 -07:00
Aldo Culquicondor
4b31b55499
Count spreading node matches for hostname topology in Score
2020-03-25 13:29:27 -04:00
fxmumu
8beb2439a0
Remove nested if statement and test it
...
Remove nested if statement in scheduler err handler.
Test scheduler err that node not found.
2020-03-26 00:29:41 +08:00
Kubernetes Prow Robot
d00f9c7c10
Merge pull request #89338 from skilxn-go/AddCompatibilityTestForPluginArgs
...
Add compatibility tests for plugin arguments
2020-03-25 08:49:03 -07:00
Kubernetes Prow Robot
3754aa1f27
Merge pull request #89297 from danwinship/userspace-logging
...
Make userspace proxy logging quieter
2020-03-24 22:37:03 -07:00
Dave Chen
4ab7be43ce
Trival fix: update the desc on the score plugins
...
For whatever the reason, the max score has been updated from "10"
to "100"
2020-03-25 12:09:09 +08:00
Shihang Zhang
b56da85a77
sync api/v1/pod/util with api/pod/util and remove DefaultContainers
2020-03-24 16:42:32 -07:00
Kubernetes Prow Robot
c58a3757cb
Merge pull request #89365 from notpad/feature/zone_label_ga
...
Add check for volume zone GA labels
2020-03-24 15:27:34 -07:00
Kubernetes Prow Robot
89dfebb214
Merge pull request #89359 from gongguan/process
...
eviction by process number
2020-03-24 15:27:25 -07:00
Christian Huffman
cb230dca25
Expand the PVC validation messages
2020-03-24 16:25:37 -04:00
Andrew Sy Kim
f34b32f5d0
cloud node controller: refactor tests to not depend on controller/testutils
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-24 13:36:10 -04:00
Aldo Culquicondor
e902e70d0d
Use sqrt(n) chunk size in pod affinity and core scheduler
2020-03-24 10:29:59 -04:00
Aldo Culquicondor
36efa035e2
Add chunk size option to ParallelizeUntil
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-24 10:29:59 -04:00
skilxn-go
e0adb0ead9
Add compatibility tests for plugin config
2020-03-24 22:17:16 +08:00
notpad
98405a8bd9
Add check for volume zone GA labels
2020-03-24 21:11:25 +08:00
Kubernetes Prow Robot
c441a1a7dc
Merge pull request #85027 from shibataka000/fix-bug-about-unintentional-scale-out-during-updating-deployment
...
Fix HPA bug about unintentional scale out during updating deployment.
2020-03-24 04:50:46 -07:00
Kubernetes Prow Robot
f321d0ed12
Merge pull request #89361 from fuweid/me-use-statsfunc
...
eviction: use previous statsFunc
2020-03-24 00:28:46 -07:00
Kubernetes Prow Robot
907d4c1bb9
Merge pull request #89381 from dashpole/comment_disable_readonly
...
Add comment explaining when to remove cadvisor json endpoints
2020-03-23 20:31:19 -07:00
Kubernetes Prow Robot
62108be6d9
Merge pull request #89370 from ahg-g/ahg-prescore
...
Execute PreScore right before Score instead of after Filter.
2020-03-23 20:31:10 -07:00
louisgong
e56d40d048
remove unused param
2020-03-24 09:25:04 +08:00
louisgong
0efb70c0a2
eviction by process number
2020-03-24 09:25:04 +08:00
Kubernetes Prow Robot
d20b6cd44d
Merge pull request #89252 from odinuge/hugepages-relax-node-validation
...
Relax huge page node validation
2020-03-23 13:52:47 -07:00
David Ashpole
b4ed7273da
add comment explaining when to remove the --enable-cadvisor-json-endpoints
2020-03-23 12:52:00 -07:00
Abdullah Gharaibeh
24fe5a2f72
Moved RunPreScorePlugins to inside prioritizeNodes and RunPreFilterPlugins to inside findNodesThatFitPod.
2020-03-23 11:08:40 -04:00
Abdullah Gharaibeh
f9b650bc98
Scheduler: execute PreScore right before Score instead of after Filter.
2020-03-23 10:59:04 -04:00
Wei Fu
a809aaf03d
eviction: use previous statsFunc
...
No need to use summary to create statsFunc for localStorageEviction.
Just use vals from makeSignalObservations.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2020-03-23 19:11:17 +08:00
Kubernetes Prow Robot
0641e0c6d8
Merge pull request #89059 from chenkaiyue/Reconcile-NoExecute-Taint
...
Reconcile NoExecute Taint
2020-03-23 00:14:45 -07:00
andyzhangx
f889213d38
feat: support Azure shared disk
2020-03-21 13:16:22 +00:00
Kubernetes Prow Robot
173b5ee6f7
Merge pull request #89250 from andyzhangx/disk-version
...
feat: change azure disk api-version
2020-03-21 02:56:57 -07:00
gavinfish
1865a104a9
Remove kubescheduler.config.k8s.io/v1alpha1
2020-03-21 15:11:48 +08:00
Kubernetes Prow Robot
4319ab214f
Merge pull request #89219 from chendave/misspelling
...
Trival fix: update the description on the pod preemption
2020-03-20 17:58:44 -07:00
Kubernetes Prow Robot
0549d0e7db
Merge pull request #88943 from tedyu/visitor-container-type
...
Visitors of Configmaps and Secrets should specify which containers to visit
2020-03-20 09:20:36 -07:00
Ted Yu
e0dbbf0a65
Visitors of Configmaps and Secrets should specify which containers to visit
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-03-20 07:59:44 -07:00
Dan Winship
945d5f8d7d
Make userspace proxy logging quieter
2020-03-20 08:24:02 -04:00
Dan Winship
8edd656238
Don't log whether we're using iptables --random-fully
2020-03-20 08:06:27 -04:00
Kubernetes Prow Robot
ede025af1b
Merge pull request #89232 from apelisse/test-apply-status
...
Use discovery to test apply all status
2020-03-20 03:52:36 -07:00
Uzuku
302cda742a
Handle nil pod in pod format
2020-03-20 15:30:44 +08:00
martin-schibsted
9ba2bd57fb
Improve error message ( #82829 )
...
* Improve error message
* Update pkg/credentialprovider/config.go
Co-Authored-By: Jordan Liggitt <jordan@liggitt.net>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2020-03-20 00:02:36 -07:00
Kubernetes Prow Robot
3d46b7878c
Merge pull request #89018 from abhiraut/npTypes
...
Update code comment for NetworkPolicyPeer
2020-03-19 20:31:04 -07:00
Kubernetes Prow Robot
fe2fdcd695
Merge pull request #89162 from alculquicondor/affinity-less-lock
...
Reduce locking when calculating affinity scores
2020-03-19 15:04:35 -07:00
Kubernetes Prow Robot
e74ad38854
Merge pull request #89013 from dims/copy-jsonlog-from-docker/docker-locally
...
Copy jsonlog from docker/docker locally
2020-03-19 12:08:37 -07:00
Kubernetes Prow Robot
2c8ef3b19d
Merge pull request #89196 from YuikoTakada/fix_non_aschii_pkg_volume_iscsi
...
Fix non-ascii characters in pkg/volume/iscsi/iscsi_util_test.go
2020-03-19 10:28:08 -07:00
Antoine Pelisse
dfe1703ffa
Do not reset managedFields in status update strategy
2020-03-19 09:58:46 -07:00
Andrew Sy Kim
4b9b2d3a86
add comment to deprecate and prevent new use-cases for pkg/ssh
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-03-19 11:43:04 -04:00
Kubernetes Prow Robot
abe4dea072
Merge pull request #89149 from notpad/fix_comment
...
Fix comments
2020-03-19 08:27:23 -07:00
Odin Ugedal
19f0519b2d
Relax huge page node validation
...
A relaxed version was added in 1.18, and this will disable the
validation all together.
2020-03-19 14:09:13 +01:00
Kubernetes Prow Robot
dfb6993947
Merge pull request #89182 from dims/just-use-runtime-numcpu
...
Just use runtime.NumCPU on windows
2020-03-19 06:05:51 -07:00
Kubernetes Prow Robot
fe459b3a67
Merge pull request #89179 from deads2k/fix-ignored-resources
...
don't quota virtual resources by default
2020-03-19 06:05:42 -07:00
Odin Ugedal
2830827442
Add support for removing unsupported huge page sizes
...
When kubelet is restarted, it will now remove the resources for huge
page sizes no longer supported. This is required when:
- node disables huge pages
- changing the default huge page size in older versions of linux
(because it will then only support the newly set default).
- Software updates that change what sizes are supported (eg. by changing
boot parameters).
2020-03-19 13:08:08 +01:00
andyzhangx
12c6c81b1a
feat: change azure disk api-version
2020-03-19 10:51:53 +00:00
zhouya0
6a051b94e7
Fix printers ignoring object average value
2020-03-19 13:35:57 +08:00
Kubernetes Prow Robot
1b3c94b034
Merge pull request #89146 from SataQiu/fix-kube-proxy-20200316
...
comment cleanup for kube-proxy
2020-03-18 22:25:05 -07:00
Kubernetes Prow Robot
de931d569e
Merge pull request #89105 from andyzhangx/upgrade-40.2
...
Upgrade to azure-sdk v40.2.0
2020-03-18 22:24:29 -07:00
Kubernetes Prow Robot
f899ad704a
Merge pull request #89069 from enj/enj/i/drop_password_file
...
Remove support for basic authentication
2020-03-18 22:24:20 -07:00
Kubernetes Prow Robot
34f03ae9d4
Merge pull request #89001 from SataQiu/cleanup-20200310
...
Use utilnet.GetIndexedIP instead of replicating the function locally
2020-03-18 22:23:25 -07:00
zzde
a95d04993a
Fix golint failures in pkg/credentialprovider ( #88860 )
...
* Fix golint failures in pkg/credentialprovider
* improve Comment
* test
2020-03-18 20:10:43 -07:00
Kubernetes Prow Robot
34ad7d1984
Merge pull request #88450 from shikanon/fix/golintTypo
...
fix typos error in handlers_test.go file
2020-03-18 14:24:44 -07:00
Dave Chen
a9d82e7c2a
Trival fix: update the description on the pod preemption
...
`pod` has the field of `NominatedNodeName` which is different
with `NominatedPod`.
2020-03-18 18:23:36 +08:00
Kubernetes Prow Robot
0fd4beb089
Merge pull request #83408 from cmluciano/cml/fixcoretypeslinks
...
core: fix dead links in core api comments
2020-03-18 00:14:47 -07:00
wccsama
3c22575e66
clean up the awkward pattern in service_controller_test
2020-03-18 13:50:36 +08:00
Abhishek Raut
7cab5753de
Update code comment for NetworkPolicyPeer
...
NetworkPolicyPeer in types has an outdated comment from the
times when it only supported ingress rules. Update the comment
to reflect the current usage of the field.
2020-03-17 21:40:18 -07:00
Kubernetes Prow Robot
7d6d4662a9
Merge pull request #88966 from liggitt/require-table-converter
...
Require table converter
2020-03-17 19:28:39 -07:00
Kubernetes Prow Robot
0c8ac83e04
Merge pull request #88871 from dashpole/fix_oom
...
Use the container whose limit is hit for system OOMs
2020-03-17 19:27:54 -07:00
Yuiko Mori
558e8bb199
Fix non-ascii characters in pkg/volume/iscsi/iscsi_util_test.go
2020-03-18 02:14:07 +00:00
Davanum Srinivas
825f99c396
run update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-17 21:26:07 -04:00
Davanum Srinivas
0c52ffe08f
make local copy of JSONLog
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-17 21:25:55 -04:00
Kubernetes Prow Robot
ad2a1054b0
Merge pull request #88717 from mosesyou/dev-boris
...
Add unit test TestListPlugins for the scheduler
2020-03-17 16:21:55 -07:00
Kubernetes Prow Robot
42c94f35a7
Merge pull request #88541 from cmluciano/cml/41ipvsfix
...
ipvs: only attempt setting of sysctlconnreuse on supported kernels
2020-03-17 16:21:28 -07:00
Kubernetes Prow Robot
761c72f691
Merge pull request #88348 from tedyu/image-not-nil
...
Check that ImageInspect pointer is not nil
2020-03-17 16:21:01 -07:00
Kubernetes Prow Robot
ffc87f2d0c
Merge pull request #88266 from mattjmcnaughton/mattjmcnaughton/delete-pluginwatcher-DOS-TODO
...
Delete TODO around implementing rate limiting to protect against DOS
2020-03-17 16:20:34 -07:00
Kubernetes Prow Robot
1827fe444e
Merge pull request #87895 from alexzimmer96/68026-lint-pkg-controller-autoscaler
...
Fix Golint errors in pkg/controller/podautoscaler
2020-03-17 16:19:53 -07:00
Davanum Srinivas
25c3ddf22e
Just use runtime.NumCPU on windows
...
docker folks added NumCPU implementation for windows that
supported hot-plugging of CPUs. The implementation used the
GetProcessAffinityMask to be able to check which CPUs are
active as well.
3707a76921
The golang "runtime" package has also bene using GetProcessAffinityMask
since 1.6 beta1:
6410e67a1e
So we don't seem to need the sysinfo.NumCPU from docker/docker.
(Note that this is PR is an effort to get away from dependencies from
docker/docker)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-17 15:53:52 -04:00
Aldo Culquicondor
d0dc178ab8
Reduce locking when calculating affinity scores
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-17 15:46:01 -04:00
David Eads
6d918517d8
don't quota virtual resources by default
2020-03-17 15:10:23 -04:00
SataQiu
64a496e645
kube-proxy: some code cleanup
2020-03-17 21:46:54 +08:00
Jan Safranek
f60a0c8660
Fix mount options in iSCSI volumes
...
Do not mount volumes in WaitForAttach(), mount them in MountDevice()
instead. They will get proper mount options this way.
2020-03-17 11:37:18 +01:00
Eric Mountain
22e0ee768b
Removes container RefManager
2020-03-16 14:30:57 +01:00
notpad
a043bc438d
Fix comments
2020-03-16 11:58:27 +08:00
Kubernetes Prow Robot
0d85d1629c
Merge pull request #88786 from freehan/externalIP
...
Fix ExternalTrafficPolicy support for Service ExternalIPs
2020-03-14 06:36:35 -07:00
Minhan Xia
068963fc06
add testing
2020-03-13 14:59:40 -07:00
Minhan Xia
d527a09192
add ExternalTrafficPolicy support for External IPs in ipvs kubeproxy
2020-03-13 14:59:39 -07:00
Minhan Xia
efc4b12186
add ExternalTrafficPolicy support for External IPs in iptables kubeproxy
2020-03-13 14:59:39 -07:00
Minhan Xia
df9a567f3f
add feature gate ExternalPolicyForExternalIP for the bug fix
2020-03-13 14:59:39 -07:00
Byonggon Chun
a3047672d0
move pkg/kubelet/cm/cpumanager/containermap to pkg/kubelet/cm/containermap for reusing
...
containerMap is used in CPU Manager to store all containers information in the node.
containerMap provides a mapping from (pod, container) -> containerID for all containers a pod
It is reusable in another component in pkg/kubelet/cm which needs to track changes of all containers in the node.
Signed-off-by: Byonggon Chun <bg.chun@samsung.com>
2020-03-14 02:38:51 +09:00
Aldo Culquicondor
4d6af4d8d8
Set unschedulable Condition after setting nominated Node
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-13 11:02:19 -04:00
andyzhangx
da20cc202f
chore: upgrade to azure-sdk v40.2.0
...
chore: use autorest v0.9.6
fix go module issue
fix go module error
2020-03-13 11:51:25 +00:00
Kubernetes Prow Robot
bce16df824
Merge pull request #89093 from robscott/ingressclass-params-docs
...
Removing ConfigMap as suggestion for IngressClass parameters
2020-03-13 04:24:39 -07:00
kaiyuechen
b3637c9670
Reconcile NoExecute Taint
2020-03-13 11:44:12 +08:00
Kubernetes Prow Robot
3491129d34
Merge pull request #89056 from andrewsykim/epslice-terminating-pod
...
EndpointSlice and Endpoints behavior for terminating pods should be the same
2020-03-12 14:44:38 -07: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
Giuseppe Scrivano
bb5ed1b797
kubelet: add initial support for cgroupv2
...
do a conversion from the cgroups v1 limits to cgroups v2.
e.g. cpu.shares on cgroups v1 has a range of [2-262144] while the
equivalent on cgroups v2 is cpu.weight that uses a range [1-10000].
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-12 08:50:19 +01:00
Monis Khan
df292749c9
Remove support for basic authentication
...
This change removes support for basic authn in v1.19 via the
--basic-auth-file flag. This functionality was deprecated in v1.16
in response to ATR-K8S-002: Non-constant time password comparison.
Similar functionality is available via the --token-auth-file flag
for development purposes.
Signed-off-by: Monis Khan <mok@vmware.com>
2020-03-11 20:55:47 -04: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
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
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
Lars Ekman
aa8521df66
Issue #70020 ; Flush Conntrack entities for SCTP
...
Signed-off-by: Lars Ekman <lars.g.ekman@est.tech>
2020-03-11 09:56:54 +01: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
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
Savitha Raghunathan
3234d34714
moving volume plugin dir to kubelet config - part 1
2020-03-10 16:22:29 -04: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
Jordan Liggitt
96fadf9ed2
Define default table converters for missing resources
2020-03-10 15:22:37 -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
SataQiu
776fa5e76f
use utilnet.GetIndexedIP instead of replicating the function locally
2020-03-10 18:03:53 +08: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
Satyadeep Musuvathy
e053fdd08a
Add NodeCIDR for detect-local-mode
2020-03-09 13:44:34 -07:00
zyu
78e2668539
Delay sorting of evictUnits slice in kuberuntime_gc
...
Signed-off-by: zyu <yuzhihong@gmail.com>
2020-03-09 12:24:42 -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
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
Antonio Ojea
23d9ffd4c8
Add metaproxier unit tests
2020-03-07 00:33:55 +01:00
Laszlo Janosi
1c393c73a6
Change SCTPSupport default value to true
2020-03-06 23:35:15 +01:00
Jordan Liggitt
d8abacba40
client-go: update expansions callers
2020-03-06 16:50:41 -05:00
Kubernetes Prow Robot
f52cbea102
Merge pull request #88910 from liggitt/metadata-context
...
Metadata client: plumb context
2020-03-06 13:18:04 -08:00
Kubernetes Prow Robot
ef672c1c2d
Merge pull request #88678 from verult/slow-rxm-attach
...
Parallelize attach operations across different nodes for volumes that allow multi-attach
2020-03-06 13:17:21 -08:00
Kubernetes Prow Robot
179fe40d06
Merge pull request #88599 from julianvmodesto/scale-ctx-opts
...
Add context and options to scale client
2020-03-06 13:17:08 -08:00
David Ashpole
fc6b4719fd
Use the container whose limit is hit for system OOMs
2020-03-06 11:06:16 -08:00
Jordan Liggitt
04a72d5ef9
client-go metadata: update callers
2020-03-06 11:07:54 -05:00
Christian Huffman
d0890533a9
Updated files after rebase
2020-03-06 08:56:59 -05:00
Hemant Kumar
73611a473f
Fix expected version for csidriver
...
Add a comment about GA feature
2020-03-06 08:21:26 -05:00
Christian Huffman
c6fd25d100
Updated CSIDriver references
2020-03-06 08:21:26 -05:00
Christian Huffman
726af6bd7f
Moved CSIDriver to GA
2020-03-06 08:17:26 -05:00
Kubernetes Prow Robot
5708511499
Merge pull request #88708 from mikedanese/deleteopts
...
Migrate clientset metav1.DeleteOpts to pass-by-value
2020-03-05 23:09:23 -08:00
Cheng Xing
ef3d66b98b
Parallelize attach operations across different nodes for volumes that allow multi-attach
2020-03-05 22:22:05 -08:00
Kubernetes Prow Robot
cd0057c16a
Merge pull request #88876 from nolancon/none-policy-fix
...
Topology Manager none policy bug fix
2020-03-05 21:40:33 -08:00
Kubernetes Prow Robot
b0f793a94c
Merge pull request #88870 from alculquicondor/disallow_dup_plugin_config
...
Disallow duplicate PluginConfig in framework creation
2020-03-05 21:40:15 -08:00
Kubernetes Prow Robot
1302f343b1
Merge pull request #88864 from alculquicondor/one_config
...
Disallow use of Plugin or PluginConfig when using Policy
2020-03-05 21:39:57 -08:00
Kubernetes Prow Robot
264e2f1744
Merge pull request #88488 from gnufied/implement-fix-recursive-chown
...
Implement changes for fsgroup recursive chown
2020-03-05 21:39:30 -08:00
Kubernetes Prow Robot
e90c908f64
Merge pull request #88141 from tedyu/pvc-being-del
...
Don't try to create VolumeSpec immediately after underlying PVC is being deleted
2020-03-05 21:39:23 -08:00
Kubernetes Prow Robot
ce01a9bad0
Merge pull request #88857 from nolancon/test-fix
...
Check for nil cpuManager in container manager
2020-03-05 20:05:14 -08:00
Kubernetes Prow Robot
8b8dd79d53
Merge pull request #88768 from damemi/extenders-cc
...
Add Extenders to v1alpha2 Component Config
2020-03-05 20:04:28 -08:00
Kubernetes Prow Robot
e679265086
Merge pull request #87865 from tedyu/container-visitor2
...
Allow container visitor to operate on selected container types
2020-03-05 20:03:17 -08:00
Kubernetes Prow Robot
48541a0b16
Merge pull request #87650 from nolancon/beta-feature-gate
...
Update TopologyManager Feature Gate
2020-03-05 20:03:04 -08:00
Ted Yu
723761aa88
Don't try to create VolumeSpec immediately after underlying PVC is being deleted
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-03-05 16:45:50 -08:00
Mike Danese
76f8594378
more artisanal fixes
...
Most of these could have been refactored automatically but it wouldn't
have been uglier. The unsophisticated tooling left lots of unnecessary
struct -> pointer -> struct transitions.
2020-03-05 14:59:47 -08:00
Mike Danese
aaf855c1e6
deref all calls to metav1.NewDeleteOptions that are passed to clients.
...
This is gross but because NewDeleteOptions is used by various parts of
storage that still pass around pointers, the return type can't be
changed without significant refactoring within the apiserver. I think
this would be good to cleanup, but I want to minimize apiserver side
changes as much as possible in the client signature refactor.
2020-03-05 14:59:46 -08:00
Mike Danese
c58e69ec79
automated refactor
2020-03-05 14:59:46 -08:00
Mike Dame
1d7006c38d
Add Extenders to scheduler v1alpha2 component config
2020-03-05 16:42:15 -05:00
Christopher M. Luciano
912f05bafb
ingress: add alternate resource backend
...
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-03-05 16:08:44 -05:00
Joel Smith
da988294ec
Work-around for missing metrics on CRI-O exited containers
...
HPA needs metrics for exited init containers before it will
take action. By setting memory and CPU usage to zero for any
containers that cAdvisor didn't provide statistics for, we
are assured that HPA will be able to correctly calculate
pod resource usage.
2020-03-05 13:20:43 -07:00
Aldo Culquicondor
1fab27502b
Disallow use of Plugin or PluginConfig when using Policy
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-05 15:05:26 -05:00
Aldo Culquicondor
13fa48e592
Disallow duplicate PluginConfig in framework creation
...
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-05 14:51:41 -05:00
Ted Yu
af0e1319c3
Allow container visitor to operate on selected container types
...
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-03-05 11:48:00 -08:00
Christopher M. Luciano
e931e30647
ingress: allow wildcard hosts in IngressRule
...
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-03-05 13:44:48 -05:00
nolancon
0551d408ac
Bug fix for TM none policy
2020-03-05 14:25:48 +00:00
Hemant Kumar
b132959687
Start adding tests for verifying correct modes
...
Add an example for permission bits checking
2020-03-05 08:00:27 -05:00
Kubernetes Prow Robot
0836b583f7
Merge pull request #85289 from serathius/remove-prometheus-controller-endpointslice
...
Remove prometheus references from pkg/controller/endpointslice
2020-03-05 02:58:37 -08:00
nolancon
4baa1d967d
Check for nil cpuManager
2020-03-05 07:54:33 +00:00
Kubernetes Prow Robot
59c6d339cd
Merge pull request #88636 from NetApp/generic-datasource
...
Add generic DataSource feature gate
2020-03-04 20:13:28 -08:00
Kubernetes Prow Robot
7a513b575a
Merge pull request #88440 from smarterclayton/container_success_fix
...
Ensure Kubelet always reports terminating pod container status
2020-03-04 20:13:04 -08:00
Kubernetes Prow Robot
ac32644d6e
Merge pull request #87759 from klueska/upstream-move-cpu-allocation-to-pod-admit
...
Guarantee aligned resources across containers
2020-03-04 20:12:37 -08:00
Hemant Kumar
c52d4bf32f
Implement changes into volume plugins for skipping chown
...
Add a separate function for walking directories
2020-03-04 21:23:31 -05:00
Hemant Kumar
053baaf143
Update generated files
...
update generated code
2020-03-04 21:23:31 -05:00
Hemant Kumar
f7509d277e
Define new type for storing volume fsgroupchangepolicy
...
Address review comments for api change
2020-03-04 21:23:27 -05:00
Ben Swartzlander
e8b09d3644
Add AnyVolumeDataSource feature gate
...
Allow any custom resource to be the data source of a PVC, if the
AnyVolumeDataSource feature gate is enabled. This is an alpha feature.
2020-03-04 18:55:50 -05:00
Dan Winship
55d3408211
agnhost: add SCTP support to netexec
2020-03-04 23:34:15 +01:00
Kubernetes Prow Robot
e865c0b219
Merge pull request #88686 from j-griffith/upgrade_cloning_to_ga
...
Mark PVCDataSource featuregate as GA
2020-03-04 13:19:06 -08:00
Kubernetes Prow Robot
e4e3d72f1c
Merge pull request #83572 from chendotjs/tc-fix
...
bandwidth: use regexp to handle tc output and add IPv6 support
2020-03-04 13:18:38 -08:00
Clayton Coleman
8bc5cb01a9
kubelet: Clear the podStatusChannel before invoking syncBatch
...
The status manager syncBatch() method processes the current state
of the cache, which should include all entries in the channel. Flush
the channel before we call a batch to avoid unnecessary work and
to unblock pod workers when the node is congested.
Discovered while investigating long shutdown intervals on the node
where the status channel stayed full for tens of seconds.
Add a for loop around the select statement to avoid unnecessary
invocations of the wait.Forever closure each time.
2020-03-04 13:34:25 -05:00
Clayton Coleman
8722c834e5
kubelet: Never restart containers in deleting pods
...
When constructing the API status of a pod, if the pod is marked for
deletion no containers should be started. Previously, if a container
inside of a terminating pod failed to start due to a container
runtime error (that populates reasonCache) the reasonCache would
remain populated (it is only updated by syncPod for non-terminating
pods) and the delete action on the pod would be delayed until the
reasonCache entry expired due to other pods.
This dramatically reduces the amount of time the Kubelet waits to
delete pods that are terminating and encountered a container runtime
error.
2020-03-04 13:34:25 -05:00
Yu-Ju Hong
2364c10e2e
kubelet: Don't delete pod until all container status is available
...
After a pod reaches a terminal state and all containers are complete
we can delete the pod from the API server. The dispatchWork method
needs to wait for all container status to be available before invoking
delete. Even after the worker stops, status updates will continue to
be delivered and the sync handler will continue to sync the pods, so
dispatchWork gets multiple opportunities to see status.
The previous code assumed that a pod in Failed or Succeeded had no
running containers, but eviction or deletion of running pods could
still have running containers whose status needed to be reported.
This modifies earlier test to guarantee that the "fallback" exit
code 137 is never reported to match the expectation that all pods
exit with valid status for all containers (unless some exceptional
failure like eviction were to occur while the test is running).
2020-03-04 13:34:25 -05:00
Clayton Coleman
ad3d8949f0
kubelet: Preserve existing container status when pod terminated
...
The kubelet must not allow a container that was reported failed in a
restartPolicy=Never pod to be reported to the apiserver as success.
If a client deletes a restartPolicy=Never pod, the dispatchWork and
status manager race to update the container status. When dispatchWork
(specifically podIsTerminated) returns true, it means all containers
are stopped, which means status in the container is accurate. However,
the TerminatePod method then clears this status. This results in a
pod that has been reported with status.phase=Failed getting reset to
status.phase.Succeeded, which is a violation of the guarantees around
terminal phase.
Ensure the Kubelet never reports that a container succeeded when it
hasn't run or been executed by guarding the terminate pod loop from
ever reporting 0 in the absence of container status.
2020-03-04 13:34:24 -05:00
j-griffith
9044fbfc5d
Update VolumePVCDatasource to GA for 1.18
...
Updates the VolumePVCDataSource featuregate (cloning) to GA for the 1.18 k8s
release.
2020-03-04 10:48:30 -07:00
Kubernetes Prow Robot
497a998ba6
Merge pull request #88654 from ddebroy/gmsa-disable1
...
Promote GMSA support for Windows to GA
2020-03-04 02:32:01 -08:00
Kubernetes Prow Robot
4d19c6f2ad
Merge pull request #87537 from uthark/oatamanenko/apiversion
...
Fixes #87506 Add apiVersion to involvedObject
2020-03-04 02:31:47 -08:00
Kubernetes Prow Robot
0535520f6e
Merge pull request #88758 from soltysh/hide_last_applied
...
Hide kubectl.kubernetes.io/last-applied-configuration in describe
2020-03-03 21:06:01 -08:00
Kubernetes Prow Robot
cd23e78c3d
Merge pull request #88684 from saad-ali/updateMountLib
...
Update AzureFile and CephFS to use MountSensitive
2020-03-03 21:05:48 -08:00
Deep Debroy
16d221e407
Promote GMSA to GA
...
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2020-03-04 02:56:21 +00:00
Kubernetes Prow Robot
aeb88b6ecd
Merge pull request #88587 from cmluciano/cml/v1beta1paths
...
Adding PathType to Ingress
2020-03-03 18:13:47 -08:00
Kubernetes Prow Robot
0773f108c7
Merge pull request #88710 from SataQiu/ipvs-readme-20200302
...
kube-proxy: small cleanup for ipvs readme
2020-03-03 12:18:22 -08:00
Kubernetes Prow Robot
9d0cbb7503
Merge pull request #88673 from jsafrane/block-feature-ga
...
Promote block volumes to GA
2020-03-03 12:17:12 -08:00
Kubernetes Prow Robot
bfb3fb54b4
Merge pull request #88240 from soltysh/pod_conditions
...
Present more concrete information about pod readiness
2020-03-03 12:15:42 -08:00
Kubernetes Prow Robot
62dc3ea6d1
Merge pull request #87368 from 928234269/fix_staticcheck01
...
fix staticcheck errors in pkg/controller/daemon.
2020-03-03 12:15:28 -08:00
saad-ali
3784438b56
Prevent CephFS from logging senstive options
2020-03-03 11:20:08 -08:00
saad-ali
548b297a00
Prevent AzureFile from logging senstive options
2020-03-03 11:20:08 -08:00
saad-ali
727582311f
Fix MountError Test
2020-03-03 11:20:08 -08:00
Rob Scott
f38904d6f4
Adding PathType to Ingress
...
Co-authored-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-03-03 11:11:16 -08:00
Maciej Szulik
02cd65d7bb
Squash pkg/describe/versioned/ into pkg/describe/
2020-03-03 19:20:06 +01:00
Kubernetes Prow Robot
06b798781a
Merge pull request #88591 from smarterclayton/status_update
...
kubelet: Avoid sending no-op patches
2020-03-03 09:43:38 -08:00
James Munnelly
4144a2a1cf
Add unit tests for IsKubeletClientCSR and IsKubeletServingCSR
2020-03-03 13:14:32 +00:00
chenyaqi01
ef5c920325
bandwidth: use regexp to handle tc output
...
fix newly-added 'chain N' output from 'tc filter show dev XXX'
2020-03-03 20:07:11 +08:00
Kubernetes Prow Robot
c86aec0564
Merge pull request #88745 from mborsz/slice3
...
Implement simple endpoint slice batching
2020-03-03 03:03:38 -08:00
Kubernetes Prow Robot
ac55a51034
Merge pull request #85056 from pohsienshih/volume/golint
...
Fix golint issues for pkg/volume/rbd
2020-03-03 01:37:37 -08:00
Maciej Borsz
49b11b5431
Implement simple endpoint slice batching
2020-03-03 08:16:42 +01:00
Kubernetes Prow Robot
f221dbb91b
Merge pull request #88505 from liggitt/pod-ip-patch
...
Honor status.podIP over status.podIPs and node.spec.podCIDR over node.spec.PodCIDRs when mismatched
2020-03-02 16:16:36 -08:00
Kubernetes Prow Robot
c51ad0cb61
Merge pull request #88735 from pancernik/plugin-args-api-improvements
...
Improve plugin args JSON tags
2020-03-02 14:51:06 -08:00
Kubernetes Prow Robot
1b4b155332
Merge pull request #88671 from alculquicondor/feat/default-spreading
...
Add default constraints to PodTopologySpread plugin
2020-03-02 14:50:25 -08:00
Kubernetes Prow Robot
01593144e6
Merge pull request #88657 from chendotjs/validate-ipvs-timeout
...
validate configuration of kube-proxy IPVS tcp,tcpfin,udp timeout
2020-03-02 14:50:16 -08:00
Jan Safranek
3af671011a
Generated API
2020-03-02 22:21:42 +01:00
Kubernetes Prow Robot
7e2394cbb0
Merge pull request #88660 from jsafrane/block-uncertain
...
Implement uncertain mount for block volumes
2020-03-02 11:43:08 -08:00
Jordan Liggitt
60da52a24a
Honor status.podIP over status.podIPs, node.spec.podCIDR over node.spec.podCIDRs
2020-03-02 14:21:22 -05:00
Aldo Culquicondor
73ad38593a
Add default constraints to PodTopologySpread
...
And update benchmark for even pod spreading to use default constraints
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-03-02 13:50:21 -05:00
Kubernetes Prow Robot
62e993ce09
Merge pull request #88401 from gongguan/volume_binder
...
refactor volume binder
2020-03-02 09:16:44 -08:00
Rafal Wicha
09598d48f6
Improve plugin args JSON tags
2020-03-02 15:20:44 +00:00
Jan Safranek
afcbb68386
Fix unit test to fail with proper final gRPC code
...
Plain "errors.New" is interpreted as transient error.
2020-03-02 12:54:03 +01:00
Jan Safranek
8536787133
Add unit tests
2020-03-02 12:54:02 +01:00
Jan Safranek
c11427fef5
Call NodeUnstage after NodeStage timeout
...
When NodeStage times out and does not prepare destination device and user
deletes corresponding pod, the driver may continue staging the volume in
background. Kubernetes must call NodeUnstage to "cancel" this operation.
Therefore TearDownDevice should be called even when the target directory
does not exist (yet).
2020-03-02 12:54:02 +01:00
Jan Safranek
f6fc73573c
Call NodeUnpublish after NodePublish timeout
...
When NodePublish times out and user deletes corresponding pod, the driver
may continue publishing the volume. In order to "cancel" this operation,
Kubernetes must issue NodeUnpublish and wait until it finishes.
Therefore, NodeUnpublish should be called even if the target directory
(created by the driver) does not exist yet.
2020-03-02 12:54:02 +01:00
Jan Safranek
86a5bd98b6
Add uncertain map state to block volumes
...
Volume mount should be marked as uncertain after NodeStage / NodePublish
timeout or similar error, when the driver can continue with the operation in
background.
2020-03-02 12:54:02 +01:00
Kubernetes Prow Robot
39ed64ec4c
Merge pull request #88569 from andyzhangx/csi-corrupt-mnt-fix
...
fix: corrupted mount point in csi driver node stage/publish
2020-03-02 03:30:43 -08:00
Julian V. Modesto
da3c3432d8
Add context and options to scale client
2020-03-02 00:03:26 -05:00
nolancon
e8538d9b76
Add mutex to Topology Manager Add/RemoveContainer
...
This was exposed as a potential bug during e2e test debugging of this
PR.
2020-03-02 04:07:21 +00:00
nolancon
1e613e5a4c
Update TopologyManager Feature Gate:
...
- Alpha to Beta.
- True by default.
- Remove redundant validation checks.
2020-03-02 03:32:05 +00:00
SataQiu
b60c0b5c24
small cleanup for ipvs readme
2020-03-02 10:56:29 +08:00
chendotjs
e79f49ebba
validate configuration of kube-proxy IPVS tcp,tcpfin,udp timeout
2020-03-02 10:28:52 +08:00
Rob Scott
132d2afca0
Adding IngressClass to networking/v1beta1
...
Co-authored-by: Christopher M. Luciano <cmluciano@us.ibm.com>
2020-03-01 18:17:09 -08:00
pohsienshih
9bfe818229
Fixed golint issues in RBD code
2020-02-29 23:36:58 +08:00
Marek Siarkowicz
4ea52da628
Remove prometheus references from pkg/controller/endpointslice
2020-02-29 15:10:23 +01:00
Kubernetes Prow Robot
03b7f272c8
Merge pull request #88246 from munnerz/csr-signername-controllers
...
Update CSR controllers & kubelet to respect signerName field
2020-02-28 23:38:39 -08:00
louisgong
c6b94e4606
refactor volume binder
2020-02-29 12:03:39 +08:00
Kubernetes Prow Robot
268d0a1d3a
Merge pull request #85870 from Jefftree/authn-netproxy
...
Use Network Proxy with Authentication & Authorizer Webhooks
2020-02-28 18:44:39 -08:00
Kubernetes Prow Robot
901a884c71
Merge pull request #88338 from egernst/PodOverhead-beta
...
Upgrade PodOverhead to beta
2020-02-28 15:12:40 -08:00
Jan Safranek
2c1b743766
Promote block volume features to GA
2020-02-28 20:48:38 +01:00