Hemant Kumar
8d46912e7f
Add metrics for attachable volumes in use
2018-06-28 11:50:51 -04:00
Mike Danese
91feb345aa
implement service account token projection
2018-06-04 17:22:08 -07:00
Michelle Au
6cf8a6606c
Only count mounts that are from other pods
2018-04-19 15:40:51 -07:00
Yecheng Fu
55ef18ad42
Report events to apiserver in local volume plugin.
...
- Add VolumeHost.GetEventRecorder() method
- Add related e2e tests
2018-04-18 11:19:36 +08:00
Mikhail Mazurskiy
468655b76a
Use typed events client directly
2018-04-01 18:57:29 +10:00
wackxu
f737ad62ed
update import
2018-02-27 20:23:35 +08:00
wackxu
cd48a6745a
mini fix about typo
2018-01-26 15:42:57 +08:00
mlmhl
0e6ac1df76
fix populateDesiredStateOfWorld bug for attach/detach controller
2018-01-07 17:45:42 +08:00
Vladimir Vivien
7405159558
VolumeHost.GetNodeName method added for CSI fix
2017-12-02 05:54:54 -05:00
mtanino
8903e8cd85
BlockVolumesSupport: CRI, VolumeManager and OperationExecutor changes
...
This patch contains following changes.
- container runtime changes for adding block devices
- volumemanager changes
- operationexecutor changes
2017-11-20 14:10:26 -05:00
Kevin
4c8539cece
use core client with explicit version globally
2017-10-27 15:48:32 +08:00
Kubernetes Submit Queue
2aa0704c0e
Merge pull request #51754 from huzhengchuan/fix/event_name
...
Automatic merge from submit-queue (batch tested with PRs 51754, 53261, 53450). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md ">here</a>.
Rename the name of event source in controller-manager
**What this PR does / why we need it**: Make the event source more obvious
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #51753
**Special notes for your reviewer**:
**Release note**:
```
NONE
```
2017-10-04 13:13:15 -07:00
Hemant Kumar
8edae9b3fc
Always populate volume status from node
2017-09-12 09:03:42 -04:00
zhengchuan hu
2b8891a59f
rename the name of eventsource in controller-manager
2017-09-04 23:30:59 +08:00
Cheng Xing
396c3c7c6f
Adding dynamic Flexvolume plugin discovery capability, using filesystem watch.
2017-08-25 11:42:32 -07:00
Jan Safranek
bc0e170d9c
Add pluginName to VolumeHost.GetMouter
...
Different plugins can get different mounter, depending where the mount
utilities are.
2017-08-14 12:16:26 +02:00
Jan Safranek
282404cbc9
Add Exec interface to VolumeHost
...
This exec should be used by volume plugins to execute mount utilities.
It will eventually execute things in mount containers.
2017-08-14 12:16:25 +02:00
supereagle
adc0eef43e
remove duplicated import and wrong alias name of api package
2017-07-25 10:04:25 +08:00
Chao Xu
9d489c8504
manual changes
2017-07-17 15:05:38 -07:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Kubernetes Submit Queue
d19a2841e3
Merge pull request #47645 from jsafrane/integration-test-speedup
...
Automatic merge from submit-queue (batch tested with PRs 48139, 48042, 47645, 48054, 48003)
Speed up attach/detach controller integration tests
Internal attach/detach controller timers should be configurable and tests should use much shorter values.
`reconcilerSyncDuration` is deliberately left out of `TimerConfig` because it's the only one that's not a constant one, it's configurable by user.
Fixes #47129
Before:
```
--- PASS: TestPodDeletionWithDswp (63.21s)
--- PASS: TestPodUpdateWithWithADC (13.68s)
--- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (13.55s)
--- PASS: TestPodAddedByDswp (183.01s)
--- PASS: TestPersistentVolumeRecycler (12.55s)
--- PASS: TestPersistentVolumeDeleter (12.54s)
--- PASS: TestPersistentVolumeBindRace (3.51s)
--- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
--- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.54s)
--- PASS: TestPersistentVolumeMultiPVs (3.05s)
--- PASS: TestPersistentVolumeMultiPVsPVCs (4.36s)
--- PASS: TestPersistentVolumeControllerStartup (7.29s)
--- PASS: TestPersistentVolumeProvisionMultiPVCs (5.02s)
--- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
ok k8s.io/kubernetes/test/integration/volume 359.727s
```
After:
```
--- PASS: TestPodDeletionWithDswp (3.71s)
--- PASS: TestPodUpdateWithWithADC (3.63s)
--- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (3.70s)
--- PASS: TestPodAddedByDswp (5.68s)
--- PASS: TestPersistentVolumeRecycler (12.54s)
--- PASS: TestPersistentVolumeDeleter (12.55s)
--- PASS: TestPersistentVolumeBindRace (3.55s)
--- PASS: TestPersistentVolumeClaimLabelSelector (12.50s)
--- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (12.52s)
--- PASS: TestPersistentVolumeMultiPVs (3.98s)
--- PASS: TestPersistentVolumeMultiPVsPVCs (3.85s)
--- PASS: TestPersistentVolumeControllerStartup (7.18s)
--- PASS: TestPersistentVolumeProvisionMultiPVCs (5.23s)
--- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (12.48s)
ok k8s.io/kubernetes/test/integration/volume 103.267s
```
PV controller tests are the slowest ones now.
@kubernetes/sig-storage-pr-reviews
/assign @gnufied
```release-note
NONE
```
2017-06-27 14:08:17 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f2d3220a11
run root-rewrite-import-client-go-api-types
2017-06-22 11:30:59 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Kubernetes Submit Queue
d0a2beb1e7
Merge pull request #42249 from justinsb/volumes_logging
...
Automatic merge from submit-queue (batch tested with PRs 42252, 42251, 42249, 47512, 47887)
volumes: Add logging when removing node fails
Part of #40583
```release-note
NONE
```
2017-06-21 22:13:30 -07:00
Jan Safranek
b28790a63b
Speed up attach/detach controller integration tests
...
Internal attach/detach controller timers should be configurable and tests
should use much shorter values.
reconcilerSyncDuration is deliberately left out of TimerConfig because it's
the only one that's not a constant one, it's configurable by user.
2017-06-16 12:15:04 +02:00
Shyam Jeedigunta
4425864707
Migrate kubelet configmap management logic to an interface
2017-05-31 10:39:36 +02:00
Kubernetes Submit Queue
0aad9d30e3
Merge pull request #44897 from msau42/local-storage-plugin
...
Automatic merge from submit-queue (batch tested with PRs 46076, 43879, 44897, 46556, 46654)
Local storage plugin
**What this PR does / why we need it**:
Volume plugin implementation for local persistent volumes. Scheduler predicate will direct already-bound PVCs to the node that the local PV is at. PVC binding still happens independently.
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
Part of #43640
**Release note**:
```
Alpha feature: Local volume plugin allows local directories to be created and consumed as a Persistent Volume. These volumes have node affinity and pods will only be scheduled to the node that the volume is at.
```
2017-05-30 23:20:02 -07:00
NickrenREN
add091b1fb
fix regression in UX experience for double attach volume
...
send event when volume is not allowed to multi-attach
2017-05-25 09:27:24 +08:00
Michelle Au
6ade5461ad
Add GetNodeLabels to VolumeHost interface
2017-05-22 14:44:06 -07:00
Hemant Kumar
951a36aac7
Add Keepterminatedpodvolumes as a annotation on node
...
and lets make sure that controller respects it
and doesn't detaches mounted volumes.
2017-05-11 22:31:14 -04:00
Hemant Kumar
9a1a9cbe08
detach the volume when pod is terminated
...
Make sure volume is detached when pod is terminated because
of any reason and not deleted from api server.
2017-05-11 22:18:22 -04:00
Tomas Smetana
852c44ae59
Fix issue #34242 : Attach/detach should recover from a crash
...
When the attach/detach controller crashes and a pod with attached PV is deleted
afterwards the controller will never detach the pod's attached volumes. To
prevent this the controller should try to recover the state from the nodes
status.
2017-04-20 13:04:50 +02:00
NickrenREN
5cafb9042b
find and add active pods for dswp
...
loops through the list of active pods and ensures that each one exists in the desired state of the world cache
2017-04-18 11:21:37 +08:00
Matthew Wong
e1ce33d944
WaitForCacheSync before running attachdetach controller
2017-04-17 14:02:33 -04:00
Andy Goldstein
e63fcf708d
Make controller Run methods consistent
...
- startup/shutdown logging
- wait for cache sync logging
- defer utilruntime.HandleCrash()
- wait for stop channel before exiting
2017-04-14 07:27:45 -04:00
Tomas Smetana
6898bc60ce
Attach/detach controller: fix potential race in constructor
2017-03-17 13:34:53 +01:00
Justin Santa Barbara
b7edfda828
volumes: Add logging when removing node fails
2017-02-28 10:17:33 -05:00
deads2k
fd34b11e13
react to informer updates
2017-02-13 09:18:32 -05:00
Andy Goldstein
70c6087600
Replace hand-written informers with generated ones
...
Replace existing uses of hand-written informers with generated ones.
Follow-up commits will switch the use of one-off informers to shared
informers.
2017-02-06 13:49:27 -05:00
deads2k
8a12000402
move client/record
2017-01-31 19:14:13 -05:00
deads2k
b0b156b381
make tools/cache authoritative
2017-01-25 08:29:45 -05:00
Wojciech Tyczynski
bf7138652f
SecretVolume using secret manager
2017-01-23 16:10:01 +01:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Kubernetes Submit Queue
7c3fff1a95
Merge pull request #39551 from chrislovecnm/reconciler-time-increases
...
Automatic merge from submit-queue (batch tested with PRs 39628, 39551, 38746, 38352, 39607)
Increasing times on reconciling volumes fixing impact to AWS.
#**What this PR does / why we need it**:
We are currently blocked by API timeouts with PV volumes. See https://github.com/kubernetes/kubernetes/issues/39526 . This is a workaround, not a fix.
**Special notes for your reviewer**:
A second PR will be dropped with CLI cobra options in it, but we are starting with increasing the reconciliation periods. I am dropping this without major testing and will test on our AWS account. Will be marked WIP until I run smoke tests.
**Release note**:
```release-note
Provide kubernetes-controller-manager flags to control volume attach/detach reconciler sync. The duration of the syncs can be controlled, and the syncs can be shut off as well.
```
2017-01-10 11:54:15 -08:00
chrislovecnm
ac49139c9f
updates from review
2017-01-09 17:20:19 -07:00
chrislovecnm
a973c38c7d
The capability to control duration via controller-manager flags,
...
and the option to shut off reconciliation.
2017-01-09 16:47:13 -07:00
NickrenREN
639572ac68
fix redundant alias and remove unused function
2017-01-09 17:13:09 +08:00
rkouj
d5f7610b82
Refactor operation_executor to make it unit testable
2016-12-27 15:12:16 -08:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00