Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Mikhail Mazurskiy
55bc668f8d
Seed math/rand in TestMain before tests are executed
2018-10-11 22:07:45 +11:00
Cheng Xing
8555408f42
Removing CRD installation from attach detach controller
2018-09-18 14:25:15 -07:00
saad-ali
fdeb895d25
Automatically install CRDs during controller init
2018-08-31 12:25:59 -07:00
Jan Safranek
7d673cb8f0
Pass new CSI API Client and informer to Volume Plugins
2018-08-31 12:25:59 -07:00
Yecheng Fu
17ab4c36ce
attachdetach controller: attach volumes immediately when Pod's PVCs are bound
...
- Add integration test for this feature
2018-08-14 01:03:21 +08:00
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
lichuqiang
bccc8fe979
Provision interface change
2018-06-05 16:35:16 +08:00
David Eads
94e3d94d67
update tests to be specific about the versions they are testing instead of floating
2018-05-01 13:18:41 -04:00
wackxu
b3ba80b223
update bazel
2018-02-27 20:23:36 +08:00
wackxu
f737ad62ed
update import
2018-02-27 20:23:35 +08:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00
Jan Safranek
c96c0495f4
Pass pod informer to PV controller
2018-02-05 15:40:25 +01:00
Ian Chakeres
98e2c8cdee
Validate that PV capacity and PVC capacity requests are greater than zero
2017-11-13 08:57:01 -08:00
Dr. Stefan Schimanski
cad0364e73
Update bazel
2017-10-18 17:24:04 +02:00
Dr. Stefan Schimanski
7773a30f67
pkg/api/legacyscheme: fixup imports
2017-10-18 17:23:55 +02:00
Jeff Grafton
aee5f457db
update BUILD files
2017-10-15 18:18:13 -07:00
Dr. Stefan Schimanski
637fe0844c
e2e/integration: simplify deepcopy calls
2017-08-29 20:11:50 +02:00
Cheng Xing
396c3c7c6f
Adding dynamic Flexvolume plugin discovery capability, using filesystem watch.
2017-08-25 11:42:32 -07:00
Jeff Grafton
a7f49c906d
Use buildozer to delete licenses() rules except under third_party/
2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be
Use buildozer to remove deprecated automanaged tags
2017-08-11 09:31:50 -07:00
Dr. Stefan Schimanski
1910b5a1dd
Fix code implicitly casting clientsets to getters
2017-08-06 15:30:13 +02:00
Dr. Stefan Schimanski
5925a0a1df
Move pkg/api/v1/ref -> client-go/tools/reference
2017-07-18 22:45:43 +02:00
Jacob Simpson
8bcbbd4d08
Migrate api.Registry to testapi.Groups in tests.
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
Mike Danese
6ae11fdc5d
use testmain in integration tests
2017-07-12 17:34:55 -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
Kubernetes Submit Queue
d07a0200c7
Merge pull request #47656 from jsafrane/speed-up-volume-integration
...
Automatic merge from submit-queue
Speed up PV integration tests
Integration tests are ~20 seconds shorter. Before (with #47645 applied):
```
--- PASS: TestPodDeletionWithDswp (3.70s)
--- PASS: TestPodUpdateWithWithADC (3.61s)
--- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (3.59s)
--- PASS: TestPodAddedByDswp (5.69s)
--- PASS: TestPersistentVolumeRecycler (2.68s)
--- PASS: TestPersistentVolumeDeleter (12.61s)
--- PASS: TestPersistentVolumeBindRace (12.53s)
--- PASS: TestPersistentVolumeClaimLabelSelector (12.52s)
--- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (2.62s)
--- PASS: TestPersistentVolumeMultiPVs (3.98s)
--- PASS: TestPersistentVolumeMultiPVsPVCs (3.67s)
--- PASS: TestPersistentVolumeControllerStartup (7.41s)
--- PASS: TestPersistentVolumeProvisionMultiPVCs (4.85s)
--- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (2.71s)
ok k8s.io/kubernetes/test/integration/volume 82.304s
```
After:
```
--- PASS: TestPodDeletionWithDswp (3.70s)
--- PASS: TestPodUpdateWithWithADC (3.61s)
--- PASS: TestPodUpdateWithKeepTerminatedPodVolumes (3.63s)
--- PASS: TestPodAddedByDswp (5.73s)
--- PASS: TestPersistentVolumeRecycler (3.53s)
--- PASS: TestPersistentVolumeDeleter (4.56s)
--- PASS: TestPersistentVolumeBindRace (3.52s)
--- PASS: TestPersistentVolumeClaimLabelSelector (3.52s)
--- PASS: TestPersistentVolumeClaimLabelSelectorMatchExpressions (3.49s)
--- PASS: TestPersistentVolumeMultiPVs (3.07s)
--- PASS: TestPersistentVolumeMultiPVsPVCs (3.94s)
--- PASS: TestPersistentVolumeControllerStartup (7.64s)
--- PASS: TestPersistentVolumeProvisionMultiPVCs (6.25s)
--- PASS: TestPersistentVolumeMultiPVsDiffAccessModes (3.55s)
ok k8s.io/kubernetes/test/integration/volume 59.945s
```
/assign @gnufied
@kubernetes/sig-storage-pr-reviews
Release note
```release-note
NONE
```
2017-06-26 08:54:09 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07: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
714545d61f
Speed up PV integration tests
2017-06-16 16:02:45 +02: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
Hemant Kumar
97368fc0f2
Speed up volume integration test
2017-06-08 15:44:09 -04: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
deads2k
be39283923
plumb stopch to post start hook index since many of them are starting go funcs
2017-05-11 09:16:13 -04:00
Mike Danese
21617a60ae
don't use build tags to mark integration tests
2017-04-28 14:19:39 -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
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
Kubernetes Submit Queue
08ea5387f2
Merge pull request #44566 from wongma7/adc-wait
...
Automatic merge from submit-queue (batch tested with PRs 44469, 44566, 44467, 44526)
WaitForCacheSync before running attachdetach controller
@gnufied you wrote the test and @ncdc the TODO comment. Let's just run the pv and pvc informers, we do not care about them in this test. But we want to be able to stop the pod Informer at will, hence not just using informers.Start, is my understanding.
```release-note
NONE
```
2017-04-17 20:06:58 -07:00
Chao Xu
4f9591b1de
move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod
2017-04-17 11:38:11 -07:00
Matthew Wong
e1ce33d944
WaitForCacheSync before running attachdetach controller
2017-04-17 14:02:33 -04:00
NickrenREN
e0ef5bfd40
Exit from NewController() for PersistentVolumeController when InitPlugins() failed just like NewAttachDetachController() does
2017-04-12 13:43:09 +08:00
Kubernetes Submit Queue
e0817ef832
Merge pull request #42381 from timchenxiaoyu/createdtypo
...
Automatic merge from submit-queue
fix created typo
2017-03-24 10:25:48 -07:00
Hemant Kumar
1a6c36da53
Fix dswp flake - from pod not showing in dswp
...
Sometimes a pod may not appear in desired state
of world immediately, we poll before failing.
It only adds additional 30s to tests in worst case.
2017-03-15 10:12:25 -04:00
Jan Safranek
94e78eabc0
integration tests: use attributes instead of beta annotations
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
Jan Safranek
a39bd53509
Explicitly use storage.k8s.io/v1beta1 everywhere.
...
v1 is not yet awailable on GKE and tests would fail.
2017-03-02 08:56:26 +01:00
timchenxiaoyu
c02fd6d28e
fix created typo
2017-03-02 09:26:30 +08:00