Skip to content

Commit edfae48

Browse files
Merge pull request #267 from cert-manager/easier_labels_and_annotations
Make adding annotations and labels easier
2 parents 891f928 + 58c6dfe commit edfae48

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

modules/oci-build/00_mod.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ go_$1_goexperiment ?= $(GOEXPERIMENT)
4343
go_$1_flags ?= -tags=
4444
oci_$1_additional_layers ?=
4545
oci_$1_linux_capabilities ?=
46-
oci_$1_image_annotation ?=
47-
oci_$1_image_label ?=
46+
oci_$1_build_args ?=
4847
endef
4948

5049
$(foreach build_name,$(build_names),$(eval $(call default_per_build_variables,$(build_name))))

modules/oci-build/01_mod.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ $(oci_build_targets): oci-build-%: ko-config-% | $(NEEDS_KO) $(NEEDS_GO) $(NEEDS
6363
LDFLAGS="$(go_$*_ldflags)" \
6464
$(KO) build $(go_$*_mod_dir)/$(go_$*_main_dir) \
6565
--platform=$(oci_platforms) \
66-
--image-annotation=$(oci_$*_image_annotation) \
67-
--image-label=$(oci_$*_image_label) \
66+
$(oci_$*_build_args) \
6867
--oci-layout-path=$(oci_layout_path_$*) \
6968
--sbom-dir=$(CURDIR)/$(oci_layout_path_$*).sbom \
7069
--sbom=spdx \

0 commit comments

Comments
 (0)