Commit Graph

34136 Commits (332d62a94a2bc8a7d0c69ca85fcd5c458816d677)

Author SHA1 Message Date
danielqsj 412adb8ca9 add unit test for initPolicyFromFile 2019-03-31 21:23:24 +08:00
Kubernetes Prow Robot afefc0b2c5
Merge pull request #73737 from odino/owner-references-in-create-job
Attaching owner references to jobs create via "--from=cronjob/xyz"
2019-03-30 18:22:45 -07:00
Kubernetes Prow Robot e9c42a15f7
Merge pull request #73672 from WanLinghao/failure_domain_remove
Remove dead code about failure-domains option in kube-scheduler
2019-03-30 18:22:33 -07:00
Tom Wanielista d0cfc49704 Avoid panic in cronjob sorting
This change handles the case where the ith cronjob may have its start
time set to nil.

Previously, the Less method could cause a panic in case the ith
cronjob had its start time set to nil, but the jth cronjob did not. It
would panic when calling Before on a nil StartTime.
2019-03-30 12:43:14 -04:00
Giuseppe Scrivano a561196bfe
logs: consume all file until EOF on exited container
If the container is not found, do not stop reading the log file
immediately but wait until we reach again EOF.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:21 +01:00
Giuseppe Scrivano 8f68b281e4
kubelet: force checking the log file every second
it seems fsnotify can miss some read events, blocking the kubelet to
receive more data from the log file.

If we end up waiting for events with fsnotify, force a read from the
log file every second so that are sure to not miss new data for longer
than that.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano 341c2c0d1f
kubelet: handle recreated log files
if the runtime is configured to rotate the log file, we might end up
watching the old fd where there are no more writes.

When a fsnotify event other than Write is received, reopen the log
file and recreate the watcher.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:20 +01:00
Giuseppe Scrivano 2c30eee92f
kubelet: read immediately after creating the watcher
if some events happen between the Read and while we set the watcher,
we might miss them.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-03-30 17:42:11 +01:00
Kubernetes Prow Robot 9a5b7b84df
Merge pull request #75861 from shinytang6/enhance/cleanup-scheduler
scheduler: handle err and remove useless assignment
2019-03-29 17:33:45 -07:00
Kubernetes Prow Robot a9584a27a7
Merge pull request #75754 from denkensk/cleanup-podtimestamp
clean up func podTimestamp in queue
2019-03-29 17:33:20 -07:00
Kubernetes Prow Robot 60638c71bd
Merge pull request #75481 from mucahitkurt/refactor/nodeinfomanager-tests
Add expectedCSINode for csiNodeEnabled test cases on nodeinfomanager tests
2019-03-29 17:33:08 -07:00
Kubernetes Prow Robot dabeb20a1a
Merge pull request #75587 from tiffanyfay/cred-provider
Refactor AWS credential provider
2019-03-29 14:48:47 -07:00
Kubernetes Prow Robot 7a478a4609
Merge pull request #75844 from vladimirvivien/volume-skip-device-mount
Volume DeviceMountablePlugin.CanDeviceMount check when retrieving plugins
2019-03-29 13:02:13 -07:00
Mucahit Kurt 6113cd57bc add expectedCSINode and expectedNode for test cases to compare CSINode and Node object instead of field based comparisons
Signed-off-by: Mucahit Kurt <mucahitkurt@gmail.com>
2019-03-29 23:01:26 +03:00
Kubernetes Prow Robot 30165e40dd
Merge pull request #75863 from cwdsuzhou/optimize-describe-pvc-organization
Optimize describe pvc output organization
2019-03-29 11:49:03 -07:00
Kubernetes Prow Robot 259f706c73
Merge pull request #75834 from jlucktay/golint_pkg/auth/authorizer/abac
Golint pkg/auth/authorizer/abac
2019-03-29 11:48:50 -07:00
Kubernetes Prow Robot 16a0351881
Merge pull request #75712 from danielqsj/cj
Add completed job status in cronjob event
2019-03-29 11:48:37 -07:00
Kubernetes Prow Robot f8cd676f09
Merge pull request #75210 from deads2k/scale-toleration
make kubectl scale work without a GET if a precodition isn't requested
2019-03-29 11:48:12 -07:00
Girish Sadhani 029582d339 Skip smart label in kubectl describe if field has special chars
Attempts to create smart label for fields containing special chanracter ends
up looking very odd. This change skips creating smart labels for fields
containing special characters other than '-'.
2019-03-29 23:00:08 +05:30
Kubernetes Prow Robot 733f2478d3
Merge pull request #75584 from SataQiu/fix-golint-20190322
fix some golint failures in pkg/apis
2019-03-29 10:28:40 -07:00
Kubernetes Prow Robot 857cf88a6a
Merge pull request #75165 from qingsenLi/k8s190308-fix-error
fix a mistake in get.go
2019-03-29 10:28:27 -07:00
Kubernetes Prow Robot a0e6bd21c6
Merge pull request #74695 from qingsenLi/k8s190228-delete-code
delete unused code in proxy_server.go
2019-03-29 10:28:14 -07:00
Kubernetes Prow Robot 861f1fcb2e
Merge pull request #75799 from msau42/csi-empty-devicepath
return empty devicepath for csi attach
2019-03-29 06:08:13 -07:00
James Lucktaylor dbb696508a Enact golint recommendations per issue 68026.
Remove the 'abac' package from the golint exclusion list.
Add/edit comments per golint feedback.
Set PolicyList to be exported, as not exporting was breaking one of
golint's rules around exported funcs returning an unexported type.
Fix a broken test
2019-03-29 12:50:31 +00:00
shinytang6 86515d8b9e scheduler: handle missing err 2019-03-29 19:20:15 +08:00
WanLinghao 62d8081eda Fix a log info error 2019-03-29 13:27:10 +08:00
caiweidong 732ef847e8 Optimize descrive pvc output organization 2019-03-29 11:29:09 +08:00
danielqsj 697ed2cc2a support both JSON and YAML for scheduler configuration 2019-03-29 09:42:58 +08:00
Kubernetes Prow Robot b1829dff0b
Merge pull request #74844 from leakingtapan/migration-raw-block
Implement CSI migration logic for block volume
2019-03-28 18:12:14 -07:00
Sean Sullivan d4d6e19f1e kubectl: removes pkg/version dependency 2019-03-28 16:08:34 -07:00
Vladimir Vivien 3777514f83 Adds DeviceMountablePlugin.CanDeviceMount check when retrieving plugins 2019-03-28 10:39:32 -04:00
tiffany jernigan 0d63fa4543 Update aws provider build files 2019-03-28 07:15:28 +00:00
tiffany jernigan 11efc01328 Refactors and fixes bugs in AWS credentialprovider
Adds caching per registry. Fixes caching of invalid ECR tokens.
2019-03-28 07:15:28 +00:00
Kubernetes Prow Robot 194114e45e
Merge pull request #75513 from cwdsuzhou/fix-incline-csivolume
Kubectl: support inline csi volume
2019-03-27 18:40:57 -07:00
Kubernetes Prow Robot da7af5897c
Merge pull request #75510 from hex108/starttime
Pick pods for preemption based on StartTime of pods when priorities a…
2019-03-27 18:40:43 -07:00
Michelle Au ab6a2530fb return empty devicepath for csi attach 2019-03-27 17:28:21 -07:00
Kubernetes Prow Robot 81985203bf
Merge pull request #74802 from WanLinghao/zh_bindata_fix
Remove 404 link in kubectl help information
2019-03-27 17:22:19 -07:00
Kubernetes Prow Robot b9dbb458fb
Merge pull request #72384 from zhouhaibing089/quota-crd
resourcequota: use dynamic informer
2019-03-27 16:00:49 -07:00
zhouhaibing089 f58c2ae62d resourcequota: use dynamic informer
The resource quota controller should use a dynamic informer so it
can create informer for custom resources.
2019-03-27 11:08:24 -07:00
Kubernetes Prow Robot 0f4b55bbf2
Merge pull request #75773 from andrewsykim/credential-provider-owners
add @andrewsykim and @mcrute as pkg/credentialprovider reviewers
2019-03-27 11:03:04 -07:00
Kubernetes Prow Robot a8cbb22506
Merge pull request #74747 from liggitt/quota-deadlock
quota controller fixes
2019-03-27 09:04:48 -07:00
Andrew Sy Kim b8a92e82b2 add @andrewsykim and @mcrute as pkg/credentialprovider revierws
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-03-27 11:03:50 -04:00
Kubernetes Prow Robot ccc90b2ba6
Merge pull request #75680 from tallclair/psp-refactor
Clean up some PodSecurityPolicy code
2019-03-26 21:59:01 -07:00
Guangwen Feng 5714041f54 Fix comments about node health monitor
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
2019-03-27 12:18:23 +08:00
Jordan Liggitt 27cd2be49f Update quota status with limits even when calculating errors 2019-03-26 23:15:40 -04:00
Jordan Liggitt 739df5452a Avoid deadlock in resource quota resync 2019-03-26 23:15:40 -04:00
Jordan Liggitt e5f7af7058 Improve quota sync log messages 2019-03-26 23:15:40 -04:00
Jordan Liggitt ec7a04bd20 Prevent quota controller using unsynced listers 2019-03-26 23:15:40 -04:00
Jordan Liggitt 8146fe47d8 Clean up test output 2019-03-26 23:15:39 -04:00
Jordan Liggitt 713a10d276 Fix race in quota sync test 2019-03-26 23:15:39 -04:00
wangqingcan 8fd45d8300 clean up func podTimestamp 2019-03-27 11:05:19 +08:00
Kubernetes Prow Robot 2e05cdb7ae
Merge pull request #75739 from Huang-Wei/cleanup-preemption-comments
scheduler: correct dated comments on pod preemption
2019-03-26 19:26:47 -07:00
danielqsj 6b2e9e8af3 add completed job status in cronjob event 2019-03-27 09:48:55 +08:00
Kubernetes Prow Robot 4b3eb60081
Merge pull request #75531 from dims/add-new-staging-repository-for-cri-api
New staging repository for cri-api
2019-03-26 18:10:49 -07:00
tiffany jernigan ecbb090f32 Credential provider Provide takes image (clouds) 2019-03-27 01:00:26 +00:00
tiffany jernigan 847cb24aa1 Credential provider Provide takes image (general) 2019-03-27 01:00:26 +00:00
tiffany jernigan 81c4fde489 Remove aws cred provider dep on cloud provider 2019-03-27 01:00:26 +00:00
Kubernetes Prow Robot 4f465f206d
Merge pull request #75737 from logicalhan/metric-errors
log out metric registration errors instead of silently ignoring them
2019-03-26 16:58:47 -07:00
Cheng Pan f7050a04ce Implement CSI migration logic for block volume 2019-03-26 22:22:03 +00:00
Davanum Srinivas 33081c1f07
New staging repository for cri-api
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04:00
Kubernetes Prow Robot 2086f81546
Merge pull request #74678 from pmcalpine/lint-bs_cj
Fix some golint failures for pkg/controller
2019-03-26 15:10:16 -07:00
Kubernetes Prow Robot 531dbd409f
Merge pull request #75445 from shinytang6/enhance/fmt
Replace all time.Now().Sub with time.Since
2019-03-26 13:55:17 -07:00
Kubernetes Prow Robot 9c973c6d2c
Merge pull request #75515 from dougm/vsphere-token-auth
vSphere: add token auth support for tags client
2019-03-26 12:34:17 -07:00
Kubernetes Prow Robot 29566d0a65
Merge pull request #74341 from paulsubrata55/kube_proxy_sctp_fix
Issue in kube-proxy when IPVS is enabled and SCTP traffic is sent.
2019-03-26 12:33:33 -07:00
Kubernetes Prow Robot 11d472ea01
Merge pull request #72179 from WanLinghao/sa_controller
Migrate the controller to use TokenRequest and rotate token periodically
2019-03-26 12:33:19 -07:00
Wei Huang 6897fda878
scheduler: correct dated comments on pod preemption
- correct wordings related with annotations - which hasn't been used since alpha version
2019-03-26 12:10:46 -07:00
Han Kang 8f63657e26 log out metric registration errors instead of silently ignoring them 2019-03-26 11:29:27 -07:00
Kubernetes Prow Robot 7dfcacd1cf
Merge pull request #75700 from logicalhan/reflector-cleanup
cleanup of reflector metric code (finish removing unused code)
2019-03-25 23:13:31 -07:00
Jun Gong 042b83ba73 Pick pods for preemption based on StartTime of pods when priorities are equal 2019-03-26 09:04:50 +08:00
Ted Yu dbdc782412 Simplify the loop for latest start time in pickOneNodeForPreemption 2019-03-25 15:53:03 -07:00
Han Kang f7c23b1c1d cleanup of reflector metric code (finish removing unused code) 2019-03-25 15:12:09 -07:00
Kubernetes Prow Robot 428a8e04d4
Merge pull request #75458 from jingxu97/March/raceofActualDesiredState
Fix race condition between actual and desired state in kublet volume manager
2019-03-25 13:24:51 -07:00
Kubernetes Prow Robot f3efd1d0b7
Merge pull request #75036 from bart0sh/PR0065-kubeadm-replace-RequiredIPVSKernelModulesAvailable-check
kubeadm: reimplement IPVS check
2019-03-25 13:24:38 -07:00
Kubernetes Prow Robot 68f839662d
Merge pull request #74042 from tedyu/master
Reduce unnecessary Map in node_controller#nodeAddressesChangeDetected
2019-03-25 13:24:24 -07:00
Kubernetes Prow Robot e1f8d1e9ca
Merge pull request #74919 from pivotal-k8s/vsphere-windows-uuid
Fix Windows to read VM UUIDs from serial numbers
2019-03-25 12:10:20 -07:00
Tim Allclair a387409500 Modernize PSP unit test 2019-03-25 11:46:36 -07:00
Tim Allclair e5d2cad7b9 Refactor PSP provider 2019-03-25 11:46:36 -07:00
Doug MacEachern 85907f6947 vSphere: add token auth support for tags client
SAML auth support for the vCenter rest API endpoint came to govmomi
a bit after Zone support came to vSphere Cloud Provider.

