@@ -129,11 +129,11 @@ docker-build: test ## Build docker image with the manager.
129129
130130.PHONY : arm-build
131131arm-build : test # # Build docker image with the manager.
132- docker buildx build --platform linux/arm64 -t ${ARMIMG} .
132+ docker buildx build ARCH=arm64 --platform linux/arm64 -t ${ARMIMG} .
133133
134134.PHONY : arm-deploy
135135arm-deploy : manifests kustomize
136- docker buildx build --platform linux/arm64 --push -t ${ARMIMG} .
136+ docker buildx build --platform linux/arm64 --build-arg ARCH=arm64 -- push -t ${ARMIMG} .
137137 cd config/manager && $(KUSTOMIZE ) edit set image controller=${ARMIMG}
138138 $(KUSTOMIZE ) build config/default > examples/dist/slurm-operator-arm.yaml
139139
@@ -218,6 +218,12 @@ test-deploy: manifests kustomize
218218 $(KUSTOMIZE ) build config/default > examples/dist/slurm-operator-dev.yaml
219219 sed -i ' s/ imagePullPolicy: IfNotPresent/ imagePullPolicy: Always/' examples/dist/slurm-operator-dev.yaml
220220
221+
222+ .PHONY : build-config-arm
223+ build-config-arm : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
224+ cd config/manager && $(KUSTOMIZE ) edit set image controller=${ARMIMG}
225+ $(KUSTOMIZE ) build config/default > examples/dist/slurm-operator-arm.yaml
226+
221227.PHONY : test-deploy-recreate
222228test-deploy-recreate : test-deploy
223229 kubectl delete -f ./examples/dist/slurm-operator-dev.yaml || echo " Already deleted"
@@ -229,7 +235,7 @@ list:
229235
230236# # Tool Versions
231237KUSTOMIZE_VERSION ?= v3.8.7
232- CONTROLLER_TOOLS_VERSION ?= v0.14 .0
238+ CONTROLLER_TOOLS_VERSION ?= v0.19 .0
233239
234240KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
235241.PHONY : kustomize
0 commit comments