Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
64088f5
helm chart configurable log verbosity
May 27, 2021
ffaac3f
release v1.1.0
vdhanan Jun 3, 2021
a1c2b72
bump patch version in helm chart to trigger release
vdhanan Jun 4, 2021
990cf33
Merge pull request #921 from vdhanan/master
k8s-ci-robot Jun 4, 2021
9404623
Update driver capabilities
Jun 4, 2021
b7876b7
Create nodes in all zones to exercise more topology tests
Jun 4, 2021
aeb816f
Fix podLabels case in Helm chart
eytanhanig Jun 8, 2021
454fdb4
Merge pull request #925 from eytanhanig/helm-pod-labels-fix
k8s-ci-robot Jun 8, 2021
383299e
update inFlight cache to avoid race condition on volume operation
AndyXiangLi Jun 9, 2021
2a1c770
Merge pull request #924 from AndyXiangLi/create-volume-idempotent
k8s-ci-robot Jun 9, 2021
1ea2f79
Disable xfs uuids
jsafrane May 31, 2021
407367a
Merge pull request #908 from wongma7/loglevel
k8s-ci-robot Jun 9, 2021
ab70907
Merge pull request #922 from wongma7/testcapabilities
k8s-ci-robot Jun 9, 2021
ccc060a
Merge pull request #913 from jsafrane/multivolume-test
k8s-ci-robot Jun 9, 2021
a2d7b76
Refactor metadata.go to test that k8s client is initialized iff ec2 m…
May 25, 2021
8a379cf
Add test-e2e-external-eks make rule
May 26, 2021
236495f
Remove hostNetwork from daemonset yamls
May 26, 2021
1aaedbb
Don't try to create the controller serviceAccount in helm because eks…
May 27, 2021
bc52c8f
Bump EKS to 1.20
Jun 1, 2021
38b0165
Make helm values, kops patch, and eksctl patch files optional
Jun 9, 2021
54f1649
Merge pull request #907 from wongma7/metadatatest
k8s-ci-robot Jun 10, 2021
3c8119f
Add KubernetesCluster tag to provisioned volumes when cluster-id set
Jun 11, 2021
6fdb52a
Grant EKSCTL_ADMIN_ROLE admin access to eksctl clusters
Jun 11, 2021
9098337
Patch Node InstanceGroup, set Node count
Jun 14, 2021
5e9fb10
Fix check for whether test docker image has been built
Jun 15, 2021
9febc3e
Default extra-create-metadata true so that volumes get created with p…
Jun 15, 2021
0d9a1a5
Merge pull request #937 from wongma7/tags
k8s-ci-robot Jun 16, 2021
ce6a2e1
Merge pull request #932 from wongma7/legacytag
k8s-ci-robot Jun 16, 2021
0d91174
Default controller.extra-create-metadata true so that volumes get cre…
Jun 16, 2021
d8587da
Bump helm chart to 1.2.3
Jun 16, 2021
9ced044
Exercise example policy in tests
Jun 16, 2021
74da18e
Set k8s-tag-cluster-id to non-empty value in tests so that CSI tags v…
Jun 16, 2021
59a0bb1
Add permission to Create/Delete ec2:ResourceTag/kubernetes.io/cluster…
Jun 16, 2021
6135f47
Merge pull request #933 from wongma7/eksctldeleter
k8s-ci-robot Jun 17, 2021
3496317
Update README to say the CSI needs permission to Delete KCM-created v…
Jun 16, 2021
26ee354
Merge pull request #941 from wongma7/helmcreatemetadata
k8s-ci-robot Jun 17, 2021
3abc1af
Adding CRDs VolumeSnapshotClass, VolumeSnapshotContent, VolumeSnapsho…
missingcharacter Jun 17, 2021
8b6ddd0
Merge pull request #940 from wongma7/iampolicy
k8s-ci-robot Jun 18, 2021
7aed0f2
Set actual cluster name as k8s-tag-cluster-id instead of dummy value
Jun 18, 2021
b40a0a2
Add migration upgrade/downgrade test
Jun 8, 2021
fbd9b4e
Implement Windows NodePublish/Unpublish
Apr 7, 2021
a996761
Add Windows node example for developers
Apr 7, 2021
51f9f71
Sync node-windows.yaml with latest (linux) node.yaml
Jun 3, 2021
dded803
Merge pull request #823 from wongma7/windowsforreal
k8s-ci-robot Jun 22, 2021
250aa52
Revert "Fix kustomize RBAC bindings to have namespace kube-system"
therealdwright Jun 22, 2021
a65953a
Merge pull request #947 from TheRealDwright/revert-kustomize-changes
k8s-ci-robot Jun 22, 2021
a991210
Stop pushing latest tag and remove all references to it
Jun 22, 2021
3ca4d85
Renamed crds/snapshot-controller.yaml -> crds/snapshot-controller-crd…
missingcharacter Jun 22, 2021
6441ca8
Merge pull request #938 from missingcharacter/snapshot-crds
k8s-ci-robot Jun 22, 2021
44184d9
Clarify that using instance profile for permission requires instance …
Jun 23, 2021
951bafe
Merge pull request #952 from wongma7/readmeinstanceprofile
k8s-ci-robot Jun 23, 2021
e175fe6
Merge pull request #927 from wongma7/upgradetest
k8s-ci-robot Jun 25, 2021
5f7fc35
Merge pull request #949 from wongma7/windowsbuild
k8s-ci-robot Jun 30, 2021
fbda2a0
[helm-chart] csi-snapshotter in ebs-csi-controller now checks for ena…
missingcharacter Jul 1, 2021
3b2f497
Merge pull request #960 from missingcharacter/fix-issue-942
k8s-ci-robot Jul 1, 2021
8f15cf3
Release v1.1.1 and chart v1.2.4
Jul 1, 2021
e0938d0
Download fixed version of eksctl to avoid bugs
Jul 6, 2021
ca5813d
Merge pull request #967 from wongma7/fixeks
k8s-ci-robot Jul 7, 2021
ca95ddc
Merge pull request #959 from wongma7/1.1.1-master
k8s-ci-robot Jul 7, 2021
c938f0e
Install snapshot controller independently of helm for e2e tests
Jul 7, 2021
168310e
Merge pull request #968 from wongma7/fixeks
k8s-ci-robot Jul 8, 2021
cc90377
Add ebs-plugin additionalArgs
mkkatica Jul 8, 2021
25adfed
fixed a typo
mkkatica Jul 8, 2021
8baf512
Uncomment additionalArgs in values
mkkatica Jul 12, 2021
0bba02a
Fix typo in the CHANGELOG
ialidzhikov Jul 12, 2021
8382640
Merge pull request #971 from ialidzhikov/nit/typo
k8s-ci-robot Jul 12, 2021
4ea7f65
Merge pull request #970 from mkkatica/feature/allow-add-debug-args
k8s-ci-robot Jul 13, 2021
82a010e
Remove deprecated values and increase minimum helm version
krmichel Jul 5, 2021
cb71ab4
Remove installation of snapshot controller and add it as a prerequisite
krmichel Jul 5, 2021
5bdc103
Allow non-string values for extra volume tags
krmichel Jul 5, 2021
6e2b237
Add documentation about breaking changes
krmichel Jul 7, 2021
0fbd9f7
Updates for suggestions from PR
krmichel Jul 8, 2021
127c7f1
Make sidecar log levels configurable
krmichel Jul 9, 2021
528a23b
Update chart changelog
krmichel Jul 10, 2021
28e7878
Reorganize extra environment variable values
krmichel Jul 13, 2021
69450f5
Merge pull request #965 from krmichel/master
k8s-ci-robot Jul 13, 2021
6d89302
Update to csi-proxy v1.0.0-rc.1, run go mod tidy && go mod vendor
Jul 6, 2021
7d9d6c7
Update to csi-proxy v1 APIs
Jul 6, 2021
a2261de
Update windows daemonset to csiproxy v1 paths
Jul 7, 2021
4aef531
Update windows example prerequisites to latest (planned) versions of …
Jul 7, 2021
d1416bc
Add WINDOWS bool to hack/e2e/run.sh for creating eksctl windows node …
Jul 8, 2021
9c98a43
Update windows daemonset to better match helm chart v2 linux daemonset
Jul 13, 2021
3254a8d
Add how to consume new hack/e2e scripts in other repos (efs/fsx)
Jul 13, 2021
6b60177
Merge pull request #966 from wongma7/csiproxyv1
k8s-ci-robot Jul 13, 2021
18e1b63
Merge pull request #972 from wongma7/hacke2ereadme
k8s-ci-robot Jul 14, 2021
01d09b0
Updated README.md and changes to version in snapshot example
nirmalaagash Jul 16, 2021
fde8c01
Merge pull request #976 from nirmalaagash/master
k8s-ci-robot Jul 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ jobs:
- name: Set environment variables
run: |
BRANCH=$(echo $GITHUB_REF | cut -d'/' -f3)
SHORT_SHA=$(echo $GITHUB_SHA | cut -c -7)
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
if [ "$BRANCH" = "master" ]; then
TAG="latest"
TAG=$SHORT_SHA
else
TAG=$BRANCH
fi
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ Vagrantfile
*.swp