Fixes #75511
2019-03-25 10:08:08 -07:00
Doug MacEachern a2d975e02b vsphere: govmomi rest API simulator requires authentication 2019-03-25 10:08:08 -07:00
Kubernetes Prow Robot 055061637a
Merge pull request #75062 from Fedosin/openstack_config_from_secrets
Allow to read OpenStack config from the secret
2019-03-25 09:01:20 -07:00
Kubernetes Prow Robot 231e372d0c
Merge pull request #75620 from misterikkit/logcleanup
Scheduler: Logging cleanup in predicates.go.
2019-03-25 00:03:04 -07:00
WanLinghao 244b244f9d Migrate the controller to use TokenRequest and rotate token periodically 2019-03-25 14:54:22 +08:00
Kubernetes Prow Robot ec64aef25f
Merge pull request #74321 from yastij/signal-undecorated-storage-event
use cache size to signal undecorated storage
2019-03-24 03:21:05 -07:00
Kubernetes Prow Robot 9f15368c5c
Merge pull request #75576 from smarterclayton/bad_2
Remove use of `%#v` in frequently accessed code
2019-03-22 23:59:05 -07:00
Kubernetes Prow Robot 29e74dc58c
Merge pull request #75021 from cwdsuzhou/protectionutil
Move protection common funcs to protectionutil
2019-03-22 22:15:07 -07:00
SataQiu f82fb4059d fix some failures in pkg/apis 2019-03-23 12:20:49 +08:00
Jonathan Basseri 1b447e8d19 Scheduler: Logging cleanup in predicates.go.
This is some light cleanup of logs in predicates.go. In particular, some
log lines have details clarified that will make debugging easier.

