|
59 | 59 | depend-update: work
|
60 | 60 | dep ensure -update -v
|
61 | 61 |
|
62 |
| -build: openstack-cloud-controller-manager cinder-provisioner cinder-flex-volume-driver cinder-csi-plugin k8s-keystone-auth client-keystone-auth octavia-ingress-controller manila-provisioner |
| 62 | +build: openstack-cloud-controller-manager cinder-provisioner cinder-flex-volume-driver cinder-csi-plugin k8s-keystone-auth client-keystone-auth octavia-ingress-controller manila-provisioner barbican-kms-plugin |
63 | 63 |
|
64 | 64 | openstack-cloud-controller-manager: depend $(SOURCES)
|
65 | 65 | CGO_ENABLED=0 GOOS=$(GOOS) go build \
|
@@ -109,6 +109,12 @@ manila-provisioner: depend $(SOURCES)
|
109 | 109 | -o manila-provisioner \
|
110 | 110 | cmd/manila-provisioner/main.go
|
111 | 111 |
|
| 112 | +barbican-kms-plugin: depend $(SOURCES) |
| 113 | + cd $(DEST) && CGO_ENABLED=0 GOOS=$(GOOS) go build \ |
| 114 | + -ldflags $(LDFLAGS) \ |
| 115 | + -o barbican-kms-plugin \ |
| 116 | + cmd/barbican-kms-plugin/main.go |
| 117 | + |
112 | 118 | test: unit functional
|
113 | 119 |
|
114 | 120 | check: depend fmt vet lint import-boss
|
@@ -193,7 +199,7 @@ realclean: clean
|
193 | 199 | shell:
|
194 | 200 | $(SHELL) -i
|
195 | 201 |
|
196 |
| -images: image-controller-manager image-flex-volume-driver image-provisioner image-csi-plugin image-k8s-keystone-auth image-octavia-ingress-controller image-manila-provisioner |
| 202 | +images: image-controller-manager image-flex-volume-driver image-provisioner image-csi-plugin image-k8s-keystone-auth image-octavia-ingress-controller image-manila-provisioner image-kms-plugin |
197 | 203 |
|
198 | 204 | image-controller-manager: depend openstack-cloud-controller-manager
|
199 | 205 | ifeq ($(GOOS),linux)
|
@@ -258,6 +264,15 @@ else
|
258 | 264 | $(error Please set GOOS=linux for building the image)
|
259 | 265 | endif
|
260 | 266 |
|
| 267 | +image-kms-plugin: depend barbican-kms-plugin |
| 268 | +ifeq ($(GOOS), linux) |
| 269 | + cp barbican-kms-plugin cluster/images/barbican-kms-plugin |
| 270 | + docker build -t $(REGISTRY)/barbican-kms-plugin:$(VERSION) cluster/images/barbican-kms-plugin |
| 271 | + rm cluster/images/barbican-kms-plugin/barbican-kms-plugin |
| 272 | +else |
| 273 | + $(error Please set GOOS=linux for building the image) |
| 274 | +endif |
| 275 | + |
261 | 276 | upload-images: images
|
262 | 277 | @echo "push images to $(REGISTRY)"
|
263 | 278 | docker login -u="$(DOCKER_USERNAME)" -p="$(DOCKER_PASSWORD)";
|
|
0 commit comments