Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor controller unit test with proper mock #268

Closed
wants to merge 325 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
325 commits
Select commit Hold shift + click to select a range
1c52331
Merge pull request #69 from bertinatto/switch_alpine
k8s-ci-robot Oct 22, 2018
ea952cb
Merge pull request #76 from leakingtapan/zone-doc
k8s-ci-robot Oct 23, 2018
4e86052
Rename e2e test to be integ test
Oct 24, 2018
4a26ffd
Fix gofmt
Oct 24, 2018
93bf949
Rename verify-all to verify-all.sh
Oct 24, 2018
28a33b0
Merge pull request #78 from leakingtapan/rename
k8s-ci-robot Oct 25, 2018
fdf872b
Add support for creating encrypted volume and unit test
Oct 24, 2018
b563f34
Merge pull request #80 from leakingtapan/kms
k8s-ci-robot Oct 26, 2018
2f8600c
Remove unit test and sanity test in favor of prow job
Oct 26, 2018
eaab0f0
Merge pull request #81 from leakingtapan/udpate-travis
Oct 26, 2018
a421b86
Update copyright years
Oct 29, 2018
3637146
Merge pull request #84 from leakingtapan/copyright
Oct 29, 2018
b2d9eab
Refactor `GetDevice` method.
Oct 29, 2018
797529b
Remove unnecessary error condition in `getDevicenamesInUse`
Oct 29, 2018
43eb05b
Switch to use docker hub repo amazon/aws-ebs-csi-driver
Oct 30, 2018
ea90fd2
Merge pull request #88 from leakingtapan/dockerhub
k8s-ci-robot Oct 31, 2018
b1335a9
Merge pull request #85 from leakingtapan/refactor-devmgr
k8s-ci-robot Oct 31, 2018
99128f5
Swtich to use amazon linux 2 as base image
Nov 1, 2018
fe3427d
Merge pull request #91 from leakingtapan/alinux
k8s-ci-robot Nov 2, 2018
0343448
Update driver version to 0.1.0-alpha
Oct 31, 2018
f1d58c9
Switch to use go 1.11.1 for travis
Nov 3, 2018
bfdbb68
Merge pull request #93 from leakingtapan/travis
Nov 3, 2018
d0d7869
Use session.Must to enforce a valid session is created
Nov 2, 2018
b515eac
Merge pull request #90 from leakingtapan/version
k8s-ci-robot Nov 3, 2018
6286f5e
Merge pull request #92 from leakingtapan/session
Nov 5, 2018
f94f56f
Fix misspelling
Nov 5, 2018
43552fe
Merge pull request #96 from leakingtapan/misspell
k8s-ci-robot Nov 6, 2018
97c944f
Add golint verification
Nov 5, 2018
e8ca56d
Fix errors reported by golangci-lint
Nov 5, 2018
0d3f11e
Merge pull request #95 from leakingtapan/golint
k8s-ci-robot Nov 7, 2018
c153845
Fix dockerfile by installing mount command from util-linux package
Nov 8, 2018
5e1dc28
Merge pull request #97 from leakingtapan/fix-dockerfile
k8s-ci-robot Nov 8, 2018
a223731
Add NOTICE and THIRD-PARTY attribution file
Nov 8, 2018
d0cd5bb
Merge pull request #98 from leakingtapan/attribution
k8s-ci-robot Nov 9, 2018
0edddba
Update README to be ready for alpha release
Nov 12, 2018
13e4b6b
Update sample manifest files to use alpha image
Nov 12, 2018
b9712dc
Merge pull request #100 from leakingtapan/doc-update
Nov 13, 2018
4785028
Merge pull request #103 from leakingtapan/update-sample
Nov 13, 2018
f95de78
Update README for creating encrypted volume
Nov 13, 2018
b9b1a46
Merge pull request #106 from leakingtapan/update-doc-kmd
Nov 14, 2018
4730da0
Update issue templates
Nov 14, 2018
68631b5
Merge pull request #108 from kubernetes-sigs/leakingtapan-patch-1
Nov 14, 2018
aa91b16
Create PULL_REQUEST_TEMPLATE.md
Nov 14, 2018
f1b6664
Merge pull request #109 from kubernetes-sigs/leakingtapan-patch-1
Nov 14, 2018
62d1bda
Move PULL_REQUEST_TEMPLATE.md to be under .github folder
Nov 14, 2018
edcaa7c
Merge pull request #110 from leakingtapan/template
Nov 14, 2018
9edaad5
Add docs folder to organize all documentation related files
Nov 14, 2018
a1257cf
Merge pull request #111 from leakingtapan/docs
Nov 15, 2018
27fa822
Update driver name and topology key
Nov 13, 2018
2cb18cb
Merge pull request #105 from leakingtapan/driver-name
Nov 15, 2018
9ffae2f
Update README
Nov 15, 2018
cbacdb4
Update issue templates
Nov 16, 2018
e95f9e0
Add SECURITY_CONTACTS
Nov 16, 2018
6354c2b
Merge pull request #114 from leakingtapan/user-test
Nov 16, 2018
085ba0b
Merge pull request #117 from leakingtapan/security-contact
Nov 16, 2018
027dacd
Merge pull request #116 from kubernetes-sigs/leakingtapan-patch-1
Nov 16, 2018
c79dd40
CSI 1.0: update dependencies
bertinatto Nov 19, 2018
9e70da6
CSI 1.0: update plugin code
bertinatto Nov 20, 2018
9fb8f70
CSI 1.0: update integration tests
bertinatto Nov 20, 2018
2c93773
CSI 1.0: update manifests
bertinatto Nov 21, 2018
81db270
Fix race condition in sanity checks
bertinatto Nov 21, 2018
1f3a5de
CSI 1.0: use v1.0-canary sidecar containers
bertinatto Nov 23, 2018
bdf32f9
Add CHANGELOG for v0.1.0 alpha release
Nov 17, 2018
1bb2b32
Fix runtime deployment diagram
Nov 27, 2018
fe02c4a
Merge pull request #125 from leakingtapan/fix-diag
k8s-ci-robot Nov 27, 2018
f760cf3
Merge pull request #121 from leakingtapan/release-note
k8s-ci-robot Nov 28, 2018
5bcd716
Remove unsupported MULTI_NODE_READER_ONLY volume capability
bertinatto Nov 28, 2018
c82ad87
Update atacher RBAC rules
bertinatto Nov 26, 2018
089639d
Revert "Add CHANGELOG for v0.1.0 alpha release"
Nov 28, 2018
bf77733
Merge pull request #128 from kubernetes-sigs/revert-121-release-note
Nov 28, 2018
e690e3e
Add CHANGELOG for v0.1.0
Nov 28, 2018
e7cf79e
Merge pull request #129 from leakingtapan/release-note
Nov 28, 2018
cf37778
Add mountOptions support
bertinatto Nov 29, 2018
1427376
Merge pull request #122 from bertinatto/update_csi
k8s-ci-robot Nov 29, 2018
678ae2e
Resolve memory addresses in log messages
bertinatto Nov 30, 2018
d273153
Add example IAM policy
callahanca Nov 30, 2018
6778a1b
Update README to refer to example IAM policy
callahanca Dec 1, 2018
444ae11
Merge pull request #133 from callahanca/iam-policy-template
k8s-ci-robot Dec 2, 2018
b24c325
Merge pull request #127 from bertinatto/remove_vol_capability
Dec 3, 2018
e10d452
Merge pull request #134 from kubernetes-sigs/next
bertinatto Dec 3, 2018
b8d583f
Merge pull request #132 from bertinatto/better_logging
Dec 3, 2018
a093b75
Partially revert PR #122 and add latest manifest files
Dec 4, 2018
03ca02f
Merge pull request #138 from leakingtapan/fix-manifest
k8s-ci-robot Dec 5, 2018
6b27d6c
Add version subcommand
dkoshkin Dec 4, 2018
a9bc44e
Merge pull request #136 from dkoshkin/version
k8s-ci-robot Dec 5, 2018
3ec98f4
Update Go version in builds and CI
dkoshkin Dec 6, 2018
0462b79
Bump vendored kubernetes to v1.12.3
dkoshkin Dec 5, 2018
ef73ad7
Merge pull request #140 from dkoshkin/vendored-kubernetes
k8s-ci-robot Dec 6, 2018
7c38af7
Refactor the code
Dec 2, 2018
26428b6
Merge pull request #135 from leakingtapan/next
Dec 9, 2018
a8c9e1a
Merge pull request #130 from bertinatto/add_mountoptions_support
Dec 9, 2018
261b01e
Wait for volume to become available
bertinatto Nov 28, 2018
e41ac12
Update dependencies
bertinatto Dec 12, 2018
611fc9e
Merge pull request #126 from bertinatto/wait_on_create
k8s-ci-robot Dec 13, 2018
24bb841
Fix README
Dec 12, 2018
c58ec74
m
Dec 14, 2018
aa3c2d9
Merge pull request #147 from leakingtapan/fix-readme
Dec 14, 2018
ee5a2b6
Fix Links in README (#148)
Dec 14, 2018
44ad0eb
Update docs
d-nishi Dec 15, 2018
1f8d480
Update based on comments
d-nishi Dec 16, 2018
436e3a7
Merge pull request #149 from d-nishi/update-docs
k8s-ci-robot Dec 16, 2018
fd12459
Bump driver version to 0.2.0 (#154)
Dec 21, 2018
8036446
Fix integration test
Dec 21, 2018
d6fff19
Merge pull request #156 from leakingtapan/fix-integration
Dec 21, 2018
9ab7396
Add simple e2e test cases
dkoshkin Dec 7, 2018
d7869fb
Use k8s.io/klog instead of github.com/golang/glog
dkoshkin Dec 21, 2018
5608a28
Merge pull request #151 from mesosphere/e2e
k8s-ci-robot Dec 22, 2018
28812a4
use aws-k8s-tester for test-integration
Dec 19, 2018
d147ca5
Merge pull request #153 from kschumy/move-test-integration
k8s-ci-robot Dec 24, 2018
b9186bb
Fix klog flag init
dkoshkin Dec 26, 2018
dfcf8d7
Merge pull request #160 from mesosphere/klog-init
k8s-ci-robot Dec 26, 2018
b5b90c1
Add var for pr num and flag for vpc with test-integration
Dec 25, 2018
0679f5d
Merge pull request #162 from kschumy/test-integration-with-prow
k8s-ci-robot Dec 28, 2018
ca8c08d
Makefile: change csi flag to pr-num for test-integration
Jan 4, 2019
89e4342
Makefile: update hardcoded latest aws-k8s-tester release
gyuho Jan 7, 2019
5cc9007
Merge pull request #172 from gyuho/change-csi-flag
k8s-ci-robot Jan 7, 2019
6c77dfe
Update doc for integration test
Jan 3, 2019
3e1febf
Merge pull request #166 from leakingtapan/update-doc
Jan 7, 2019
7dc6a4c
Fix an error when creating a volume with topology feature gate
dkoshkin Dec 21, 2018
67d0ef1
Add internal inflight database manager
Dec 21, 2018
ff89f1d
Merge pull request #157 from mesosphere/topology
k8s-ci-robot Jan 8, 2019
46beb4a
Rename VolumeNameTagKey
Jan 8, 2019
9da5aae
Merge pull request #163 from mesosphere/sreis/idempotent
k8s-ci-robot Jan 8, 2019
0ae4f82
Merge pull request #174 from leakingtapan/rename-key
Jan 9, 2019
0e5d677
Fix NodeStageVolume returning prematurely
dkoshkin Jan 9, 2019
80c3c2f
Update deploy/ directory with latest csi images
dkoshkin Dec 22, 2018
df44e0c
Removed deploy/ examples for pre v1.13
dkoshkin Jan 4, 2019
02256e2
Merge pull request #171 from mesosphere/csi-images
k8s-ci-robot Jan 17, 2019
456f11e
Merge pull request #176 from mesosphere/node-stage-volume
k8s-ci-robot Jan 20, 2019
826f9b4
Update driver manifest files
Jan 20, 2019
d0ab4f9
Merge pull request #181 from leakingtapan/manifest
Jan 21, 2019
7c6a40b
Refactor file structure
Jan 21, 2019
01af21b
Merge pull request #184 from leakingtapan/example
k8s-ci-robot Jan 22, 2019
6c5f968
Add unit tests for node service.
Jan 23, 2019
57e0237
Merge pull request #187 from mesosphere/sreis/node-unit-tests
k8s-ci-robot Jan 25, 2019
8fe9a50
Added more e2e tests
dkoshkin Jan 17, 2019
a35b5df
Merge pull request #173 from mesosphere/e2e-tests
Jan 25, 2019
6857b60
Update run-e2e-test script to setup cluster
Jan 21, 2019
601143a
Check if target path is mounted before unmounting
Jan 21, 2019
b08e521
Merge pull request #186 from leakingtapan/e2e-shim
Jan 25, 2019
74082e9
Update e2e test script to create ssh key
Jan 26, 2019
8f5a425
Merge pull request #191 from leakingtapan/e2e-shim
Jan 26, 2019
0214828
Merge pull request #183 from mesosphere/sreis/node-unstage-volume
k8s-ci-robot Jan 26, 2019
1a236cc
Update manifest to use 0.2.0 driver
Jan 28, 2019
e017a88
Fix the e2e test script to tolerate image tag
Jan 28, 2019
ceb3fc0
Merge pull request #193 from leakingtapan/manifest
Jan 30, 2019
1a1e76e
Update THIRD-PARTY attribution
Jan 31, 2019
41bb2ff
Merge pull request #195 from leakingtapan/update-att
Jan 31, 2019
8905bff
Update CHANGELOG for 0.2.0 release
Jan 25, 2019
047bbd5
Merge pull request #190 from leakingtapan/changelog
Jan 31, 2019
811021b
Update README
Jan 31, 2019
e0ede8a
Merge pull request #196 from leakingtapan/readme
Jan 31, 2019
262da61
Refactor util package and add unit tests
Feb 1, 2019
ddb067e
Merge pull request #197 from leakingtapan/util
Feb 3, 2019
0202fa3
Add verify target
Feb 3, 2019
46bd6cf
Merge pull request #200 from leakingtapan/make-verify
Feb 3, 2019
6b1599c
Strip symbol for production build
Feb 5, 2019
cb5b29c
Merge pull request #201 from leakingtapan/strip
Feb 7, 2019
76ea2fe
Fix race condition in DynamicallyProvisionedDeletePodTest
dkoshkin Feb 7, 2019
5c8c87b
Rename verify-all file name
Feb 8, 2019
ea9fedc
Merge pull request #204 from leakingtapan/verify
Feb 8, 2019
c42f46a
Remove vendor directory
Feb 1, 2019
fd6fe90
Merge pull request #198 from leakingtapan/vendor
Feb 9, 2019
174466d
Merge pull request #203 from mesosphere/dkoshkin/fix-delete-pod-test
k8s-ci-robot Feb 11, 2019
dfd04f7
Update all unit tests to use go subtest
Feb 11, 2019
b4f2714
Merge pull request #205 from leakingtapan/test
Feb 11, 2019
0c44242
Fix link in readme
Feb 12, 2019
befb89e
Merge pull request #208 from leakingtapan/readme
Feb 13, 2019
3b439d8
Create constants for keys used in map lookup
Feb 13, 2019
17737e6
Use the same directory to place our csi.sock in and remove obsolete v…
frittentheke Feb 14, 2019
d27bc81
Merge pull request #211 from leakingtapan/constant
Feb 14, 2019
d7769e2
Merge pull request #212 from frittentheke/mountFix
k8s-ci-robot Feb 15, 2019
601cec6
Fix conflicts for merging snapshot
Feb 18, 2019
2d4fcde
Add snapshot examples
tsmetana Feb 13, 2019
42dcc72
Don't wait for the snapshot to be completed
tsmetana Feb 13, 2019
e686069
Add more unit testcases
Feb 18, 2019
a21f378
Merge pull request #218 from leakingtapan/snapshot
k8s-ci-robot Feb 20, 2019
cfd025f
Implement raw block volume support
Feb 12, 2019
33ac2c5
Merge pull request #215 from leakingtapan/raw
Feb 21, 2019
d330605
Add fake cloud provider parameter to NewFakeDriver.
Feb 19, 2019
15e94ae
Add tests for ControllerPublish and ControllerUnpublish requests.
Feb 19, 2019
5cfef82
Merge pull request #219 from mesosphere/sreis/controller-unit-tests
k8s-ci-robot Feb 21, 2019
a33aec5
Minor updates to fake package
Feb 19, 2019
15334de
Merge pull request #222 from leakingtapan/fake-clean
Feb 21, 2019
1fe9aa0
Fix bug in e2e test
Feb 24, 2019
4446579
Use default kubeconfig location
dkoshkin Feb 26, 2019
9364336
Merge pull request #227 from mesosphere/dkoshkin/kubeconfig
k8s-ci-robot Feb 26, 2019
7d1243e
Merge pull request #224 from leakingtapan/e2e
k8s-ci-robot Feb 26, 2019
c7a44eb
New block volume e2e tests
dkoshkin Feb 26, 2019
feb5cb9
Merge pull request #226 from mesosphere/dkoshkin/block-volume-e2e
k8s-ci-robot Feb 27, 2019
832611e
fix a bug when capacity range is nil
Feb 27, 2019
2c6882d
Merge pull request #229 from leakingtapan/cap-range
k8s-ci-robot Feb 27, 2019
d67f187
Add liveness probe
Feb 26, 2019
5df6ee7
Remove imagePullPolicy in favor of image pull best practise
Feb 28, 2019
aec4592
Merge pull request #225 from leakingtapan/livenessprobe
k8s-ci-robot Mar 1, 2019
55166b6
Minor change to rename field name for global mount path
Mar 2, 2019
3d2c24f
Merge pull request #230 from leakingtapan/raw
k8s-ci-robot Mar 3, 2019
7e18d7d
Implement device path discovery for NVMe support
Mar 3, 2019
ad2c0e3
Cleanup README and examples
dkoshkin Mar 5, 2019
77633c2
Merge pull request #232 from mesosphere/dkoshkin/readme-and-examples
k8s-ci-robot Mar 6, 2019
d35ada5
Merge pull request #231 from leakingtapan/nvme
Mar 6, 2019
0c39910
Update image for runtime deployment
Mar 7, 2019
5079ee9
Merge pull request #236 from leakingtapan/img
Mar 7, 2019
8bb1cb7
New volume snapshot e2e tests
dkoshkin Feb 26, 2019
f46fbe8
Merge pull request #235 from mesosphere/dkoshkin/snapshot-e2e
k8s-ci-robot Mar 11, 2019
f94fa4b
Add example for blockk volume
Mar 12, 2019
7913f2a
Merge pull request #238 from leakingtapan/readme
Mar 12, 2019
f6a812c
Update driver README
Mar 14, 2019
49dc886
Merge pull request #239 from leakingtapan/readme
Mar 15, 2019
9d9f93e
Update example folder name
Mar 16, 2019
495b6b6
Update driver version
Mar 16, 2019
39d13f8
Merge pull request #240 from leakingtapan/readme
Mar 16, 2019
7b2f339
Merge pull request #241 from leakingtapan/version
Mar 16, 2019
3c8c330
Update CHANGELOG for 0.3 release
Mar 18, 2019
3fc5d4b
Merge pull request #244 from leakingtapan/changelog
Mar 18, 2019
d9c838b
Update driver image tag to 0.3 for release
Mar 19, 2019
bedd599
Merge pull request #245 from leakingtapan/release
Mar 20, 2019
1a39248
Make secret optional
Mar 20, 2019
ee65575
Post 0.3 documentation changes
Mar 20, 2019
ddffec6
Merge pull request #248 from leakingtapan/changelog
Mar 20, 2019
e46343b
Add release script
Mar 20, 2019
69e46fa
Merge pull request #249 from leakingtapan/release-script
Mar 20, 2019
1e3df0c
Merge pull request #247 from leakingtapan/opt-secrect
Mar 21, 2019
ccb9e89
Combine driver manifests
Mar 24, 2019
5c4138f
Merge pull request #254 from leakingtapan/mainfest
Mar 24, 2019
5127f01
Add support for XFS filesystem
Mar 24, 2019
1b49d86
Remove mount type for node publish
Mar 25, 2019
be31827
Merge pull request #253 from leakingtapan/xfs
Mar 26, 2019
74682a4
Merge pull request #258 from leakingtapan/remove-node-mount-type
Mar 27, 2019
8af465d
Update README for driver permission
Mar 31, 2019
e45d637
Merge pull request #260 from leakingtapan/readme
Apr 2, 2019
b0a9cd2
Refactor driver to modularize node service and controller service
Mar 25, 2019
c73557d
Merge pull request #257 from leakingtapan/refactor-controller-node
Apr 3, 2019
19c60af
Upgrade CSI spec to 1.1.0
Apr 3, 2019
613c54a
Progress
zacharya Apr 3, 2019
274066e
Merge pull request #263 from leakingtapan/csi-1.1
Apr 4, 2019
35b64da
Bump driver version
Apr 4, 2019
3fb1944
Merge pull request #266 from leakingtapan/version
k8s-ci-robot Apr 4, 2019
b04a002
Progress
zacharya Apr 4, 2019
005378a
Progress
zacharya Apr 4, 2019
0ce0aba
Done with CreateVolume tests
zacharya Apr 4, 2019
73c2a04
Done with CreateVolume tests
zacharya Apr 4, 2019
e63fb2c
Done with DeleteVolume tests
zacharya Apr 4, 2019
c641e86
Done with TestDeleteSnapshot
zacharya Apr 4, 2019
1125984
Done with all of controller_test.ga
zacharya Apr 5, 2019
a3f0fe9
cleanup controller error logic
zacharya Apr 5, 2019
e3e4349
Done with node_test.go
zacharya Apr 5, 2019
c0c3b1c
done with tests
zacharya Apr 5, 2019
72cd8cb
fin
zacharya Apr 5, 2019
e56ad01
merging upstream
zacharya Apr 5, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Bug report
about: Create a report to help us improve EBS CSI Driver
labels:

---

/kind bug

**What happened?**

**What you expected to happen?**

**How to reproduce it (as minimally and precisely as possible)?**

**Anything else we need to know?**:

**Environment**
- Kubernetes version (use `kubectl version`):
- Driver version:
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Enhancement request
about: Suggest an idea for this project
labels:

---

**Is your feature request related to a problem?/Why is this needed**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

/feature

**Describe the solution you'd like in detail**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
labels:

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like in detail**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/support-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Support request
about: Ask questions about the driver
labels:

---

<!--
STOP -- PLEASE READ!

GitHub is not the right place for support requests.

If you're looking for help, post your question on the [Kubernetes Slack ](http://slack.k8s.io/) Sig-AWS Channel.

If the matter is security related, please disclose it privately via https://kubernetes.io/security/.
-->

<!-- DO NOT EDIT BELOW THIS LINE -->

/triage support
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**Is this a bug fix or adding new feature?**

**What is this PR about? / Why do we need it?**

**What testing is done?**
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ Vagrantfile

# vim
*.swp

# go
vendor/
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: go
go_import_path: github.com/kubernetes-sigs/aws-ebs-csi-driver
dist: xenial
env:
global:
- GO111MODULE=on

go:
- "1.11.4"

before_install:
- go get github.com/mattn/goveralls

script:
- make
- go test -covermode=count -coverprofile=profile.cov ./pkg/...
- $GOPATH/bin/goveralls -coverprofile=profile.cov -service=travis-ci
89 changes: 89 additions & 0 deletions CHANGELOG-0.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# v0.3.0
[Documentation](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/v0.3.0/docs/README.md)

filename | sha512 hash
--------- | ------------
[v0.3.0.zip](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/archive/v0.3.0.zip) | `27a7a1cd4fc7a8afa1c0dd8fb3ce4cb1d9fc7439ebdbeba7ac0bfb0df723acb654a92f88270bc68ab4dd6c8943febf779efa8cbebdf3ea2ada145ff7ce426870`
[v0.3.0.tar.gz](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/archive/v0.3.0.tar.gz) | `9126a3493f958aaa4727bc62b1a5c545ac8795f08844a605541aac3d38dea8769cee12c7db94f44179a91af7e8702174bba2533b4e30eb3f32f9b8338101a5db`

## Action Required
* None

## Upgrade Driver
Driver upgrade should be performed one version at a time by using following steps:
1. Delete the old driver controller service and node service along with other resources including cluster roles, cluster role bindings and service accounts.
1. Deploy the new driver controller service and node service along with other resources including cluster roles, cluster role bindings and service accounts.

## Changes since v0.2.0
See [details](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/compare/v0.2.0...master) for all the changes.

### Notable changes
* Strip symbol for production build ([#201](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/201), [@leakingtapan](https://github.com/leakingtapan/))
* Remove vendor directory ([#198](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/198), [@leakingtapan](https://github.com/leakingtapan/))
* Use same mount to place in the csi.sock, remove obsolete volumes ([#212](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/212), [@frittentheke](https://github.com/frittentheke/))
* Add snapshot support ([#131](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/131), [@tsmetana](https://github.com/tsmetana/))
* Add snapshot examples ([#210](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/210), [@tsmetana](https://github.com/tsmetana/))
* Implement raw block volume support ([#215](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/215), [@leakingtapan](https://github.com/leakingtapan/))
* Add unit tests for ControllerPublish and ControllerUnpublish requests ([#219](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/219), [@sreis](https://github.com/sreis/))
* New block volume e2e tests ([#226](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/226), [@dkoshkin](https://github.com/dkoshkin/))
* Implement device path discovery for NVMe support ([#231](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/231), [@leakingtapan](https://github.com/leakingtapan/))
* Cleanup README and examples ([@232](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/232), [@dkoshkin](https://github.com/dkoshkin/))
* New volume snapshot e2e tests ([#235](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/235), [@dkoshkin](https://github.com/dkoshkin/))

# v0.2.0
[Documentation](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/v0.2.0/docs/README.md)

filename | sha512 hash
--------- | ------------
[v0.2.0.zip](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/archive/v0.2.0.zip) | `a9733881c43dfb788f6c657320b6b4acdd8ee9726649c850282f8a7f15f816a6aa5db187a5d415781a76918a30ac227c03a81b662027c5b192ab57a050bf28ee`
[v0.2.0.tar.gz](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/archive/v0.2.0.tar.gz) | `0d7a3efd0c1b0c6bf01b08c3cbd48d867aeab1cf1f7f12274f42d561f64526c0345f23d5947ddada7a333046f101679eea620c9ab8985f9d4d1c8c3f28de49ce`

## Action Required
* Upgrade the Kubernetes cluster to 1.13+ before deploying the driver. Since CSI 1.0 is only supported starting from Kubernetes 1.13.

## Upgrade Driver
Driver upgrade should be performed one version at a time by using following steps:
1. Delete the old driver controller service and node service along with other resources including cluster roles, cluster role bindings and service accounts.
1. Deploy the new driver controller service and node service along with other resources including cluster roles, cluster role bindings and service accounts.

## Changes since v0.1.0
See [details](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/compare/v0.1.0...v0.2.0) for all the changes.

### Notable changes
* Update to CSI 1.0 ([#122](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/122), [@bertinatto](https://github.com/bertinatto/))
* Add mountOptions support ([#130](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/130), [@bertinatto](https://github.com/bertinatto/))
* Resolve memory addresses in log messages ([#132](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/132), [@bertinatto](https://github.com/bertinatto/))
* Add version flag ([#136](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/136), [@dkoshkin](https://github.com/dkoshkin/))
* Wait for volume to become available ([#126](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/126), [@bertinatto](https://github.com/bertinatto/))
* Add first few e2e test cases #151 ([#151](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/151/commits), [@dkoshkin](https://github.com/dkoshkin/))
* Make test-integration uses aws-k8s-tester ([#153](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/153), [@kschumy](https://github.com/kschumy))
* Rename VolumeNameTagKey ([#161](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/issues/161), [@leakingtapan](https://github.com/leakingtapan/))
* CSI image version and deployment manifests updates ([#171](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/171), [@dkoshkin](https://github.com/dkoshkin/))
* Update driver manifest files ([#181](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/181), [@leakingtapan](https://github.com/leakingtapan/))
* More e2e tests ([#173](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/173), [@dkoshkin](https://github.com/dkoshkin/))
* Update run-e2e-test script to setup cluster ([#186](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/186), [@leakingtapan](https://github.com/leakingtapan/))
* Check if target path is mounted before unmounting ([#183](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/183), [@sreis](https://github.com/sreis/))

# v0.1.0
[Documentation](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/v0.1.0/docs/README.md)

## Downloads for v0.1.0

filename | sha512 hash
--------- | ------------
[v0.1.0.zip](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/archive/v0.1.0.zip) | `03841418496e292c3f91cee7942b545395bce049e9c4d2305532545fb82ad2e5189866afec2ed937924e144142b0b915a9467bac42e9f2b881181aba6aa80a68`
[v0.1.0.tar.gz](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/archive/v0.1.0.tar.gz) | `106b6c2011acd42b0f10117b7f104ab188dde798711e98119137cf3d8265e381df09595b8e861c0c9fdcf8772f4a711e338e822602e98bfd68f54f9e1c7f8f16`

## Changelog since initial commit

### Notable changes
* Update driver name and topology key ([#105](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/105), [@leakingtapan](https://github.com/leakingtapan/))
* Add support for creating encrypted volume and unit test ([#80](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/80), [@leakingtapan](https://github.com/leakingtapan/))
* Implement support for storage class parameter - volume type ([#73](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/73), [@leakingtapan](https://github.com/leakingtapan/))
* Implement support for storage class parameter - fsType ([#67](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/67), [@leakingtapan](https://github.com/leakingtapan/))
* Add missing capability and clusterrole permission to enable tology awareness scheduling ([#61](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/commit/2873e0b), [@leakingtapan](https://github.com/leakingtapan/))
* Wait for correct attachment state ([#58](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/58), [@bertinatto](https://github.com/bertinatto/))
* Implement topology awareness support for dynamic provisioning ([#42](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/42), [@leakingtapan](https://github.com/leakingtapan/))
* Wait for volume status in e2e test ([#34](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/34), [@bertinatto](https://github.com/bertinatto/))
* Update cloud provider interface to take in context ([#45](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/45), [@leakingtapan](https://github.com/leakingtapan/))
* Initial driver implementation ([9ba4c5d](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/commit/9ba4c5d), [@bertinatto](https://github.com/bertinatto/))
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Contributing guidelines

## Sign the CLA

Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests. Please see https://git.k8s.io/community/CLA.md for more info

### Contributing A Patch

1. Submit an issue describing your proposed change to the repo in question.
1. The [repo owners](OWNERS) will respond to your issue promptly.
1. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
1. Fork the desired repo, develop and test your code changes.
1. Submit a pull request.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.11.4-stretch as builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
ADD . .
RUN make

FROM amazonlinux:2
RUN yum install ca-certificates e2fsprogs xfsprogs util-linux -y
COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver /bin/aws-ebs-csi-driver

ENTRYPOINT ["/bin/aws-ebs-csi-driver"]
Loading