Skip to content

Commit

Permalink
Merge pull request #203 from andyzhangx/rename-driver-image
Browse files Browse the repository at this point in the history
chore: rename driver image
  • Loading branch information
andyzhangx committed Aug 7, 2020
2 parents cd4e4e4 + 1ec68fa commit fe8c214
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
26 changes: 13 additions & 13 deletions Makefile
Expand Up @@ -16,7 +16,7 @@ PKG = sigs.k8s.io/blobfuse-csi-driver
GIT_COMMIT ?= $(shell git rev-parse HEAD)
REGISTRY ?= andyzhangx
REGISTRY_NAME ?= $(shell echo $(REGISTRY) | sed "s/.azurecr.io//g")
IMAGE_NAME ?= blobfuse-csi
IMAGE_NAME ?= blob-csi
IMAGE_VERSION ?= v0.7.0
# Use a custom version for E2E tests if we are in Prow
ifdef CI
Expand All @@ -35,7 +35,7 @@ GOBIN ?= $(GOPATH)/bin
DOCKER_CLI_EXPERIMENTAL = enabled
export GOPATH GOBIN GO111MODULE DOCKER_CLI_EXPERIMENTAL

all: blobfuse
all: blob

.PHONY: verify
verify: unit-test
Expand All @@ -46,11 +46,11 @@ unit-test:
go test -covermode=count -coverprofile=profile.cov ./pkg/... ./test/utils/credentials

.PHONY: sanity-test
sanity-test: blobfuse
sanity-test: blob
go test -v -timeout=30m ./test/sanity

.PHONY: integration-test
integration-test: blobfuse
integration-test: blob
go test -v -timeout=30m ./test/integration

.PHONY: e2e-test
Expand All @@ -60,7 +60,7 @@ e2e-test:
.PHONY: e2e-bootstrap
e2e-bootstrap: install-helm
# Only build and push the image if it does not exist in the registry
docker pull $(IMAGE_TAG) || make blobfuse-container push
docker pull $(IMAGE_TAG) || make blob-container push
helm install charts/latest/blobfuse-csi-driver -n blobfuse-csi-driver --namespace kube-system --wait \
--set image.blobfuse.pullPolicy=IfNotPresent \
--set image.blobfuse.repository=$(REGISTRY)/$(IMAGE_NAME) \
Expand All @@ -78,20 +78,20 @@ install-helm:
e2e-teardown:
helm delete --purge blobfuse-csi-driver

.PHONY: blobfuse
blobfuse:
.PHONY: blob
blob:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags ${LDFLAGS} -o _output/blobplugin ./pkg/blobplugin

.PHONY: blobfuse-windows
blobfuse-windows:
.PHONY: blob-windows
blob-windows:
CGO_ENABLED=0 GOOS=windows go build -a -ldflags ${LDFLAGS} -o _output/blobplugin.exe ./pkg/blobplugin

.PHONY: container
container: blobfuse
container: blob
docker build --no-cache -t $(IMAGE_TAG) -f ./pkg/blobplugin/dev.Dockerfile .

.PHONY: blobfuse-container
blobfuse-container:
.PHONY: blob-container
blob-container:
docker buildx rm container-builder || true
docker buildx create --use --name=container-builder
ifdef CI
Expand Down Expand Up @@ -122,7 +122,7 @@ else
endif

.PHONY: build-push
build-push: blobfuse-container
build-push: blob-container
docker tag $(IMAGE_TAG) $(IMAGE_TAG_LATEST)
docker push $(IMAGE_TAG_LATEST)

Expand Down
2 changes: 1 addition & 1 deletion charts/latest/blobfuse-csi-driver/Chart.yaml
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: latest
description: BlobFuse Container Storage Interface (CSI) Storage Plugin
description: Azure Blob Storage CSI driver
name: blobfuse-csi-driver
version: latest
2 changes: 1 addition & 1 deletion charts/latest/blobfuse-csi-driver/values.yaml
@@ -1,6 +1,6 @@
image:
blobfuse:
repository: mcr.microsoft.com/k8s/csi/blobfuse-csi
repository: mcr.microsoft.com/k8s/csi/blob-csi
tag: latest
pullPolicy: IfNotPresent
csiProvisioner:
Expand Down
2 changes: 1 addition & 1 deletion deploy/csi-blob-controller.yaml
Expand Up @@ -82,7 +82,7 @@ spec:
cpu: 10m
memory: 20Mi
- name: blob
image: mcr.microsoft.com/k8s/csi/blobfuse-csi:latest
image: mcr.microsoft.com/k8s/csi/blob-csi:latest
imagePullPolicy: IfNotPresent
args:
- "--v=5"
Expand Down
2 changes: 1 addition & 1 deletion deploy/csi-blob-node.yaml
Expand Up @@ -66,7 +66,7 @@ spec:
cpu: 10m
memory: 20Mi
- name: blob
image: mcr.microsoft.com/k8s/csi/blobfuse-csi:latest
image: mcr.microsoft.com/k8s/csi/blob-csi:latest
imagePullPolicy: IfNotPresent
args:
- "--v=5"
Expand Down
6 changes: 3 additions & 3 deletions hack/release-image.sh
Expand Up @@ -23,16 +23,16 @@ fi

export REGISTRY_NAME="$1"
export REGISTRY=$REGISTRY_NAME.azurecr.io
export IMAGE_NAME=public/k8s/csi/blobfuse-csi
export IMAGE_NAME=public/k8s/csi/blob-csi
export CI=1
export PUBLISH=1
az acr login --name $REGISTRY_NAME
make blobfuse-container
make blob-container
make push
make push-latest

echo "sleep 60s ..."
sleep 60
image="mcr.microsoft.com/k8s/csi/blobfuse-csi:latest"
image="mcr.microsoft.com/k8s/csi/blob-csi:latest"
docker pull $image
docker inspect $image | grep Created

0 comments on commit fe8c214

Please sign in to comment.