I have not touched any VLOG messages, since those usually have plenty of
detail.
2019-03-22 17:33:18 -07:00
Kubernetes Prow Robot ffd8f3dacb
Merge pull request #73255 from ds-ms/golint
Fix linting issues in pkg/kubectl/cmd/version
2019-03-22 17:02:08 -07:00
Kubernetes Prow Robot 994582965d
Merge pull request #75496 from andrewsykim/area-cloudprovider-label
add area/cloudprovider label for changes in pkg/cloudprovider & k8s.i…
2019-03-22 15:46:21 -07:00
ialidzhikov c3b2fb0d11 Clean ineffectual assignments
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2019-03-23 00:27:07 +02:00
Jon Sabo 445d711611 Remove resync period 2019-03-22 16:40:40 -05:00
Kubernetes Prow Robot 265f80eef9
Merge pull request #75176 from mars1024/bugfix/hpa_not_working_in_kubectl_since_v1.13
make describers of different versions work properly when autoscaling/v2beta2 is not supported
2019-03-22 05:22:17 -07:00
Kubernetes Prow Robot 057ad6d4ce
Merge pull request #75571 from Huang-Wei/shorten-alias
shorten scheduler package alias for better readability
2019-03-22 02:34:17 -07:00
Kubernetes Prow Robot efaf4f3bdb
Merge pull request #75507 from hex108/skip
Avoid unnecessary sort for some cases in selectVictimsOnNode
2019-03-22 00:04:44 -07:00
Kubernetes Prow Robot 8ef336c05a
Merge pull request #74568 from hex108/pv
Remove redundant checker whether pod has claims in func FindPodVolumes
2019-03-21 22:50:31 -07:00
Clayton Coleman b28e82ad4a
Avoid using `%#v` for errors when using only a portion of the object
`%#v` may have significant performance costs in frequently invoked code.
2019-03-21 22:52:09 -04:00
Kubernetes Prow Robot 4499275cb9
Merge pull request #72800 from stewart-yu/stewart-component-base
Move config local to every controller in KCM
2019-03-21 19:26:19 -07:00
Wei Huang 49346c1e04
shorten scheduler package alias for better readability
- schedulerinternalcache -> internalcache
2019-03-21 18:14:19 -07:00
shinytang6 5c9f4d9dc6 replace time.Now().Sub with time.Since 2019-03-21 18:02:55 +08:00
Kubernetes Prow Robot 3adae6ce2f
Merge pull request #75490 from yastij/azure-lb-idle-timeout
skip idleTimeout erros when deleting azure LB
2019-03-21 00:27:36 -07:00
Kubernetes Prow Robot ed4258e5c0
Merge pull request #75264 from smarterclayton/optimize_rbac_visit
Avoid allocating when performing VisitRulesFor on service accounts
2019-03-20 19:19:35 -07:00
Minhan Xia 47bc948fe3 reconcile pod ready condition when message is not expected 2019-03-20 14:05:40 -07:00
Kubernetes Prow Robot 79b0fcc703
Merge pull request #75397 from WanLinghao/equivalence_clean
Clean empty package import by #69504
2019-03-20 13:31:25 -07:00
Kubernetes Prow Robot 26fea2361a
Merge pull request #75166 from qingsenLi/k8s190308-fix-heatbeat
spelling error 'heatbeat'
2019-03-20 13:30:59 -07:00
Sean Sullivan 2345831b82 kubectl: Removes dependency on util/interrupt by copying this code into kubectl 2019-03-20 11:39:57 -07:00
Kubernetes Prow Robot 9feb23e5f5
Merge pull request #75343 from Huang-Wei/scheduler-cleanup
scheduler: cleanup unused parameters in unschedulableQ
2019-03-20 11:08:27 -07:00
Kubernetes Prow Robot 068daa54b0
Merge pull request #73970 from droslean/better-errors
kubectl: error logging as string instead of []byte
2019-03-20 11:08:01 -07:00
Kubernetes Prow Robot 795c96aa9d
Merge pull request #71822 from houjun41544/20181207-event
Remove unused kubelet event reasons
2019-03-20 11:07:47 -07:00
Kubernetes Prow Robot 6dc73a88d5
Merge pull request #75321 from ymlong/fix-2019031302
Correcting some spelling errors
2019-03-20 09:53:37 -07:00
Kubernetes Prow Robot 2f298724e2
Merge pull request #75083 from chi-xu/fix-20190307
change an to a
2019-03-20 09:52:58 -07:00
caiweidong af5d6518ff Kubectl: support inline csi volume 2019-03-20 23:56:25 +08:00
Kubernetes Prow Robot 155688b2f3
Merge pull request #75309 from cwdsuzhou/remove_unused_variable
Remove the unused variabe: syncDuration in volumemanager
2019-03-20 07:42:08 -07:00
Kubernetes Prow Robot 59140d6474
Merge pull request #75295 from DataDog/lbernail/strict-arp-flag
[kube-proxy/ipvs] Add flag to enable strict ARP
2019-03-20 07:41:51 -07:00
Kubernetes Prow Robot 88dc966a8a
Merge pull request #75283 from DataDog/lbernail/graceful-restart
[kube-proxy/ipvs] Do not delete existing VS and RS when starting
2019-03-20 07:41:36 -07:00
Kubernetes Prow Robot 8da0c4af29
Merge pull request #75213 from gnufied/allow-different-operation-names-storage
Allow different operation names
2019-03-20 07:41:07 -07:00
Kubernetes Prow Robot bdc013ad57
Merge pull request #75276 from WanLinghao/node_lifecycle_clean
unused function clean
2019-03-20 05:25:35 -07:00
Yassine TIJANI f457179289 skip idleTimeout erros when deleting azure LB 2019-03-20 12:32:45 +01:00
Jun Gong 2755373470 Avoid unnecessary sort for some cases in selectVictimsOnNode 2019-03-20 17:52:37 +08:00
Nikolaos Moraitis 45ac899894 error logging as string instead of []byte 2019-03-20 10:30:52 +01:00
Kubernetes Prow Robot 4bd421502e
Merge pull request #75211 from wongma7/csi-attacher-test-flake
Fix unit test volumeattachments watch not working
2019-03-20 00:55:14 -07:00
Kubernetes Prow Robot 11ee8244ff
Merge pull request #75150 from qingsenLi/k8s190308-fix-faild
fix typo 'Faild'
2019-03-20 00:54:35 -07:00
Kubernetes Prow Robot 6f9bf5fe98
Merge pull request #71548 from smarterclayton/watch_converted
Support Table and PartialObjectMetadata on watch
2019-03-19 22:42:22 -07:00
Kubernetes Prow Robot d7103187a3
Merge pull request #75054 from leakingtapan/ebs-wait
Remove the condition for only wait for KMS key is used
2019-03-19 21:27:14 -07:00
Kubernetes Prow Robot 8592098e60
Merge pull request #74974 from goodluckbot/pick-node-preempt-start-time
Pick node for preemption based on start time of pods
2019-03-19 21:26:49 -07:00
Kubernetes Prow Robot fcf21a2168
Merge pull request #74885 from cwdsuzhou/fix_log_style
Change log: avoid to print raw json response too frequently
2019-03-19 21:26:36 -07:00
Kubernetes Prow Robot 16b5f7d3c5
Merge pull request #67487 from tianshapjq/validate-system-kube-reserved
validate systemReservedCgroup and kubeReservedCgroup
2019-03-19 21:26:22 -07:00
Andrew Sy Kim e2ad79a302 add area/cloudprovider label for changes in pkg/cloudprovider & k8s.io/cloud-provider
Signed-off-by: Andrew Sy Kim <kiman@vmware.com>
2019-03-19 21:16:20 -07:00
Kubernetes Prow Robot 9c5be7aa5f
Merge pull request #74686 from zhouhaibing089/add-trailing-period
validation: allow trailing period in dns search
2019-03-19 20:15:06 -07:00
Kubernetes Prow Robot 0c0bd8a4cb
Merge pull request #74528 from droslean/gce-cleanup
gce: remove unused constants
2019-03-19 20:14:28 -07:00
Kubernetes Prow Robot 046dcbd1ed
Merge pull request #73917 from droslean/cleanup
replace loops with go idiomatic.
2019-03-19 19:01:04 -07:00
Yassine TIJANI 8261d3d9a6 use cache size to signal undecorated storage 2019-03-19 23:48:07 +01:00
Peter McAlpine ac88e13821 Fix lint warnings in pkg/controller/cronjob. 2019-03-19 14:36:26 -04:00
Peter McAlpine 6518c0b696 Rename: cronjob_controller[_test].go -> controller[_test].go
This change renames these source files to reduce stuttering when reading
the path.
2019-03-19 14:36:26 -04:00
Peter McAlpine 4cfcf0519d Fix lint warnings in pkg/controller/bootstrap 2019-03-19 14:36:26 -04:00
caiweidong eb8dd093fe add UT 2019-03-19 20:36:38 +08:00
Kubernetes Prow Robot 1d441c1f93
Merge pull request #75451 from liggitt/kubectl-username
Restore username and password kubectl flags
2019-03-18 23:44:20 -07:00
Jing Xu 7cb5df6728 Fix race condition between actual and desired state in kublet volume
manager

This PR fixes the issue #75345. This fix modified the checking volume in
actual state when validating whether volume can be removed from desired state or not. Only if volume status is already mounted in actual state, it can be removed from desired state.
For the case of mounting fails always, it can still work because the
check also validate whether pod still exist in pod manager. In case of
mount fails, pod should be able to removed from pod manager so that
volume can also be removed from desired state.
2019-03-18 17:08:48 -07:00
Jordan Liggitt a6034e511c Restore username and password kubectl flags 2019-03-18 17:16:49 -04:00
Kubernetes Prow Robot a4f2590bd8
Merge pull request #75371 from andyzhangx/smb-mount-win-lock
fix race condition issue for smb mount on windows
2019-03-18 13:40:21 -07:00
Kubernetes Prow Robot aa9cbd112c
Merge pull request #75265 from JacobTanenbaum/ClearExternalIPs
Clear conntrack entries on 0 -> 1 endpoint transition with externalIPs
2019-03-18 11:06:23 -07:00
Bruce Ma 183247ca5c change bandwidth units from Kb to b
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
2019-03-18 21:22:34 +08:00
Kubernetes Prow Robot 364b18cb9e
Merge pull request #75375 from frapposelli/GH-75236
Stop vsphere cloud provider from spamming logs with `failed to patch IP`
2019-03-18 03:45:12 -07:00
WanLinghao f510f49955 Remove dead code about failure-domains option in kube-scheduler 2019-03-18 14:25:04 +08:00
caiweidong e9c13409a8 Move protection common func to protectionutil 2019-03-17 22:24:42 +08:00
Kubernetes Prow Robot 1a24040447
Merge pull request #74781 from liggitt/http2-watch
kubelet watch-manager test, restore watch-based manager default
2019-03-16 12:52:56 -07:00
Kubernetes Prow Robot 3512757882
Merge pull request #75416 from tallclair/local-redirects
Don't follow non-local redirects from HTTP probes
2019-03-16 09:14:57 -07:00
Kubernetes Prow Robot 0f6196878d
Merge pull request #75367 from feiskyer/fix-dockershim-panic
Fix panic when removing docker images
2019-03-16 01:08:56 -07:00
Tim Allclair e6ea4f0538 Don't follow non-local redirects for http probes 2019-03-15 11:04:30 -07:00
Jacob Tanenbaum c3548165d5 Clear conntrack entries on 0 -> 1 endpoint transition with externalIPs
As part of the endpoint creation process when going from 0 -> 1 conntrack entries
are cleared. This is to prevent an existing conntrack entry from preventing traffic
to the service. Currently the system ignores the existance of the services external IP
addresses, which exposes that errant behavior

