@@ -248,6 +248,7 @@ endif
248248
249249# # Image name definitions.
250250ACNCLI_IMAGE = acncli
251+ AZURE_IPAM_IMAGE = azure-ipam
251252CNI_IMAGE = azure-cni
252253CNI_DROPGZ_IMAGE = cni-dropgz
253254CNI_DROPGZ_TEST_IMAGE = cni-dropgz-test
@@ -256,6 +257,8 @@ NPM_IMAGE = azure-npm
256257
257258# # Image platform tags.
258259ACNCLI_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM ) )$(if $(OS_VERSION ) ,-$(OS_VERSION ) ,) -$(ACN_VERSION )
260+ AZURE_IPAM_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM ) )$(if $(OS_VERSION ) ,-$(OS_VERSION ) ,) -$(AZURE_IPAM_VERSION )
261+ AZURE_IPAM_WINDOWS_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM ) )$(if $(OS_VERSION ) ,-$(OS_VERSION ) ,) -$(AZURE_IPAM_VERSION ) -$(OS_SKU_WIN )
259262CNI_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM ) )$(if $(OS_VERSION ) ,-$(OS_VERSION ) ,) -$(CNI_VERSION )
260263CNI_WINDOWS_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM ) )$(if $(OS_VERSION ) ,-$(OS_VERSION ) ,) -$(CNI_VERSION ) -$(OS_SKU_WIN )
261264CNI_DROPGZ_PLATFORM_TAG ?= $(subst /,-,$(PLATFORM ) )$(if $(OS_VERSION ) ,-$(OS_VERSION ) ,) -$(CNI_DROPGZ_VERSION )
@@ -335,12 +338,42 @@ acncli-image-pull: ## pull cni-manager container image.
335338 TAG=$(ACNCLI_PLATFORM_TAG )
336339
337340
341+ # azure-ipam
342+
343+ azure-ipam-image-name : # util target to print the azure-ipam image name.
344+ @echo $(AZURE_IPAM_IMAGE )
345+
346+ azure-ipam-image-name-and-tag : # util target to print the azure-ipam image name and tag.
347+ @echo $(IMAGE_REGISTRY ) /$(AZURE_IPAM_IMAGE ) :$(AZURE_IPAM_PLATFORM_TAG )
348+
349+ azure-ipam-image : # # build azure-ipam container image.
350+ $(MAKE ) container \
351+ DOCKERFILE=azure-ipam/$(OS ) .Dockerfile \
352+ IMAGE=$(AZURE_IPAM_IMAGE ) \
353+ EXTRA_BUILD_ARGS=' --build-arg OS=$(OS) --build-arg ARCH=$(ARCH) --build-arg OS_VERSION=$(OS_VERSION)' \
354+ PLATFORM=$(PLATFORM ) \
355+ TAG=$(AZURE_IPAM_PLATFORM_TAG ) \
356+ OS=$(OS ) \
357+ ARCH=$(ARCH ) \
358+ OS_VERSION=$(OS_VERSION )
359+
360+ azure-ipam-image-push : # # push azure-ipam container image.
361+ $(MAKE ) container-push \
362+ IMAGE=$(AZURE_IPAM_IMAGE ) \
363+ TAG=$(AZURE_IPAM_PLATFORM_TAG )
364+
365+ azure-ipam-image-pull : # # pull azure-ipam container image.
366+ $(MAKE ) container-pull \
367+ IMAGE=$(AZURE_IPAM_IMAGE ) \
368+ TAG=$(AZURE_IPAM_PLATFORM_TAG )
369+
370+
338371# cni
339372
340- cni-image-name : # util target to print the CNI image name.
373+ cni-image-name : # util target to print the cni image name.
341374 @echo $(CNI_IMAGE )
342375
343- cni-image-name-and-tag : # util target to print the CNI image name and tag.
376+ cni-image-name-and-tag : # util target to print the cni image name and tag.
344377 @echo $(IMAGE_REGISTRY ) /$(CNI_IMAGE ) :$(CNI_PLATFORM_TAG )
345378
346379cni-image : # # build cni container image.
@@ -554,6 +587,23 @@ acncli-skopeo-archive: ## export tar archive of acncli multiplat container manif
554587 IMAGE=$(ACNCLI_IMAGE ) \
555588 TAG=$(ACN_VERSION )
556589
590+ azure-ipam-manifest-build : # # build azure-ipam multiplat container manifest.
591+ $(MAKE ) manifest-build \
592+ PLATFORMS=" $( PLATFORMS) " \
593+ IMAGE=$(AZURE_IPAM_IMAGE ) \
594+ TAG=$(AZURE_IPAM_VERSION ) \
595+ OS_VERSIONS=" $( OS_VERSIONS) "
596+
597+ azure-ipam-manifest-push : # # push azure-ipam multiplat container manifest
598+ $(MAKE ) manifest-push \
599+ IMAGE=$(AZURE_IPAM_IMAGE ) \
600+ TAG=$(AZURE_IPAM_VERSION )
601+
602+ azure-ipam-skopeo-archive : # # export tar archive of azure-ipam multiplat container manifest.
603+ $(MAKE ) manifest-skopeo-archive \
604+ IMAGE=$(AZURE_IPAM_IMAGE ) \
605+ TAG=$(AZURE_IPAM_VERSION )
606+
557607cni-manifest-build : # # build cni multiplat container manifest.
558608 $(MAKE ) manifest-build \
559609 PLATFORMS=" $( PLATFORMS) " \
0 commit comments