This repository was archived by the owner on Oct 28, 2024. It is now read-only.
File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ docker-controlplane-build-%:
266
266
.PHONY : docker-push-all # # Push all the architecture docker images
267
267
docker-push-all : $(addprefix docker-infrastructure-push-,$(ALL_ARCH ) ) $(addprefix docker-controlplane-push-,$(ALL_ARCH ) )
268
268
$(MAKE ) docker-push-core-manifest
269
+ $(MAKE ) docker-push-nested-control-plane-manifest
269
270
270
271
.PHONY : docker-push
271
272
docker-push :
@@ -289,6 +290,15 @@ docker-push-core-manifest: ## Push the fat manifest docker image for the core im
289
290
$(MAKE ) set-manifest-image MANIFEST_IMG=$(CONTROLLER_IMG ) MANIFEST_TAG=$(TAG ) TARGET_RESOURCE=" ./config/default/manager_image_patch.yaml"
290
291
$(MAKE ) set-manifest-pull-policy TARGET_RESOURCE=" ./config/default/manager_pull_policy.yaml"
291
292
293
+ .PHONY : docker-push-nested-control-plane-manifest
294
+ docker-push-nested-control-plane-manifest : # # Push the fat manifest docker image for the nested control plane image.
295
+ # # Minimum docker version 18.06.0 is required for creating and pushing manifest images.
296
+ docker manifest create --amend $(CONTROLPLANE_CONTROLLER_IMG ) :$(TAG ) $(shell echo $(ALL_ARCH ) | sed -e "s~[^ ]* ~$(CONTROLPLANE_CONTROLLER_IMG ) \-&:$(TAG ) ~g")
297
+ @for arch in $(ALL_ARCH ) ; do docker manifest annotate --arch $$ {arch} ${CONTROLPLANE_CONTROLLER_IMG} :${TAG} ${CONTROLPLANE_CONTROLLER_IMG} -$$ {arch}:${TAG} ; done
298
+ docker manifest push --purge $(CONTROLPLANE_CONTROLLER_IMG ) :$(TAG )
299
+ $(MAKE ) set-manifest-image MANIFEST_IMG=$(CONTROLPLANE_CONTROLLER_IMG ) MANIFEST_TAG=$(TAG ) TARGET_RESOURCE=" ./controlplane/nested/config/default/manager_image_patch.yaml"
300
+ $(MAKE ) set-manifest-pull-policy TARGET_RESOURCE=" ./controlplane/nested/config/default/manager_pull_policy.yaml"
301
+
292
302
.PHONY : set-manifest-pull-policy
293
303
set-manifest-pull-policy :
294
304
$(info Updating kustomize pull policy file for manager resources)
You can’t perform that action at this time.
0 commit comments