# IntelliJ
.idea/
.idea/

#MacOS system files
*.DS_Store
33 changes: 33 additions & 0 deletions CHANGELOG-0.x.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# v1.1.1

### Bug fixes
- update inFlight cache to avoid race condition on volume operation ([#924](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/924), [@AndyXiangLi](https://github.com/AndyXiangLi))

# v1.1.0

## Notable changes
- Helm chart cleaned up ([#856](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/856), [@krmichel](https://github.com/krmichel))

### New features
* Add podAnnotations to snapshotController StatefulSet ([#884](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/884), [@snstanton](https://github.com/snstanton))
* Support custom pod labels in Helm chart ([#905](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/905), [@eytanhanig](https://github.com/eytanhanig))

### Bug fixes
* fix naming mistake in clusterrolebinding, expose env var to controller via downward api ([#874](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/874), [@vdhanan](https://github.com/vdhanan))
* Fix kustomize RBAC bindings to have namespace kube-system ([#878](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/878), [@wongma7](https://github.com/wongma7))
* rename node clusterrolebinding to make auto upgrade work ([#894](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/894), [@vdhanan](https://github.com/vdhanan))
* remove hardcoded namespace for pod disruption budget ([#895](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/895), [@vdhanan](https://github.com/vdhanan))
* Only initialize the in-cluster kube client when metadata service is actually unavailable ([#897](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/897), [@chrisayoub](https://github.com/chrisayoub))
* Reduce default log level to 2 ([#903](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/903), [@wongma7](https://github.com/wongma7))
* Add pod disruption budgets that got missed in a rebase ([#906](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/906), [@krmichel](https://github.com/krmichel))
* remove WellKnownTopologyKey from PV Topology ([#912](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/912), [@Elbehery](https://github.com/Elbehery))
* Skip volume expansion if block node ([#916](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/916), [@gnufied](https://github.com/gnufied))

### Misc.
* Add eksctl support to e2e scripts ([#852](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/852), [@wongma7](https://github.com/wongma7))
* release v1.0.0 ([#865](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/865), [@vdhanan](https://github.com/vdhanan))
* add self as owner ([#866](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/866), [@vdhanan](https://github.com/vdhanan))
* bump helm chart version ([#881](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/881), [@vdhanan](https://github.com/vdhanan))
* add custom useragent suffix ([#910](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/910), [@vdhanan](https://github.com/vdhanan))
* Bump chart-releaser-action to v1.2.1 ([#914](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/914), [@gliptak](https://github.com/gliptak))

# v1.0.0
## Notable changes
- With this release, the EBS CSI Driver is now Generally Available!
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.15.6 AS builder
FROM golang:1.16 AS builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
COPY . .
RUN make
Expand Down
23 changes: 23 additions & 0 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019 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 --platform=$BUILDPLATFORM golang:1.16 AS builder
WORKDIR /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver
COPY . .
RUN make bin/aws-ebs-csi-driver.exe

FROM mcr.microsoft.com/windows/servercore:1809
COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver.exe /aws-ebs-csi-driver.exe

ENTRYPOINT ["/aws-ebs-csi-driver.exe"]
72 changes: 35 additions & 37 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

PKG=github.com/kubernetes-sigs/aws-ebs-csi-driver
IMAGE?=amazon/aws-ebs-csi-driver
VERSION=v1.0.0
VERSION=v1.1.1
VERSION_AMAZONLINUX=$(VERSION)-amazonlinux
GIT_COMMIT?=$(shell git rev-parse HEAD)
BUILD_DATE?=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
Expand All @@ -31,6 +31,10 @@ GOBIN=$(shell pwd)/bin
bin/aws-ebs-csi-driver: | bin
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -ldflags ${LDFLAGS} -o bin/aws-ebs-csi-driver ./cmd/

.PHONY: bin/aws-ebs-csi-driver.exe
bin/aws-ebs-csi-driver.exe: | bin
CGO_ENABLED=0 GOOS=windows go build -mod=vendor -ldflags ${LDFLAGS} -o bin/aws-ebs-csi-driver.exe ./cmd/

bin /tmp/helm /tmp/kubeval:
@mkdir -p $@

Expand Down Expand Up @@ -77,6 +81,8 @@ test-sanity:
test-e2e-single-az:
AWS_REGION=us-west-2 \
AWS_AVAILABILITY_ZONES=us-west-2a \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME' \
EBS_INSTALL_SNAPSHOT="true" \
TEST_PATH=./tests/e2e/... \
GINKGO_FOCUS="\[ebs-csi-e2e\] \[single-az\]" \
GINKGO_SKIP="\"sc1\"|\"st1\"" \
Expand All @@ -86,14 +92,18 @@ test-e2e-single-az:
test-e2e-multi-az:
AWS_REGION=us-west-2 \
AWS_AVAILABILITY_ZONES=us-west-2a,us-west-2b,us-west-2c \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME' \
EBS_INSTALL_SNAPSHOT="true" \
TEST_PATH=./tests/e2e/... \
GINKGO_FOCUS="\[ebs-csi-e2e\] \[multi-az\]" \
./hack/e2e/run.sh

.PHONY: test-e2e-migration
test-e2e-migration:
AWS_REGION=us-west-2 \
AWS_AVAILABILITY_ZONES=us-west-2a \
AWS_AVAILABILITY_ZONES=us-west-2a,us-west-2b,us-west-2c \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME' \
EBS_INSTALL_SNAPSHOT="true" \
TEST_PATH=./tests/e2e-kubernetes/... \
GINKGO_FOCUS="\[ebs-csi-migration\]" \
EBS_CHECK_MIGRATION=true \
Expand All @@ -102,33 +112,28 @@ test-e2e-migration:
.PHONY: test-e2e-external
test-e2e-external:
AWS_REGION=us-west-2 \
AWS_AVAILABILITY_ZONES=us-west-2a \
AWS_AVAILABILITY_ZONES=us-west-2a,us-west-2b,us-west-2c \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME' \
EBS_INSTALL_SNAPSHOT="true" \
TEST_PATH=./tests/e2e-kubernetes/... \
GINKGO_FOCUS="External.Storage" \
GINKGO_SKIP="\[Disruptive\]|\[Serial\]" \
./hack/e2e/run.sh

.PHONY: image-release
image-release:
docker build -t $(IMAGE):$(VERSION) . --target debian-base
docker build -t $(IMAGE):$(VERSION_AMAZONLINUX) . --target amazonlinux

.PHONY: image
image:
docker build -t $(IMAGE):latest . --target debian-base

.PHONY: image-amazonlinux
image-amazonlinux:
docker build -t $(IMAGE):latest . --target amazonlinux

.PHONY: push-release
push-release:
docker push $(IMAGE):$(VERSION)
docker push $(IMAGE):$(VERSION_AMAZONLINUX)

.PHONY: push
push:
docker push $(IMAGE):latest
.PHONY: test-e2e-external-eks
test-e2e-external-eks:
CLUSTER_TYPE=eksctl \
K8S_VERSION="1.20" \
HELM_VALUES_FILE="./hack/values_eksctl.yaml" \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME' \
EBS_INSTALL_SNAPSHOT="true" \
EKSCTL_ADMIN_ROLE="Infra-prod-KopsDeleteAllLambdaServiceRoleF1578477-1ELDFIB4KCMXV" \
AWS_REGION=us-west-2 \
AWS_AVAILABILITY_ZONES=us-west-2a,us-west-2b \
TEST_PATH=./tests/e2e-kubernetes/... \
GINKGO_FOCUS="External.Storage" \
GINKGO_SKIP="\[Disruptive\]|\[Serial\]" \
./hack/e2e/run.sh

.PHONY: verify-vendor
test: verify-vendor
Expand All @@ -144,22 +149,15 @@ generate-kustomize: bin/helm
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrole-csi-node.yaml > ../../deploy/kubernetes/base/clusterrole-csi-node.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrole-provisioner.yaml > ../../deploy/kubernetes/base/clusterrole-provisioner.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrole-resizer.yaml > ../../deploy/kubernetes/base/clusterrole-resizer.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrole-snapshot-controller.yaml > ../../deploy/kubernetes/base/clusterrole-snapshot-controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrole-snapshotter.yaml > ../../deploy/kubernetes/base/clusterrole-snapshotter.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-attacher.yaml -n kube-system > ../../deploy/kubernetes/base/clusterrolebinding-attacher.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-csi-node.yaml -n kube-system > ../../deploy/kubernetes/base/clusterrolebinding-csi-node.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-provisioner.yaml -n kube-system > ../../deploy/kubernetes/base/clusterrolebinding-provisioner.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-resizer.yaml -n kube-system > ../../deploy/kubernetes/base/clusterrolebinding-resizer.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-snapshot-controller.yaml -n kube-system > ../../deploy/kubernetes/base/clusterrolebinding-snapshot-controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-snapshotter.yaml -n kube-system > ../../deploy/kubernetes/base/clusterrolebinding-snapshotter.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/controller.yaml > ../../deploy/kubernetes/base/controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-attacher.yaml > ../../deploy/kubernetes/base/clusterrolebinding-attacher.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-csi-node.yaml > ../../deploy/kubernetes/base/clusterrolebinding-csi-node.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-provisioner.yaml > ../../deploy/kubernetes/base/clusterrolebinding-provisioner.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-resizer.yaml > ../../deploy/kubernetes/base/clusterrolebinding-resizer.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/clusterrolebinding-snapshotter.yaml > ../../deploy/kubernetes/base/clusterrolebinding-snapshotter.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/controller.yaml --api-versions 'snapshot.storage.k8s.io/v1' > ../../deploy/kubernetes/base/controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/csidriver.yaml > ../../deploy/kubernetes/base/csidriver.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/node.yaml > ../../deploy/kubernetes/base/node.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/poddisruptionbudget-controller.yaml > ../../deploy/kubernetes/base/poddisruptionbudget-controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/poddisruptionbudget-snapshot-controller.yaml -f ../../deploy/kubernetes/values/snapshotter.yaml > ../../deploy/kubernetes/base/poddisruptionbudget-snapshot-controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/role-snapshot-controller-leaderelection.yaml -n kube-system > ../../deploy/kubernetes/base/role-snapshot-controller-leaderelection.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/rolebinding-snapshot-controller-leaderelection.yaml -n kube-system > ../../deploy/kubernetes/base/rolebinding-snapshot-controller-leaderelection.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/serviceaccount-csi-controller.yaml > ../../deploy/kubernetes/base/serviceaccount-csi-controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/serviceaccount-csi-node.yaml > ../../deploy/kubernetes/base/serviceaccount-csi-node.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/serviceaccount-snapshot-controller.yaml > ../../deploy/kubernetes/base/serviceaccount-snapshot-controller.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/snapshot-controller.yaml -f ../../deploy/kubernetes/values/snapshotter.yaml > ../../deploy/kubernetes/base/snapshot_controller.yaml
14 changes: 14 additions & 0 deletions charts/aws-ebs-csi-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Helm chart

# v2.0.0
* Remove support for Helm 2
* Remove deprecated values
* No longer install snapshot controller or its CRDs
* Reorganize additional values

[Upgrade instructions](/docs/README.md#upgrading-from-version-1x-to-2x-of-the-helm-chart)

# v1.2.4
* Bump app/driver version to `v1.1.1`
* Install VolumeSnapshotClass, VolumeSnapshotContent, VolumeSnapshot CRDs if enableVolumeSnapshot is true
* Only run csi-snapshotter sidecar if enableVolumeSnapshot is true or if CRDs are already installed
6 changes: 3 additions & 3 deletions charts/aws-ebs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: "1.0.0"
apiVersion: v2
appVersion: "1.1.1"
name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 1.2.0
version: 2.0.0
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
sources:
Expand Down
36 changes: 1 addition & 35 deletions charts/aws-ebs-csi-driver/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,4 @@ To verify that aws-ebs-csi-driver has started, run:

kubectl get pod -n {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "aws-ebs-csi-driver.name" . }},app.kubernetes.io/instance={{ .Release.Name }}"


WARNING: The following values have been deprecated in favor of moving them into the controller or node groups. They will be removed in a subsequent release.

affinity:
extraCreateMetadata:
extraVolumeTags:
k8sTagClusterId:
nodeSelector:
podAnnotations:
priorityClassName:
region:
replicaCount:
resources:
tolerations:
topologySpreadConstraints:
volumeAttachLimit:

are moving to

controller:
affinity:
extraCreateMetadata:
extraVolumeTags:
k8sTagClusterId:
nodeSelector:
podAnnotations:
priorityClassName:
region:
replicaCount:
resources:
tolerations:
topologySpreadConstraints:

node:
volumeAttachLimit:
NOTE: The [CSI Snapshotter](https://github.com/kubernetes-csi/external-snapshotter) controller and CRDs will no longer be installed as part of this chart and moving forward will be a prerequisite of using the snap shotting functionality.
5 changes: 2 additions & 3 deletions charts/aws-ebs-csi-driver/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Convert the `--extra-volume-tags` command line arg from a map.
*/}}
{{- define "aws-ebs-csi-driver.extra-volume-tags" -}}
{{- $evt := default .Values.extraVolumeTags .Values.controller.extraVolumeTags }}
{{- $result := dict "pairs" (list) -}}
{{- range $key, $value := $evt -}}
{{- $noop := printf "%s=%s" $key $value | append $result.pairs | set $result "pairs" -}}
{{- range $key, $value := .Values.controller.extraVolumeTags -}}
{{- $noop := printf "%s=%v" $key $value | append $result.pairs | set $result "pairs" -}}
{{- end -}}
{{- if gt (len $result.pairs) 0 -}}
{{- printf "%s=%s" "- --extra-volume-tags" (join "," $result.pairs) -}}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.controller.name }}
name: {{ .Values.controller.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.node.name }}
name: {{ .Values.node.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.controller.name }}
name: {{ .Values.controller.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.controller.name }}
name: {{ .Values.controller.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.controller.name }}
name: {{ .Values.controller.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
Loading