Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
run: |
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
chmod +x /usr/local/bin/yq
make setup-ecr
make -j `nproc` all-image
trivy:
needs: build-images
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ setup-ecr:
aws ecr create-repository --region us-west-2 --repository-name csi-snapshotter || true
aws ecr create-repository --region us-west-2 --repository-name livenessprobe || true
aws ecr create-repository --region us-west-2 --repository-name snapshot-controller || true
aws ecr create-repository --region us-west-2 --repository-name volume-modifier-for-k8s || true

# Helper target to bump all images to the latest version
.PHONY: bump-versions
Expand All @@ -75,23 +76,23 @@ bin/%: $(BUILD_SOURCES) | bin build
@BUILD_PLATFORMS="$(BUILD_PLATFORMS)" hack/build-binary.sh $*

.PHONY: all
all: bin/csi-snapshotter bin/csi-attacher bin/csi-provisioner bin/csi-resizer bin/csi-node-driver-registrar bin/livenessprobe bin/snapshot-controller
all: bin/csi-snapshotter bin/csi-attacher bin/csi-provisioner bin/csi-resizer bin/csi-node-driver-registrar bin/livenessprobe bin/snapshot-controller bin/volume-modifier-for-k8s

## Container image targets

image/%: $(BUILD_SOURCES) Dockerfile .dockerignore
@TAG_PREFIX="$(TAG_PREFIX)" REGISTRY="$(REGISTRY)" hack/build-image.sh $*

.PHONY: all-image
all-image: image/csi-snapshotter image/csi-attacher image/csi-provisioner image/csi-resizer image/csi-node-driver-registrar image/livenessprobe image/snapshot-controller
all-image: image/csi-snapshotter image/csi-attacher image/csi-provisioner image/csi-resizer image/csi-node-driver-registrar image/livenessprobe image/snapshot-controller image/volume-modifier-for-k8s

## Trivy (image scanner) targets

trivy/%: output
@TAG_PREFIX="$(TAG_PREFIX)" REGISTRY="$(REGISTRY)" OUTPUT_SARIF="$(OUTPUT_SARIF)" hack/trivy.sh $*

.PHONY: all-trivy
all-trivy: trivy/csi-snapshotter trivy/csi-attacher trivy/csi-provisioner trivy/csi-resizer trivy/csi-node-driver-registrar trivy/livenessprobe trivy/snapshot-controller
all-trivy: trivy/csi-snapshotter trivy/csi-attacher trivy/csi-provisioner trivy/csi-resizer trivy/csi-node-driver-registrar trivy/livenessprobe trivy/snapshot-controller trivy/volume-modifier-for-k8s

## E2E targets

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The released images are hosted on the [`csi-components` ECR Public Registry](htt
| [external-snapshotter](https://github.com/kubernetes-csi/external-snapshotter) | v8.5.0-eksbuild.1 | `public.ecr.aws/csi-components/csi-snapshotter:v8.5.0-eksbuild.1` |
| [livenessprobe](https://github.com/kubernetes-csi/livenessprobe) | v2.18.0-eksbuild.1 | `public.ecr.aws/csi-components/livenessprobe:v2.18.0-eksbuild.1` |
| [snapshot-controller](https://github.com/kubernetes-csi/external-snapshotter) | v8.5.0-eksbuild.1 | `public.ecr.aws/csi-components/snapshot-controller:v8.5.0-eksbuild.1` |
| [volume-modifier-for-k8s](https://github.com/awslabs/volume-modifier-for-k8s) | main-eksbuild.1 | `public.ecr.aws/ebs-csi-driver/volume-modifier-for-k8s:main-eksbuild.1` |

## Building

Expand Down
2 changes: 1 addition & 1 deletion hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ done
# Special case: snapshot-controller is not a sidecar, and is passed to the EBS CSI
# E2E tests through the environment variable EBS_INSTALL_SNAPSHOT_CUSTOM_IMAGE
SC_EKSBUILD="$(yq ".snapshot-controller.eksbuild" "${BASE_DIR}/release-config.yaml")"
export EBS_INSTALL_SNAPSHOT_CUSTOM_IMAGE="${REGISTRY}/${IMAGE}:${TAG_PREFIX}$(yq ".snapshot-controller.tag" "${BASE_DIR}/release-config.yaml")-eksbuild.${SC_EKSBUILD}"
export EBS_INSTALL_SNAPSHOT_CUSTOM_IMAGE="${REGISTRY}/snapshot-controller:${TAG_PREFIX}$(yq ".snapshot-controller.tag" "${BASE_DIR}/release-config.yaml")-eksbuild.${SC_EKSBUILD}"
# Use a KOPS bucket specifically for the CSI components, as to not conflict
# with any other clusters or E2E tests
export KOPS_BUCKET="$(aws sts get-caller-identity --query Account --output text)-csi-components-e2e"
Expand Down
3 changes: 3 additions & 0 deletions hack/release-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ livenessprobe:
snapshot-controller:
tag: 'v8.5.0'
eksbuild: '1'
volume-modifier-for-k8s:
tag: 'main'
eksbuild: '1'
4 changes: 4 additions & 0 deletions hack/static-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ livenessprobe:
snapshot-controller:
repo: https://github.com/kubernetes-csi/external-snapshotter
targets: [amd64-linux-al2023, arm64-linux-al2023]
volume-modifier-for-k8s:
repo: https://github.com/ConnorJC3/volume-modifier-for-k8s
targets: [amd64-linux-al2023, arm64-linux-al2023]
e2e-parameter: sidecars.volumemodifier.image
1 change: 1 addition & 0 deletions patches/dependency-patches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ csi-resizer: {}
csi-snapshotter: {}
livenessprobe: {}
snapshot-controller: {}
volume-modifier-for-k8s: {}
Loading