Skip to content

Commit

Permalink
Merge pull request #257 from RomanBednar/rebase-v1.26.1
Browse files Browse the repository at this point in the history
STOR-1575: Rebase to v1.26.1 for OCP 4.16
  • Loading branch information
openshift-merge-bot[bot] committed Feb 12, 2024
2 parents 99a8528 + a226f4c commit b79b00b
Show file tree
Hide file tree
Showing 806 changed files with 57,419 additions and 27,990 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -22,11 +22,14 @@ Vagrantfile
# IntelliJ
.idea/

#MacOS system files
# MacOS system files
*.DS_Store

# Vendor dir
#vendor/

# .image-* files used by Makefile
.image-*

# Files used by Makefile when upgrading sidecars
hack/release-scripts/image-digests.yaml
32 changes: 32 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,35 @@
# v1.26.0
### Announcements
* [The EBS CSI Driver Helm chart will stop supporting `--reuse-values` in a future release](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/issues/1864)

### Notable Changes
* Add retry and background run to node taint removal ([#1861](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1861), [@ConnorJC3](https://github.com/ConnorJC3))
* Add U7i attachment limits ([#1867](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1867), [@AndrewSirenko](https://github.com/AndrewSirenko))

### Bug Fixes
* Clamp minimum reported attachment limit to 1 to prevent undefined limit (This will prevent K8s from unrestricted scheduling of stateful workloads) ([#1859](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1859), [@torredil](https://github.com/torredil))
* Instances listed under `maxVolumeLimits` not taking into account ENIs/Instance storage ([#1860](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1860), [@torredil](https://github.com/torredil))

### Improvements
* Upgrade dependencies for aws-ebs-csi-driver v1.26.0 ([#1867](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1867), [@AndrewSirenko](https://github.com/AndrewSirenko))
* Bump otelhttp to fix CVE-2023-45142 ([#1858](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1858), [@jsafrane](https://github.com/jsafrane))

# v1.25.0
### Notable Changes
* Feature: Multi-Attach for io2 block devices ([#1799](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1799), [@torredil](https://github.com/torredil))
* Mitigate EC2 rate-limit issues by batching DescribeVolume API requests ([#1819](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1819), [@torredil](https://github.com/torredil))

### Bug Fixes
* Fix Error Handling for Volumes in Optimizing State ([#1833](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1833), [@torredil](https://github.com/torredil))

### Improvements
* Update default sidecar timeout values in chart to improve driver performance ([#1824](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1824), [@torredil](https://github.com/torredil))
* Increase default QPS and worker threads of sidecars in chart to improve driver performance ([#1834](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1834), [@ConnorJC3](https://github.com/ConnorJC3))
* Add volume limits for r7i ([#1832](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1832), [@torredil](https://github.com/torredil))
* Upgrade driver & sidecar dependencies for v1.25.0 ([#1835](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1835), [@AndrewSirenko](https://github.com/AndrewSirenko))
* Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.45.0 ([#1827](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1827), [@jsafrane](https://github.com/jsafrane))
* Update modify-volume.md ([#1816](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1816), [@sebastianlzy](https://github.com/sebastianlzy))

# v1.24.1
### Bug Fixes
* Add compatibility workaround for A1 instance family ([#1811](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1811), [@ConnorJC3](https://github.com/ConnorJC3))
Expand Down
20 changes: 15 additions & 5 deletions Makefile
Expand Up @@ -27,7 +27,7 @@ undefine KUBERNETES_SERVICE_PORT_HTTPS
# Carry: VERSION is set by CI to go version, not CSI driver version
undefine VERSION

VERSION?=v1.25.0
VERSION?=v1.26.1

PKG=github.com/kubernetes-sigs/aws-ebs-csi-driver
GIT_COMMIT?=$(shell git rev-parse HEAD)
Expand Down Expand Up @@ -143,7 +143,7 @@ bin/mockgen: | bin

bin/golangci-lint: | bin
echo "Installing golangci-lint..."
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.51.2
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.54.0

.PHONY: kubeval
kubeval: bin/kubeval
Expand All @@ -165,14 +165,13 @@ test:

.PHONY: test-sanity
test-sanity:
#go test -v ./tests/sanity/...
echo "succeed"
go test -v -race ./tests/sanity/...

.PHONY: test-e2e-single-az
test-e2e-single-az:
AWS_REGION=us-west-2 \
AWS_AVAILABILITY_ZONES=us-west-2a \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME' \
HELM_EXTRA_FLAGS='--set=controller.k8sTagClusterId=$$CLUSTER_NAME,controller.volumeModificationFeature.enabled=true' \
EBS_INSTALL_SNAPSHOT="true" \
TEST_PATH=./tests/e2e/... \
GINKGO_FOCUS="\[ebs-csi-e2e\] \[single-az\]" \
Expand Down Expand Up @@ -297,3 +296,14 @@ generate-kustomize: bin/helm
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/serviceaccount-csi-node.yaml | sed -e "/namespace: /d" > ../../deploy/kubernetes/base/serviceaccount-csi-node.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/role-leases.yaml | sed -e "/namespace: /d" > ../../deploy/kubernetes/base/role-leases.yaml
cd charts/aws-ebs-csi-driver && ../../bin/helm template kustomize . -s templates/rolebinding-leases.yaml | sed -e "/namespace: /d" > ../../deploy/kubernetes/base/rolebinding-leases.yaml

.PHONY: update-truth-sidecars
update-truth-sidecars: hack/release-scripts/get-latest-sidecar-images
./hack/release-scripts/get-latest-sidecar-images

.PHONY: generate-sidecar-tags
generate-sidecar-tags: update-truth-sidecars charts/aws-ebs-csi-driver/values.yaml deploy/kubernetes/overlays/stable/gcr/kustomization.yaml hack/release-scripts/generate-sidecar-tags
./hack/release-scripts/generate-sidecar-tags

.PHONY: update-sidecar-dependencies
update-sidecar-dependencies: update-truth-sidecars generate-sidecar-tags generate-kustomize
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -19,13 +19,15 @@ The [Amazon Elastic Block Store](https://aws.amazon.com/ebs/) Container Storage

| Driver Version | [registry.k8s.io](https://kubernetes.io/blog/2022/11/28/registry-k8s-io-faster-cheaper-ga/) Image | [ECR Public](https://gallery.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver) Image |
|----------------|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| v1.24.1 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.24.1 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.24.1 |
| v1.26.0 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.26.0 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.26.0 |

<details>
<summary>Previous Images</summary>

| Driver Version | [registry.k8s.io](https://kubernetes.io/blog/2022/11/28/registry-k8s-io-faster-cheaper-ga/) Image | [ECR Public](https://gallery.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver) Image |
|----------------|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| v1.25.0 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.25.0 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.25.0 |
| v1.24.1 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.24.1 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.24.1 |
| v1.24.0 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.24.0 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.24.0 |
| v1.23.2 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.23.2 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.23.2 |
| v1.23.1 | registry.k8s.io/provider-aws/aws-ebs-csi-driver:v1.23.1 | public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.23.1 |
Expand Down
12 changes: 12 additions & 0 deletions charts/aws-ebs-csi-driver/CHANGELOG.md
@@ -1,5 +1,17 @@
# Helm chart

## v2.26.0
* Bump driver version to `v1.26.0`
* Bump sidecar container versions ([#1867](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1867), [@AndrewSirenko](https://github.com/AndrewSirenko))
* Add warning about --reuse-values deprecation to NOTES.txt ([#1865](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1865), [@ConnorJC3](https://github.com/ConnorJC3))

## v2.25.0
* Bump driver version to `v1.25.0`
* Update default sidecar timeout values ([#1824](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1824), [@torredil](https://github.com/torredil))
* Increase default QPS and worker threads of sidecars ([#1834](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1834), [@ConnorJC3](https://github.com/ConnorJC3))
* Node-driver-registrar sidecar fixes ([#1815](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1815), [@jukie](https://github.com/jukie))
* Suggest eks.amazonaws.com/role-arn in values.yaml if EKS IAM for SA is used ([#1804](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/pull/1804), [@tporeba](https://github.com/tporeba))

## v2.24.1
* Bump driver version to `v1.24.1`
* Upgrade sidecar images
Expand Down
4 changes: 2 additions & 2 deletions charts/aws-ebs-csi-driver/Chart.yaml
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 1.24.1
appVersion: 1.26.0
name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 2.24.1
version: 2.26.0
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
sources:
Expand Down
4 changes: 3 additions & 1 deletion charts/aws-ebs-csi-driver/templates/NOTES.txt
Expand Up @@ -2,4 +2,6 @@ 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 }}"

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.
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.

WARNING: Upgrading the EBS CSI Driver Helm chart with --reuse-values will no longer be supported in a future release. For more information, see https://github.com/kubernetes-sigs/aws-ebs-csi-driver/issues/1864
2 changes: 1 addition & 1 deletion charts/aws-ebs-csi-driver/templates/tests/helm-tester.yaml
Expand Up @@ -196,7 +196,7 @@ metadata:
spec:
containers:
- name: kubetest2
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231103-fd8df63b1a-master
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20231206-f7b83ffbe6-master
command: [ "/bin/sh", "-c" ]
args:
- |
Expand Down
12 changes: 6 additions & 6 deletions charts/aws-ebs-csi-driver/values.yaml
Expand Up @@ -19,7 +19,7 @@ sidecars:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner
tag: "v3.6.2-eks-1-28-9"
tag: "v3.6.3-eks-1-29-2"
logLevel: 2
# Additional parameters provided by external-provisioner.
additionalArgs: []
Expand All @@ -44,7 +44,7 @@ sidecars:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-attacher
tag: "v4.4.2-eks-1-28-9"
tag: "v4.4.3-eks-1-29-2"
# Tune leader lease election for csi-attacher.
# Leader election is on by default.
leaderElection:
Expand All @@ -71,7 +71,7 @@ sidecars:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter
tag: "v6.3.2-eks-1-28-9"
tag: "v6.3.3-eks-1-29-2"
logLevel: 2
# Additional parameters provided by csi-snapshotter.
additionalArgs: []
Expand All @@ -85,7 +85,7 @@ sidecars:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe
tag: "v2.11.0-eks-1-28-9"
tag: "v2.11.0-eks-1-29-2"
# Additional parameters provided by livenessprobe.
additionalArgs: []
resources: {}
Expand All @@ -97,7 +97,7 @@ sidecars:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/external-resizer
tag: "v1.9.2-eks-1-28-9"
tag: "v1.9.3-eks-1-29-2"
# Tune leader lease election for csi-resizer.
# Leader election is on by default.
leaderElection:
Expand All @@ -122,7 +122,7 @@ sidecars:
image:
pullPolicy: IfNotPresent
repository: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar
tag: "v2.9.1-eks-1-28-9"
tag: "v2.9.3-eks-1-29-2"
logLevel: 2
# Additional parameters provided by node-driver-registrar.
additionalArgs: []
Expand Down
12 changes: 6 additions & 6 deletions deploy/kubernetes/base/controller.yaml
Expand Up @@ -61,7 +61,7 @@ spec:
runAsUser: 1000
containers:
- name: ebs-plugin
image: public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.24.1
image: public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.26.0
imagePullPolicy: IfNotPresent
args:
# - {all,controller,node} # specify the driver mode
Expand Down Expand Up @@ -128,7 +128,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
- name: csi-provisioner
image: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner:v3.6.2-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner:v3.6.3-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --timeout=60s
Expand Down Expand Up @@ -157,7 +157,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
- name: csi-attacher
image: public.ecr.aws/eks-distro/kubernetes-csi/external-attacher:v4.4.2-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/external-attacher:v4.4.3-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --timeout=60s
Expand All @@ -183,7 +183,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
- name: csi-snapshotter
image: public.ecr.aws/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter:v6.3.2-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter:v6.3.3-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
Expand All @@ -208,7 +208,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
- name: csi-resizer
image: public.ecr.aws/eks-distro/kubernetes-csi/external-resizer:v1.9.2-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/external-resizer:v1.9.3-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --timeout=60s
Expand All @@ -235,7 +235,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
- name: liveness-probe
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.11.0-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.11.0-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --csi-address=/csi/csi.sock
Expand Down
6 changes: 3 additions & 3 deletions deploy/kubernetes/base/node.yaml
Expand Up @@ -52,7 +52,7 @@ spec:
runAsUser: 0
containers:
- name: ebs-plugin
image: public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.24.1
image: public.ecr.aws/ebs-csi-driver/aws-ebs-csi-driver:v1.26.0
imagePullPolicy: IfNotPresent
args:
- node
Expand Down Expand Up @@ -100,7 +100,7 @@ spec:
exec:
command: ["/bin/aws-ebs-csi-driver", "pre-stop-hook"]
- name: node-driver-registrar
image: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar:v2.9.1-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar:v2.9.3-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
Expand Down Expand Up @@ -137,7 +137,7 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
- name: liveness-probe
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.11.0-eks-1-28-9
image: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe:v2.11.0-eks-1-29-2
imagePullPolicy: IfNotPresent
args:
- --csi-address=/csi/csi.sock
Expand Down
10 changes: 5 additions & 5 deletions deploy/kubernetes/overlays/stable/gcr/kustomization.yaml
Expand Up @@ -7,19 +7,19 @@ images:
newName: registry.k8s.io/provider-aws/aws-ebs-csi-driver
- name: public.ecr.aws/eks-distro/kubernetes-csi/external-provisioner
newName: registry.k8s.io/sig-storage/csi-provisioner
newTag: v3.6.2
newTag: v3.6.3
- name: public.ecr.aws/eks-distro/kubernetes-csi/external-attacher
newName: registry.k8s.io/sig-storage/csi-attacher
newTag: v4.4.2
newTag: v4.4.3
- name: public.ecr.aws/eks-distro/kubernetes-csi/livenessprobe
newName: registry.k8s.io/sig-storage/livenessprobe
newTag: v2.11.0
- name: public.ecr.aws/eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter
newName: registry.k8s.io/sig-storage/csi-snapshotter
newTag: v6.3.2
newTag: v6.3.3
- name: public.ecr.aws/eks-distro/kubernetes-csi/external-resizer
newName: registry.k8s.io/sig-storage/csi-resizer
newTag: v1.9.2
newTag: v1.9.3
- name: public.ecr.aws/eks-distro/kubernetes-csi/node-driver-registrar
newName: registry.k8s.io/sig-storage/csi-node-driver-registrar
newTag: v2.9.1
newTag: v2.9.3
2 changes: 1 addition & 1 deletion docs/install.md
Expand Up @@ -52,7 +52,7 @@ You may deploy the EBS CSI driver via Kustomize, Helm, or as an [Amazon EKS mana

#### Kustomize
```sh
kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/stable/?ref=release-1.24"
kubectl apply -k "github.com/kubernetes-sigs/aws-ebs-csi-driver/deploy/kubernetes/overlays/stable/?ref=release-1.26"
```

*Note: Using the master branch to deploy the driver is not supported as the master branch may contain upcoming features incompatible with the currently released stable version of the driver.*
Expand Down

0 comments on commit b79b00b

Please sign in to comment.