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
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
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
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
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
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
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