mkimuram
0ee71f0cc2
Add binding error message for volumeMode:Block unsupported case
...
This commit adds a binding error message for volumeMode:Block
unsupported case.
With this message, users can understand why PV is not bound to
PVC on both dynamic provisioning and manually creating volume.
This patch works as follows:
- In syncVolume, before adding the claim to claimQueue, check if
there is a volumeMode mismatch, and if there is, record the
event for both pv and pvc and skip adding to the queue.
fixes : #59942
2018-04-16 15:22:35 -04:00
Jan Safranek
c96c0495f4
Pass pod informer to PV controller
2018-02-05 15:40:25 +01:00
Jan Safranek
691fec5e34
Don't bind PVs and PVCs with different access modes.
...
PVC pre-bound to a PV can bind to the PV only if it has correct access mode.
Report an event if it does not and keep the PVC Pending.
2018-01-24 09:48:38 +01:00
Michelle Au
58823a75a4
In findMatchingVolumes:
...
- Delay binding until Pod is scheduled
- Check for PV node affinity and access modes
- Exclude volumes from being matching
2017-11-21 21:42:35 -08:00
Scott Creeley
74fcd97c84
fixing issue of feature gate not being turned off properly
2017-11-21 15:19:18 -05:00
Scott Creeley
86742a2c92
VolumeMode binding logic update
2017-11-20 15:18:19 -05:00
Chao Xu
cde4772928
run ./root-rewrite-all-other-apis.sh, then run make all, pkg/... compiles
2017-06-22 11:30:52 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Jan Safranek
9d0c47f1db
Use storage.v1 instead of v1beta1
...
storage.v1beta1 was used to work around GKE which does not expose v1. Now that
GKE is updated, we can switch everything to v1.
2017-04-25 10:13:38 +02:00
NickrenREN
f922af5138
make sure that the volume satisfies the requirements of the claim before binding
...
check if the volume requested by the claim satisfies the requirements of the claim before binding when
syncUnboundClaim and claim.Spec.VolumeName is not set
2017-04-04 01:03:37 +08:00
Jan Safranek
52adaa16e0
PV controller: use attributes instead of beta annotations in unit tests
2017-03-02 10:23:56 +01:00
Jan Safranek
7ae4152712
Move PV/PVC annotations to PV/PVC types.
...
They aren't part of storage.k8s.io/v1 or v1beta1 API.
Also move associated *GetClass functions.
2017-03-02 10:23:55 +01:00
Jordan Liggitt
41c88e0455
Revert "Merge pull request #40088 from jsafrane/storage-ga-v1"
...
This reverts commit 5984607cb9
, reversing
changes made to 067f92e789
.
2017-02-25 22:35:15 -05:00
Jan Safranek
fa93f1c411
Update imports
2017-02-24 13:52:16 +01:00
Jan Safranek
13546e5ea4
PV binding: send an event when there are no PVs to bind
...
This is similar to scheduler that says "no nodes available to schedule pods"
when it can't schedule a pod.
2017-02-02 13:30:53 +01:00
Chao Xu
7eeb71f698
cmd/kube-controller-manager
2016-11-23 15:53:09 -08:00
Scott Creeley
86f1a94be5
Adding default StorageClass annotation printout for resource_printer
2016-10-19 10:59:07 -04:00
deads2k
cd5b6cc491
move StorageClass to its own group
2016-09-06 08:41:17 -04:00
Jan Safranek
d8a95a3785
Update matching logic with storage class
...
- no default StorageClass
- PVC.Spec.Class == nil means the same as PVC.Spec.Class == ""
2016-08-18 10:36:50 +02:00
Jan Safranek
6e4d95f646
Dynamic provisioning V2 controller, provisioners, docs and tests.
2016-08-18 10:36:49 +02:00
Jan Safranek
3c5364954b
Fix PVC.Status.Capacity and AccessModes after binding
...
Also, fix unit tests to have the same claim and volume sizes in most of the
tests where we don't test matching based on size and test for a specific size
when we do actually test the matching.
2016-08-08 10:45:42 +02:00
saadali
0dd17fff22
Reorganize volume controllers and manager
2016-07-01 18:50:25 -07:00