This adds the externalIP addresses of udp services to the list of conntrack entries that
get cleared. Allowing traffic to flow

Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
2019-03-15 11:18:51 -04:00
WanLinghao a0a8ea4829 Clean empty package import by #69504 2019-03-15 14:32:20 +08:00
caiweidong 92aee22646 Remove the unused variabe: syncDuration in volumemanager 2019-03-15 10:04:41 +08:00
Kubernetes Prow Robot d5a3db0039
Merge pull request #74311 from hpedrorodrigues/fix-lb-sg-deletion
Ensure ownership when deleting a load balancer security group
2019-03-14 18:10:58 -07:00
Kubernetes Prow Robot b3ec6c17f1
Merge pull request #75144 from Huang-Wei/followup-74222
kubelet: updated logic of verifying a static critical pod
2019-03-14 14:41:00 -07:00
Fabio Rapposelli d22a39db8a
stop vsphere cloud provider from spamming logs with `failed to patch IP`
Fixes: #75236
2019-03-14 22:39:13 +01:00
Hemant Kumar a3a93c560b Add more volume types and unbound pvcs etc 2019-03-14 17:07:36 -04:00
andyzhangx 4b4b6cdcab fix race condition issue for smb mount on windows
change var name
2019-03-14 15:02:15 +00:00
Ed Bartosh 2914171ed4 kubeadm: reimplement IPVS check
Used existing IPVS Proxier API CanUseIPVSProxier instead
of custom implementation.

Fixes kubernetes/kubeadm#975
2019-03-14 16:52:21 +02:00
Pengfei Ni a304297c99 Fix panic when removing docker images 2019-03-14 18:53:02 +08:00
Jordan Liggitt f2a0c0342c Revert "Revert kubelet to default to ttl cache secret/configmap behavior"
This reverts commit cd1c9f9018.
2019-03-13 15:12:26 -07:00
Clayton Coleman 4c87a14e6b
Avoid allocating when performing VisitRulesFor on service accounts
Service account authorization checks are done frequently and were
observed to perform 7% of allocations on a system running e2e tests.
The allocation comes from when we walk the authorization rules to
find matching service accounts.

Optimize the check for service account names to avoid allocating.
2019-03-13 17:40:21 -04:00
Wei Huang 2b554b4286
scheduler: cleanup unused parameters in unschedulableQ 2019-03-13 11:54:16 -07:00
Hemant Kumar 97ec61561a Allow different operation names 2019-03-13 14:20:45 -04:00
Kubernetes Prow Robot 517922f31a
Merge pull request #75308 from msau42/csi-beta-e2e
ignore kubeclient nil in csi plugin init
2019-03-13 05:49:46 -07:00
ymlong 58f8c0207d Correcting some spelling errors 2019-03-13 15:00:32 +08:00
Wei Huang d67e7fd47f
kubelet: updated logic of verifying a static critical pod
- check if a pod is static by its static pod info
- meanwhile, check if a pod is critical by its corresponding mirror pod info
2019-03-12 23:40:20 -07:00
caiweidong 5fa000e5ed Change log: avoid to print raw json response too frequently 2019-03-13 13:07:01 +08:00
Pengfei Ni 84617c8b51 Allow disable outbound snat when Azure standard load balancer is used 2019-03-13 10:29:41 +08:00
Michelle Au 398777f261 ignore kubeclient nil in csi plugin init 2019-03-12 16:29:08 -07:00
Kubernetes Prow Robot cc8afb25fc
Merge pull request #74040 from ajatprabha/issue_73648
add ResourceVersion to DeleteOptions.Preconditions
2019-03-12 15:44:38 -07:00
Kubernetes Prow Robot f33e5e8f7a
Merge pull request #74394 from thockin/proxy-reject-lb-no-endpoints
Kube-proxy: ICMP reject via LBs when no endpoints
2019-03-12 13:18:40 -07:00
Laurent Bernaille 09f821ddb5 [kube-proxy/ipvs] Add flag to enable strict ARP 2019-03-12 15:56:22 +01:00
ajatprabha 4ddc198c39
pin ResourceVersion precondition only when specified 2019-03-12 17:00:41 +05:30
ajatprabha 42f0a36f44
check for ResourceVersion conflict in separate if block 2019-03-12 17:00:39 +05:30
ajatprabha 8f48d76271
add ResourceVersion to DeleteOptions.Preconditions 2019-03-12 17:00:39 +05:30
Kubernetes Prow Robot 9cbccd3859
Merge pull request #75256 from feiskyer/fix-75198
Ensure Azure load balancer cleaned up on 404 or 403
2019-03-12 02:52:40 -07:00
Laurent Bernaille 96818ea31e [kube-proxy/ipvs] Do not delete existing VS and RS when starting 2019-03-12 09:40:55 +01:00
Nathan Essex 394c581a56 Fix label on UpdateContainerResources operation 2019-03-12 14:18:53 +09:00
Kubernetes Prow Robot eb6a1b651c
Merge pull request #72942 from caesarxuchao/expose-storage-version-hash
Populate the storage version hash
2019-03-11 21:36:36 -07:00
goodluckbot 8d991e6ee2 Pick node for preemption based on start time of pods 2019-03-12 12:30:15 +08:00
Tim Hockin de25d6cb95 Kube-proxy: REJECT LB IPs with no endpoints
We REJECT every other case.  Close this FIXME.

To get this to work in all cases, we have to process service in
filter.INPUT, since LB IPS might be manged as local addresses.
2019-03-11 20:33:45 -07:00
caiweidong 751007c17d Do not replace labels of pvc with those of StastefulSet 2019-03-12 11:13:57 +08:00
WanLinghao 686b526de4 remove unused functions in pkg/controller/nodelifecycle/node_lifecycle_controller.go 2019-03-12 11:01:47 +08:00
Kubernetes Prow Robot 43b6ddf3c6
Merge pull request #75087 from andyzhangx/unmount-issue-windows
fix smb unmount issue on Windows
2019-03-11 17:58:37 -07:00
Kubernetes Prow Robot 243e740885
Merge pull request #74809 from oxddr/secrets-and-maps
Fix secret/configmap management for terminated pods
2019-03-11 16:42:36 -07:00
Daniel Lipovetsky ab6d901497 Update kubectl taint usage
- Explain that the value is optional.
- Add example of adding a taint with no value to kubectl taint usage.
2019-03-11 14:20:59 -07:00
Daniel Lipovetsky f5ac239289 Copy changes from `pkg/util/taints` to `pkg/kubectl/cmd/taint` 2019-03-11 14:20:59 -07:00
Daniel Lipovetsky 653c710b0d Update v1.Taint parser to accept `key:effect`, `key=:effect-`, `key`, and `key-` forms
Also add missing tests for `key=:value` form.
2019-03-11 14:20:59 -07:00
Chao Xu 887cb93d8d generated BUILD
generated proto
2019-03-11 10:26:56 -07:00
Chao Xu 3b618af0d4 Expose storage version hash 2019-03-11 10:26:56 -07:00
Kubernetes Prow Robot 8477c486a8
Merge pull request #74652 from cofyc/fix72500
Delay CSI client initialization
2019-03-11 09:39:27 -07:00
Kubernetes Prow Robot cd9e590178
Merge pull request #74520 from casusbelli/fix-qb-usermapping
Adds missing user mapping option for Quobyte mounts
2019-03-11 02:45:26 -07:00
Pengfei Ni 88907da9a4 Ensure Azure load balancer cleaned up on 404 or 403 2019-03-11 16:40:23 +08:00
andyzhangx 720a5e20d8 fix smb unmount issue on Windows
fix log warning

use IsCorruptedMnt in GetMountRefs on Windows

use errorno in IsCorruptedMnt check

fix comments: add more error code

add more error no checking

change year

fix comments
2019-03-10 02:13:16 +00:00
Kubernetes Prow Robot 0b4275b6c7
Merge pull request #74760 from apelisse/add-mangerfield-flag
Add "fieldManager" to flag to PATCH/CREATE/UPDATE
2019-03-08 22:27:29 -08:00
Yecheng Fu fa926ed6e0 Delay CSI client initialization 2019-03-09 13:45:03 +08:00
Kubernetes Prow Robot b150560107
Merge pull request #74441 from Random-Liu/pod-log-directory
Add namespace and name into the CRI pod log directory
2019-03-08 20:43:30 -08:00
Lantao Liu 0ac651bfc3 Include pod logs in the pod ephemeral storage.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
Lantao Liu f14c6c95d6 New pod log directory /var/log/pods/NAMESPACE_NAME_UID.
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
Antoine Pelisse eb904d8fa8 Add "fieldManager" to flag to PATCH/CREATE/UPDATE
And add a corresponding flag in kubectl (for apply), even though the
value is defaulted in kubectl with "kubectl".

