3131depend-update : work
3232 cd $(DEST ) && glide update
3333
34- build : openstack-cloud-controller-manager cinder-provisioner cinder-flex-volume-driver k8s-keystone-auth
34+ build : openstack-cloud-controller-manager cinder-provisioner cinder-flex-volume-driver cinder-csi-plugin k8s-keystone-auth
3535
3636openstack-cloud-controller-manager : depend $(SOURCES )
3737 cd $(DEST ) && CGO_ENABLED=0 GOOS=$(GOOS ) go build \
@@ -45,6 +45,12 @@ cinder-provisioner: depend $(SOURCES)
4545 -o cinder-provisioner \
4646 cmd/cinder-provisioner/main.go
4747
48+ cinder-csi-plugin : depend $(SOURCES )
49+ cd $(DEST ) && CGO_ENABLED=0 GOOS=$(GOOS ) go build \
50+ -ldflags " -X 'main.version=${VERSION} '" \
51+ -o cinder-csi-plugin \
52+ cmd/cinder-csi-plugin/main.go
53+
4854cinder-flex-volume-driver : depend $(SOURCES )
4955 cd $(DEST ) && CGO_ENABLED=0 GOOS=$(GOOS ) go build \
5056 -ldflags " -X 'main.version=${VERSION} '" \
@@ -123,7 +129,7 @@ install-distro-packages:
123129 tools/install-distro-packages.sh
124130
125131clean :
126- rm -rf .bindep openstack-cloud-controller-manager cinder-flex-volume-driver cinder-provisioner k8s-keystone-auth
132+ rm -rf .bindep openstack-cloud-controller-manager cinder-flex-volume-driver cinder-provisioner cinder-csi-plugin k8s-keystone-auth
127133
128134realclean : clean
129135 rm -rf vendor
@@ -134,7 +140,7 @@ realclean: clean
134140shell : work
135141 cd $(DEST ) && $(SHELL ) -i
136142
137- images : image-controller-manager image-flex-volume-driver image-provisioner image-k8s-keystone-auth
143+ images : image-controller-manager image-flex-volume-driver image-provisioner image-csi-plugin image- k8s-keystone-auth
138144
139145image-controller-manager : depend openstack-cloud-controller-manager
140146ifeq ($(GOOS ) ,linux)
@@ -163,6 +169,15 @@ else
163169 $(error Please set GOOS=linux for building the image)
164170endif
165171
172+ image-csi-plugin : depend cinder-csi-plugin
173+ ifeq ($(GOOS ) ,linux)
174+ cp cinder-csi-plugin cluster/images/cinder-csi-plugin
175+ docker build -t $(REGISTRY)/cinder-csi-plugin:$(VERSION) cluster/images/cinder-csi-plugin
176+ rm cluster/images/cinder-csi-plugin/cinder-csi-plugin
177+ else
178+ $(error Please set GOOS=linux for building the image)
179+ endif
180+
166181image-k8s-keystone-auth : depend k8s-keystone-auth
167182ifeq ($(GOOS ) ,linux)
168183 cp k8s-keystone-auth cluster/images/webhook
0 commit comments