The flag is required for Apply patch-type, and optional for other PATCH,
CREATE and UPDATE (in which case we fallback on the user-agent).
2019-03-08 16:03:03 -08:00
Tim Allclair bc01f97055 Promote RuntimeClass to beta 2019-03-08 13:21:52 -08:00
Matthew Wong cfea406c1c Fix unit test volumeattachments watch not working 2019-03-08 15:20:31 -05:00
David Eads 838721b0aa make kubectl scale work without a GET if a precodition isn't requested 2019-03-08 14:47:12 -05:00
Clayton Coleman 3230a0b4fd
Support Table and PartialObjectMetadata on watch
Clean up the code paths that lead to objects being transformed and output with negotiation.
Remove some duplicate code that was not consistent. Now, watch will respond correctly to
Table and PartialObjectMetadata requests. Add unit and integration tests.

When transforming responses to Tables, only the first watch event for a given type will
include the columns. Columns will not change unless the watch is restarted.

Add a volume attachment printer and tighten up table validation error cases.

Disable protobuf from table conversion because Tables don't have protobuf because they
use `interface{}`
2019-03-08 13:03:59 -05:00
Vladimir Vivien 923ad369c8 CSI Inline Volume - Kubelet/Driver code impl 2019-03-08 12:40:09 -05:00
Vladimir Vivien d998fc8f0f CSI Inline Volume - Generated files 2019-03-08 12:39:58 -05:00
Vladimir Vivien 4ec7d2305d CSI Inline Volume - API changes 2019-03-08 12:35:07 -05:00
qingsenLi 147666f10f spelling error 'heatbeat' 2019-03-09 00:22:06 +08:00
Hemant Kumar a8f318779b Add CSI volume resizing tests
Add some tests for checking node expansion
Add new tests for expander
2019-03-08 09:23:18 -05:00
Hemant Kumar 529cd7119b Move resize function parameters to a new ResizeOptions type
This enables us to pass CSI volume phase
2019-03-08 09:21:44 -05:00
Hemant Kumar 63eb25eb4b Introduce feature gate for volume expansion
Update CSI library version
2019-03-08 09:21:44 -05:00
Hemant Kumar 89d1de9eb9 Rename ExandFS to NodeExpand
Handle resize error in online resizing
Use NodeExpandable plugin to mark volumes that require node expansion
2019-03-08 09:21:44 -05:00
Kubernetes Prow Robot f229aa0ad6
Merge pull request #75044 from errordeveloper/move-cli-runtime-subpackages
Move printers & resources packages
2019-03-08 05:43:26 -08:00
Bruce Ma 814e1ca73f make describers of different versions work properly when autoscaling/v2beta2 is not supported 2019-03-08 20:29:49 +08:00
Kubernetes Prow Robot e318642946
Merge pull request #74998 from mbohlool/pippin
Webhook configurations can choose which version of Review request they accept
2019-03-08 03:01:26 -08:00
qingsenLi 0c247c9305 fix a mistake 2019-03-08 17:48:18 +08:00
qingsenLi 1fdd67f330 fix typo 'faild' 2019-03-08 16:56:16 +08:00
Kubernetes Prow Robot 2e64704425
Merge pull request #75096 from tnozicka/fix-kubectl-run-watches
Fix kubectl run watches
2019-03-07 22:44:18 -08:00
Kubernetes Prow Robot 56c74635e2
Merge pull request #75023 from danielqsj/metrics-1
clean the deprecated metrics which introduced recently
2019-03-07 22:43:55 -08:00
Kubernetes Prow Robot 535064773a
Merge pull request #73946 from dashpole/prometheus_core_metrics
Add kubelet resource metrics v1alpha1 endpoint
2019-03-07 22:43:28 -08:00
Kubernetes Prow Robot d5e4973a32
Merge pull request #74544 from gnufied/deprecate-cloudprovider-predicates
Deprecate cloudprovider specific volume limit predicates
2019-03-07 21:20:11 -08:00
Kubernetes Prow Robot 9103186489
Merge pull request #74442 from yujuhong/reconcile-node-labels
nodelifecycle controller: reconcile node OS/arch labels
2019-03-07 21:19:57 -08:00
Kubernetes Prow Robot 1fc2396e2e
Merge pull request #74434 from freehan/pod-ready-ga
promote PodReadinessGate feature to GA
2019-03-07 21:19:43 -08:00
Kubernetes Prow Robot 183e6cc190
Merge pull request #74433 from tallclair/runtimeclass-internal
Migrate RuntimeClass from a CRD to an internal API
2019-03-07 21:19:30 -08:00
Mehdy Bohlool cbe00023c0 Update generated files 2019-03-07 21:00:29 -08:00
Kubernetes Prow Robot ad27abde62
Merge pull request #74835 from davidz627/feature/adcFallback
Add logic for initializing CSINode on Node startup for CSI Migration [Replaces #70909]
2019-03-07 18:39:25 -08:00
David Zhu 41b3579345 Address review comments 2019-03-07 17:17:09 -08:00
Kubernetes Prow Robot a6d8dbcaef
Merge pull request #74913 from yastij/explicit-restart-policy
explicit the restartPolicy on the dockershim
2019-03-07 16:12:39 -08:00
Kubernetes Prow Robot fbc5150c7d
Merge pull request #74788 from feiskyer/windows-network-stats
Add network stats for Windows nodes and containers
2019-03-07 16:12:24 -08:00
David Ashpole 6051664c0f add kubelet prometheus resource metrics endpoint 2019-03-07 15:39:37 -08:00
Pedro Rodrigues eb4087d5b5
Using lower case letter on the error message 2019-03-07 20:36:48 -03:00
Pedro Rodrigues 09a47d2bc0
Fix typo and format logs 2019-03-07 20:34:07 -03:00
Pedro Rodrigues 014cb38ecb
Check for ownership when deleting a load balancer security group
Co-authored-by: Marcus Fonseca <marcus.080196@gmail.com>
2019-03-07 20:34:07 -03:00
Mehdy Bohlool f7dff4725f Add AdmissionReviewVersions to admissionregistration and default it 2019-03-07 15:02:16 -08:00
Ilya Dmitrichenko 6d7a9048b6
Move printers & resources packages
These packages deserve to live at the top level of `k8s.io/cli-runtime`,
as they are potentially of wider use than genericclioptions.
2019-03-07 23:00:24 +00:00
David Zhu 7d2f4e97b8 Add ADC Fallback if Node doesn't have driver installed 2019-03-07 14:47:38 -08:00
David Zhu 34d9ee5b9b Add CSINode initialization for CSIMigration on node startup before pod ready 2019-03-07 14:47:38 -08:00
Tim Allclair 428e9fa329 generated files 2019-03-07 11:57:12 -08:00
Tim Allclair 222988bdda Migrate to internal node.k8s.io client 2019-03-07 11:57:12 -08:00
Tim Allclair 820a1dc96b Add node.k8s.io/v1beta1 API 2019-03-07 11:57:12 -08:00
Wei Huang c5a96b63f4
Revert "kubelet: return mirror pod in GetActivePods()"
This reverts commit c0c93f4a52.
2019-03-07 11:22:27 -08:00
Tim Allclair 63f61a6714 Migrate RuntimeClass to internal API 2019-03-07 11:07:54 -08:00
Mike Fedosin cf8c193b87 Allow to read OpenStack config from the secret
Currently OpenStack cloud provider reads user credentials from config
file, where data is stored in clear text. This approach is not recommended,
as it is a serious security issue.

This commit add an ability to read the config from secrets, if necessary.
To do so, two new parameters are added to the config: SecretNamespace and
SecretName. If they are specified, the provider will try to read config
from the secret.
2019-03-07 19:20:54 +01:00
Janek Łukaszewicz 52913c59d1 Test with 2 pods, to make it more reliable. 2019-03-07 17:02:51 +01:00
Junyoung, Sung f76de72816 Fix typo in IsLikelyNotMountPoint function comment: --bin -> --bind 2019-03-08 00:58:44 +09:00
Kubernetes Prow Robot 0b48018a39
Merge pull request #71192 from roycaihw/crd-publish-openapi
Publish CRD openapi
2019-03-07 03:54:58 -08:00
Tomas Nozicka d9e511e261 Generated: Update Bazel 2019-03-07 11:13:10 +01:00
Tomas Nozicka 2e7242aac8 Fix `kubectl run` watches in waitForPod 2019-03-07 11:12:13 +01:00
Kubernetes Prow Robot 2f930306a4
Merge pull request #74936 from rjaini/rj_1.14
Adding a check to make sure Metadata is read only if flag value is true.
2019-03-07 01:07:13 -08:00
Kubernetes Prow Robot 14b671b24b
Merge pull request #71651 from Pingan2017/cronjob-add
add subcommand `kubectl create cronjob`
2019-03-07 01:07:00 -08:00
Kubernetes Prow Robot 6dbe98980f
Merge pull request #74909 from NetApp/csi-raw-block-to-beta2
Promote CSI raw blocks to beta
2019-03-06 22:55:46 -08:00
Kubernetes Prow Robot b7bf26abc1
Merge pull request #74713 from WanLinghao/duplicate_package
Remove duplicate package import
2019-03-06 22:54:57 -08:00
Kubernetes Prow Robot a8492d74ec
Merge pull request #74688 from ksubrmnn/overlay_dsr
Allow Overlay loadbalancing to Public IP in Windows
2019-03-06 20:35:52 -08:00
Kubernetes Prow Robot 8dd60281ff
Merge pull request #74653 from cofyc/fix74650-CheckVolumeExistenceOperation
Distinguish between volume path and mount path
2019-03-06 20:35:40 -08:00
Kubernetes Prow Robot 59ee7353e8
Merge pull request #74625 from davidz627/fix/xfsUnmount
GetMountRefs fixed to handle corrupted mounts by treating it like an unmounted volume
2019-03-06 20:35:26 -08:00
xuchi 93983289ad change an to a 2019-03-07 10:34:00 +08:00
Kubernetes Prow Robot 752d18d2b0
Merge pull request #74510 from SataQiu/fix-golint-2019022502
Fix some golint failures for pkg/kubelet/apis/...
2019-03-06 17:59:25 -08:00
Pengfei Ni d690037571 Run hack/update-bazel.sh 2019-03-07 09:55:58 +08:00
Pengfei Ni 1220025e86 Add network stats for node interfaces 2019-03-07 09:55:39 +08:00
Pengfei Ni 84a7f48cf7 Add network stats for Windows containers 2019-03-07 09:54:50 +08:00
Yu-Ju Hong bd2301a628 nodelifecycle controller: reconcile node OS/arch labels 2019-03-06 17:26:23 -08:00
Haowei Cai 11cf3101e3 apiextensions-apiserver: serve openapi spec
Co-authored-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2019-03-06 16:32:15 -08:00
Cheng Pan ac6d32a65a Remove the condition for only wait for KMS key is used 2019-03-06 22:47:13 +00:00
Kubernetes Prow Robot c80e45f892
Merge pull request #73840 from adisky/cinder-intree-migration
Add CSI Migration feature flags for Cinder In tree Driver
2019-03-06 14:45:16 -08:00
David Zhu 5bf970f848 GetMountRefs fixed to handle corrupted mounts by treating it like an
unmounted volume
2019-03-06 14:34:16 -08:00
Kubernetes Prow Robot 47063891dd
Merge pull request #75037 from soltysh/cp_bug
Fix panic in kubectl cp command
2019-03-06 12:54:59 -08:00
Kubernetes Prow Robot 752f5668cc
Merge pull request #74737 from wk8/wk8/gmsa_bug_fix
Fixing a small bug with GMSA support
2019-03-06 11:20:49 -08:00
Ben Swartzlander 1493e684d3 Promote CSI raw blocks to beta 2019-03-06 13:43:52 -05:00
Kubernetes Prow Robot b82868bb7e
Merge pull request #74787 from jianglingxia/fixbugiscsi
fix bug iscsi volume attach failed of /sys/class/iscsi_host dir not e…
2019-03-06 09:50:51 -08:00
Rohit Jaini e0f51bcc2e Adding a check to make sure UseInstanceMetadata flag is true to get data from metadata. 2019-03-06 09:31:33 -08:00
Maciej Szulik ee7edb7765
Fix panic in kubectl cp command 2019-03-06 15:43:15 +01:00
Kubernetes Prow Robot bcbbb98f78
Merge pull request #70265 from jingyih/use_chunking_when_list_in_cronjob_controller
Retrieve list in chunks in cronjob controller
2019-03-06 04:45:59 -08:00
WanLinghao 611563c913 golint fix 2019-03-06 19:47:54 +08:00
Kubernetes Prow Robot 997c981d3b
Merge pull request #74789 from cwdsuzhou/kubectl_invalid
Bugfix: kubectl shows last<invalid> if pv, pod or pvc is terminating using kubectl describe xxxx
2019-03-06 00:44:28 -08:00
Kubernetes Prow Robot 7bcdbc5a51
Merge pull request #74446 from yanghaichao12/comm0223
Fix typos
2019-03-05 23:24:00 -08:00
danielqsj 10ab3fb832 clean the deprecated metrics which introduced recently 2019-03-06 15:23:46 +08:00
Pingan2017 41536d7d02 add subcommand kubectl create cronjob 2019-03-06 15:12:21 +08:00
Kubernetes Prow Robot 5a89793f8e
Merge pull request #74612 from jingxu97/windows
Add GcePD windows support
2019-03-05 21:42:22 -08:00
Kubernetes Prow Robot 8b052158c7
Merge pull request #74477 from liggitt/webhook-admission-scope
Webhook admission scope
2019-03-05 21:42:11 -08:00
Cheng Pan 001d9c694e Add CSI migration logic for EBS Volume ID format 2019-03-05 23:11:43 +00:00
Kubernetes Prow Robot 4d1b830578
Merge pull request #74933 from yujuhong/fix-cpu-nano-cores
Fix computing of cpu nano core usage
2019-03-05 14:54:34 -08:00
Kubernetes Prow Robot d31427637b
Merge pull request #74926 from ddebroy/csiprov2
Add new CSI translation APIs required by CSI sidecars and unit tests
2019-03-05 14:54:21 -08:00
Kubernetes Prow Robot 5bc1e9b8ea
Merge pull request #74830 from msau42/lock-csi-ga
lock csi and plugin watcher GA feature gates
2019-03-05 14:54:10 -08:00
Kubernetes Prow Robot 98fa2c7d32
Merge pull request #74222 from Huang-Wei/kubelet-mirrorpod
kubelet: return mirror pod in GetActivePods()
2019-03-05 13:22:02 -08:00
Michelle Au 08330c37ca lock csi and plugin watcher GA feature gates 2019-03-05 09:59:05 -08:00
Kubernetes Prow Robot b033f0c1d1
Merge pull request #74907 from bsalamat/num_cpu
Revert "Use runtime.NumCPU() instead of a fixed value for parallel scheduler threads"
2019-03-05 09:50:36 -08:00
Kubernetes Prow Robot 0a4308f641
Merge pull request #74529 from liggitt/kubelet-service-links-error
Kubelet service links error
2019-03-05 09:49:59 -08:00
Yu-Ju Hong 191666d6a3 Fix computing of cpu nano core usage
CRI runtimes do not supply cpu nano core usage as it is not part of CRI
stats. However, there are upstream components that still rely on such
stats to function. The previous fix was faulty because the multiple
callers could compete and update the stats, causing
inconsistent/incoherent metrics. This change, instead, creates a
separate call for updating the usage, and rely on eviction manager,
which runs periodically, to trigger the updates. The caveat is that if
eviction manager is completley turned off, no one would compute the
usage.
2019-03-05 09:25:40 -08:00
Kubernetes Prow Robot e330c0120e
Merge pull request #74882 from feiskyer/convert-rg-to-lower
Convert resource group name in Azure provider ID to lower cases
2019-03-05 08:17:01 -08:00
Kubernetes Prow Robot dccb8ab5b0
Merge pull request #74615 from andrewsykim/delete-pvl-controller
Delete the out-of-tree PV labeler controller
2019-03-05 08:16:03 -08:00
Kubernetes Prow Robot 6c31101257
Merge pull request #74283 from xing-yang/csi_crd_controller
CSINodeInfo and CSIDriver Controller Changes
2019-03-05 04:44:42 -08:00
Kubernetes Prow Robot 43616fc920
Merge pull request #74033 from bart0sh/PR0060-kubeadm-975-RequiredIPVSKernelModulesAvailable-warning-seems-confusing
kubeadm: fix RequiredIPVSKernelModulesAvailable warning message
2019-03-05 02:04:03 -08:00
WanLinghao c16d9193c1 bazel fix 2019-03-05 17:22:35 +08:00
WanLinghao b2ce446a88 Migrate oom watcher not relying on cAdviosr any more, it is part of plan
of removing cAdvisor from k8s.
For more informations about this plan, please refer:
https://github.com/kubernetes/kubernetes/issues/68522
2019-03-05 17:06:34 +08:00
yanghaichao12 b475cdf7fc Fix typos
change SupportsPreemption

change comment again
2019-03-05 02:12:55 -05:00
adisky 3090b63414 Add CSI Migration feature flags for Cinder In tree Driver 2019-03-05 06:21:36 +00:00
caiweidong bdfd420c6d Bugfix: kubectl shows last<invalid> if pv, pod, pvc is terminating
fix describe ut
2019-03-05 14:03:34 +08:00
Pengfei Ni 1d61d8d4a4 Convert resource group name in Azure provider ID to lower cases 2019-03-05 11:22:17 +08:00
Deep Debroy 1fb4290c4e Update API names and references
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-03-04 19:13:05 -08:00
root b6e8f71fe0 fix bug iscsi volume attach failed of /sys/class/iscsi_host dir not exist 2019-03-05 10:46:47 +08:00
Xing Yang 6265f4f78c CSINodeInfo/CSIDriver controller changes
This is the 2nd PR to move CSINodeInfo/CSIDriver APIs to
v1beta1 core storage APIs. It includes controller side changes.
It depends on the PR with API changes:
https://github.com/kubernetes/kubernetes/pull/73883
2019-03-04 16:41:58 -08:00
Deep Debroy 1da91ad39a Add GetIntreeNameFromCSIName and SupersedesInTreePlugin APIs and unit tests
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-03-04 16:36:45 -08:00
Jordan Liggitt 1d4655c8ef generated files
Change-Id: I5a43a4e1a601b85d21b551fcfc9fdbd16a095d06
2019-03-05 00:30:12 +00:00
Jordan Liggitt 0797d81222 Add scope restrictions to webhook admission rules 2019-03-05 00:30:12 +00:00
Ben Moss 33bfe74c0d Fix Windows to read VM UUIDs from serial numbers
Certain versions of vSphere do not have the same value for product_uuid
and product_serial. This mimics the change in #59519.

Fixes #74888
2019-03-04 18:06:54 -05:00
Yassine TIJANI 5f7c60859c explicit the restartPolicy on the dockershim
This change explicits the restart policy, as on some docker version
(e.g. 11.07-ce) the default for this field is "". which seems to be not
respected by dockerd
2019-03-04 23:11:20 +01:00
Bobby (Babak) Salamat a1b8777d42 Revert "Merge pull request #73934 from bsalamat/num_cpu"
This reverts commit cfe4ca8012, reversing
changes made to f16035600a.
2019-03-04 13:14:25 -08:00
Kubernetes Prow Robot b1d4d40679
Merge pull request #74668 from sttts/sttts-kube-apiserver-endpoints-when-ready
kube-apiserver: don't create endpoints before being ready
2019-03-04 01:57:41 -08:00
Xing Yang ba4ccfa8b1 Add review comments in the APIs 2019-03-02 18:40:22 -08:00
andyzhangx 38f0908597 make funcs in azure cloud provider as public 2019-03-03 01:58:59 +00:00
Xing Yang 743d3a26e9 Add generated files 2019-03-02 12:31:05 -08:00
Xing Yang bb45b8ee34 Make CSINodeInfo and CSIDriver Core APIs
This PR is the first step to transition CSINodeInfo and CSIDriver
CRD's to in-tree APIs. It adds them to the existing API group
“storage.k8s.io” as core storage APIs.
2019-03-02 12:31:05 -08:00
Kubernetes Prow Robot cfe4ca8012
Merge pull request #73934 from bsalamat/num_cpu
Use runtime.NumCPU() instead of a fixed value for parallel scheduler threads
2019-03-01 23:04:17 -08:00
Kubernetes Prow Robot f16035600a
Merge pull request #73807 from dekkagaijin/discovery-hardening
harden the default RBAC discovery clusterrolebindings
2019-03-01 21:49:30 -08:00
stewart-yu ecbd5427e7 auto-generated file 2019-03-02 12:55:26 +08:00
stewart-yu fc54de589f fix all the reference about the API packages change 2019-03-02 12:54:33 +08:00
stewart-yu e01ff1641c move config local to every controllers in kube-controller-manager 2019-03-02 12:54:33 +08:00
Kubernetes Prow Robot cb89d8028a
Merge pull request #74769 from msau42/local-pv-ga
move local PV to GA
2019-03-01 19:14:34 -08:00
Kubernetes Prow Robot d8d260a09d
Merge pull request #74755 from liggitt/kubelet-watch
Revert kubelet to default to ttl cache secret/configmap behavior
2019-03-01 19:14:14 -08:00
Kubernetes Prow Robot ced9e30990
Merge pull request #74576 from datuanmac/trivial_fix_typos
Trivial fix typo
2019-03-01 19:14:03 -08:00
Jake Sanders 9c7d31928d harden the default RBAC discovery clusterrolebindings 2019-03-01 18:45:05 -08:00
Kubernetes Prow Robot 9b8c58644a
Merge pull request #74418 from danielqsj/duration
convert latency/latencies in metrics name to duration
2019-03-01 17:58:12 -08:00
Jean Rouge 5e3f3b35e0 Review comments
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-03-01 17:57:39 -08:00
Michelle Au 5f0847b515 move local PV to GA 2019-03-01 12:51:25 -08:00
Lubomir I. Ivanov e29c6e1b38 go-1.12: fix 'go vet' failures 2019-03-01 18:48:17 +02:00
Kubernetes Prow Robot 8c95a07b4b
Merge pull request #73007 from krmayankk/runasgroup
Promote RunAsGroup to Beta
2019-03-01 03:46:55 -08:00
Kubernetes Prow Robot a5ba825b1b
Merge pull request #74715 from andyzhangx/acr-public-access
fix Azure Container Registry anonymous repo image pull error
2019-03-01 02:29:40 -08:00
WanLinghao 1133f24b7a Remove 404 link in kubectl help information 2019-03-01 18:17:08 +08:00
Dr. Stefan Schimanski 2a9a9fa155 kube-apiserver: first remove endpoints, then add when ready 2019-03-01 10:46:18 +01:00
Kubernetes Prow Robot caaad1be26
Merge pull request #72526 from justinsb/testdata_should_not_be_executable
Remove executable permission from testdata
2019-02-28 20:35:56 -08:00
Kubernetes Prow Robot 4f01eb528e
Merge pull request #74336 from littleroad/exited_container
cri_stats_provider: Implement removeTerminatedContainer correctly
2019-02-28 19:12:07 -08:00
Mayank Kumar 1b1251277c Promote RunAsGroup to Beta 2019-02-28 17:24:39 -08:00
Kubernetes Prow Robot f6d05d6315
Merge pull request #74611 from denkensk/fix-unable-find-backoff-value
fix the flake in scheduling_queue_test
2019-02-28 16:06:57 -08:00
Jordan Liggitt cd1c9f9018 Revert kubelet to default to ttl cache secret/configmap behavior 2019-02-28 17:54:22 -05:00
Jean Rouge 1908a0ce04 Fixing a small bug with GMSA support
A previous PR (https://github.com/kubernetes/kubernetes/pull/73726)
added GMSA support to the dockershim. Unfortunately, there was a
bug in there: the registry keys used to pass the cred specs down
to Docker were being cleaned up too early, right after the containers'
creation - before Docker would ever try to read them, when trying to
actually start the container.

This patch fixes this.

An e2e test is also provided in a separate PR.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
2019-02-28 10:26:54 -08:00
wojtekt 6dce4d87a3 Fix secret/configmap management for terminated pods 2019-02-28 18:59:53 +01:00
andyzhangx 3c7de52cc2 add Azure Container Registry anonymous repo support
apply fix for msi and fix test failure
2019-02-28 12:16:21 +00:00
Fabio Bertinatto 32c0af42e6 Remove last pieces of mount propagation gate 2019-02-28 13:05:02 +01:00
Kubernetes Prow Robot 36787041cb
Merge pull request #73653 from ddebroy/migprov1
Support dynamic provisioning for CSI migration scenarios
2019-02-28 01:52:55 -08:00
Kubernetes Prow Robot 711b310389
Merge pull request #74606 from andrewsykim/cleanup-volumeattachment
replace usage of v1beta1 VolumeAttachments with v1
2019-02-28 00:27:36 -08:00
WanLinghao cb9da96cc9 Remove duplicate package import 2019-02-28 16:26:20 +08:00
Kubernetes Prow Robot 4b1282d925
Merge pull request #74016 from ahadas/topology_cleanup
Cleanup in topology.go
2019-02-27 22:49:24 -08:00
Lu Fengqi 3f8eda37ce cri_stats_provider: overload nil as 0 for exited containers stats
Always report 0 cpu/memory usage for exited containers to make
metrics-server work as expect.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
2019-02-28 10:41:15 +08:00
Kubernetes Prow Robot ce4229f2cc
Merge pull request #74682 from soltysh/fix_flag_template
Fix flag template when both visible and explicit flags are specified
2019-02-27 17:13:12 -08:00
Jing Xu 5e04d200ee Add GcePD windows support
This PR adds the support for GCEPD volume. For now, it uses a workaround
(https://github.com/pjh/gce-tools) to get disk number in windows for a given GCE PD name.
2019-02-27 17:00:32 -08:00
ksubrmnn 0173545b56 Allow Overlay loadbalancing to Public IP 2019-02-27 16:27:08 -08:00
Kubernetes Prow Robot 84dce4d119
Merge pull request #74393 from codenrhoden/refactor-subpath
Refactor subpath out of pkg/util/mount
2019-02-27 15:54:36 -08:00
Kubernetes Prow Robot bf2c9ccec7
Merge pull request #74122 from draveness/feature/refactor-filter-active-pods
refactor: use FilterActivePods instead in replicaset controller
2019-02-27 15:54:25 -08:00
wangqingcan 471679f8d2 fix the flake in scheduling_queue_test 2019-02-28 07:23:27 +08:00
zhouhaibing089 68beadefe4 validation: allow trailing period in dns search
The trailing period tells the resolver to stop immediately instead
of trying recursively. With that said, trailing period should be
acceptable in searches.
2019-02-27 14:21:52 -08:00
Maciej Szulik b4f81285bf
Fix flag template when both visible and explicit flags are specified 2019-02-27 22:35:03 +01:00
Andrew Kim 01933b02a3 replace usage of v1beta1 VolumeAttachments with v1 2019-02-27 15:42:12 -05:00
Dr. Stefan Schimanski 14f2a335dc endpoint-reconcilers: split stop and remove 2019-02-27 17:19:33 +01:00
Kubernetes Prow Robot 6e8b5691db
Merge pull request #74599 from andyzhangx/azuredisk-log
add more logging in azure disk attach/detach
2019-02-27 05:48:44 -08:00
Yecheng Fu 8940976602 Distinguish volume path with mount path 2019-02-27 19:31:26 +08:00
Kubernetes Prow Robot a514fa042e
Merge pull request #74636 from logicalhan/reflector-metrics
Remove reflector metrics since they are causing a memory leak
2019-02-27 03:24:09 -08:00
Kubernetes Prow Robot 02bd660ad8
Merge pull request #74573 from m3ngyang/comments-typo
fix some comment typos
2019-02-27 03:23:58 -08:00
Draven df190a0197
fix: typo in stateful_set_control 2019-02-27 18:16:50 +08:00
Kubernetes Prow Robot 218642e84e
Merge pull request #74562 from roycaihw/feat/admission-webhook-timeout
admission webhook: timeout configuration
2019-02-26 23:40:44 -08:00
Han Kang ca096f8069 Remove reflector metrics as they currently cause a memory leak 2019-02-26 20:11:22 -08:00
Kubernetes Prow Robot 09d07cf4e1
Merge pull request #74633 from Random-Liu/lower-normal-log-level
Lower the log level for non-exist cadvisor stats.
2019-02-26 19:40:46 -08:00
Kubernetes Prow Robot 5c528d6e40
Merge pull request #74618 from davidz627/fix/featureGates
Add feature gate check for migration at beginning of useCSIPlugin check
2019-02-26 19:40:26 -08:00
Kubernetes Prow Robot 81e6407393
Merge pull request #74140 from Liujingfang1/kflag
add -k flag in cli-runtime and kubectl to process kustomization directories
2019-02-26 19:40:16 -08:00
Kubernetes Prow Robot 9059021d9a
Merge pull request #67350 from tnozicka/retry-watcher
#50102 Task 3: Until, backed by retry watcher
2019-02-26 19:40:01 -08:00
Travis Rhoden 2c4d748bed Refactor subpath out of pkg/util/mount
This patch moves subpath functionality out of pkg/util/mount and into a
new package pkg/volume/util/subpath. NSEnter funtionality is maintained.
2019-02-26 19:59:53 -07:00
Kubernetes Prow Robot 5ebdf3e3f2
Merge pull request #74574 from SataQiu/fix-golint-20190226
fix some golint failures in pkg/registry/...
2019-02-26 18:12:19 -08:00
Kubernetes Prow Robot 4b82f8c7ec
Merge pull request #74157 from misterikkit/backoff
Ensure that pods obey backoff timers.
2019-02-26 16:50:13 -08:00
Lantao Liu f9b8d27cef Lower the log level for non-exist cadvisor stats.
For exited container, it is quite normal that cri stats
are returned, but there is no corresponding cadvisor stats.
2019-02-26 16:43:42 -08:00
Haowei Cai 1a25ced1c7 generated 2019-02-26 15:00:35 -08:00
Haowei Cai ad0d523d6e tests 2019-02-26 14:44:31 -08:00
Haowei Cai 1cd9162c15 default and validation 2019-02-26 14:41:43 -08:00
Haowei Cai 609527a015 webhook timeout API change 2019-02-26 14:39:28 -08:00
Kubernetes Prow Robot a66c6e459c
Merge pull request #74378 from dims/do-not-use-ghodss-yaml-in-k/k
Avoid using ghodss/yaml - switch to our forked repo
2019-02-26 14:07:44 -08:00
Kubernetes Prow Robot 3f605a2337
Merge pull request #74285 from mourya007/selinux
Adding Selinux test in validation
2019-02-26 14:07:33 -08:00
Kubernetes Prow Robot 32333b0fc7
Merge pull request #74524 from bertinatto/iscsi_iface_exists
Don't fail if iface is being used by iSCSI session
2019-02-26 12:44:57 -08:00
Kubernetes Prow Robot be8a9b9637
Merge pull request #74422 from liggitt/client-version-methods
Remove deprecated versionless client interface methods
2019-02-26 12:44:24 -08:00
David Zhu b0b6fd035a Add feature gate check for migration at beginning of useCSIPlugin check 2019-02-26 11:47:20 -08:00
Andrew Kim 2901def8c3 delete the persistentvolume labeler controller 2019-02-26 14:23:20 -05:00
Travis Rhoden 766cf26897 Move original mount files back
Move original mount files back into pkg/util/mount. This move is done to
preserve git history.
2019-02-26 12:18:25 -07:00
Travis Rhoden f2438cacf5 Copy mount files to pkg/volume/util/subpath
Files in pkg/util/mount that contain significant code implementation for
subpaths are moved to a new package at pkg/volume/util/subpath. This
move is done in order to preserve git history.
2019-02-26 12:14:55 -07:00
Daniel (Shijun) Qian d648ba856b Move pkg/api/v1/node to pkg/util/node (#73656)
* merge pkg/api/v1/node with pkg/util/node

* update test case for utilnode

* remove package pkg/api/v1/node

* move isNodeReady to internal func

* Split GetNodeCondition into e2e and controller pkg

* fix import errors
2019-02-26 11:05:32 -08:00
Kubernetes Prow Robot e9a8d27bd4
Merge pull request #73266 from awh/kubectl-run-suppress-resource-deletion-messages-when-quiet
kubectl run --quiet suppresses deletion messages
2019-02-26 11:05:21 -08:00
Kubernetes Prow Robot fc1e528c4a
Merge pull request #72678 from rmohr/cr-autoscale
Add Custom Resource support to "kubectl autoscale"
2019-02-26 11:05:09 -08:00
Kubernetes Prow Robot cf24d24e66
Merge pull request #70647 from vshn/imagegc_multi_repo_image_removal
Always run untag when removing docker image
2019-02-26 11:04:58 -08:00
Kubernetes Prow Robot ba1164194c
Merge pull request #67568 from tsasaki609/add-jp-trans
Add new Japanese translations for kubectl
2019-02-26 11:04:47 -08:00
Jonathan Basseri df4d65d2e1 Ensure that pods obey backoff timers.
The function AddUnschedulableIfNotPresent is responsible for
initializing or updating backoff timers for pods that could not be
scheduled. The helper function backoffPod does that work, but was not
being called in all cases.

This moves that call to be (mostly) unconditional, while cleaning up
comments and error handling.
2019-02-26 10:21:18 -08:00
Kenichi Omichi ede5477697 Enable StorageObjectInUseProtection by default
StorageObjectInUseProtection plugin of admission controller adds
the flag `kubernetes.io/pvc-protection` or `kubernetes.io/pv-protection`
to newly created PVCs or PV. In case a user deletes a PVC or PV the PVC
or PV is not removed until the finalizer is removed from the PVC or PV
by PVC or PV Protection Controller.
We are testing this plugin on the e2e tests of "PV Protection" because
most setup scripts enable that like:

* cluster/centos/config-default.sh: Enabled
* cluster/gce/config-default.sh: Enabled
* cluster/gce/config-test.sh: Enabled
* cluster/kubemark/gce/config-default.sh: Enabled
* hack/local-up-cluster.sh: Enabled
* cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py: Disabled

As we are testing it normally, it is nice to enable the plugin by
default.
2019-02-26 18:08:44 +00:00
Deep Debroy 23478f104f PV Controller changes to support provisioning in CSI Migration scenarios
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2019-02-26 08:39:54 -08:00
Fabio Bertinatto d60d7e905f Don't fail if iface is being used by iSCSI session 2019-02-26 17:13:29 +01:00
Tomas Nozicka 603dd254ac Upgrade ListWatchUntil 2019-02-26 16:21:39 +01:00
SataQiu 9e4c8950be fix some golint failures in pkg/registry/... 2019-02-26 22:36:52 +08:00
andyzhangx 199ef0fba9 add more logging in azure disk attach/detach 2019-02-26 13:37:20 +00:00
Jordan Liggitt d1e865ee34 Update client callers to use explicit versions 2019-02-26 08:36:30 -05:00
Tuan Do Anh 8c505ccab8 Trivial fix typo
Although it is spelling mistakes, it might make an effect while reading.
2019-02-26 15:48:40 +07:00
Kubernetes Prow Robot b3ca8262be
Merge pull request #74499 from andyzhangx/fix-parse-devicePath-issue
fix parse devicePath issue on Azure Disk
2019-02-26 00:35:47 -08:00
Kubernetes Prow Robot d5007409f7
Merge pull request #74398 from andyzhangx/detach-azuredisk-retry
add retry for detach azure disk
2019-02-26 00:35:32 -08:00
m3ngyang 5fbdde4b4a fix some comment typos 2019-02-26 16:00:20 +08:00
Kubernetes Prow Robot 6c5810c495
Merge pull request #74542 from gnufied/make-cinder-limits-via-openshift-conf
Allow cinder volume limits to be configurable
2019-02-25 21:48:52 -08:00
Kubernetes Prow Robot 3c92a6d344
Merge pull request #74498 from feiskyer/fix-subnet
Fix subnet annotation checking for Azure internal loadbalancer
2019-02-25 21:48:32 -08:00
Kubernetes Prow Robot 44d13d3b77
Merge pull request #73726 from wk8/wk8/gmsa_alpha
Kubelet changes for Windows GMSA support
2019-02-25 21:48:21 -08:00
Jun Gong a916f1b28c Remove redundant checker whether pod has claims in func FindPodVolumes 2019-02-26 13:06:52 +08:00