@@ -128,19 +128,19 @@ CRD_WORKING_DIR := crd_work_dir
128128# So we have to generate them together and then move them into place
129129manifests : $(CONTROLLER_GEN ) # EXHELP Generate WebhookConfiguration, ClusterRole, and CustomResourceDefinition objects.
130130 mkdir $(CRD_WORKING_DIR )
131- $(CONTROLLER_GEN ) crd paths=" ./api/v1/..." output:crd:artifacts:config=$(CRD_WORKING_DIR )
131+ GOFLAGS= " -tags=containers_image_openpgp " $(CONTROLLER_GEN ) crd paths=" ./api/v1/..." output:crd:artifacts:config=$(CRD_WORKING_DIR )
132132 mv $(CRD_WORKING_DIR ) /olm.operatorframework.io_clusterextensions.yaml $(KUSTOMIZE_OPCON_CRDS_DIR )
133133 mv $(CRD_WORKING_DIR ) /olm.operatorframework.io_clustercatalogs.yaml $(KUSTOMIZE_CATD_CRDS_DIR )
134134 rmdir $(CRD_WORKING_DIR )
135135 # Generate the remaining operator-controller manifests
136- $(CONTROLLER_GEN ) rbac:roleName=manager-role paths=" ./internal/operator-controller/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR )
136+ GOFLAGS= " -tags=containers_image_openpgp " $(CONTROLLER_GEN ) rbac:roleName=manager-role paths=" ./internal/operator-controller/..." output:rbac:artifacts:config=$(KUSTOMIZE_OPCON_RBAC_DIR )
137137 # Generate the remaining catalogd manifests
138- $(CONTROLLER_GEN ) rbac:roleName=manager-role paths=" ./internal/catalogd/..." output:rbac:artifacts:config=$(KUSTOMIZE_CATD_RBAC_DIR )
139- $(CONTROLLER_GEN ) webhook paths=" ./internal/catalogd/..." output:webhook:artifacts:config=$(KUSTOMIZE_CATD_WEBHOOKS_DIR )
138+ GOFLAGS= " -tags=containers_image_openpgp " $(CONTROLLER_GEN ) rbac:roleName=manager-role paths=" ./internal/catalogd/..." output:rbac:artifacts:config=$(KUSTOMIZE_CATD_RBAC_DIR )
139+ GOFLAGS= " -tags=containers_image_openpgp " $(CONTROLLER_GEN ) webhook paths=" ./internal/catalogd/..." output:webhook:artifacts:config=$(KUSTOMIZE_CATD_WEBHOOKS_DIR )
140140
141141.PHONY : generate
142142generate : $(CONTROLLER_GEN ) # EXHELP Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
143- $(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
143+ GOFLAGS= " -tags=containers_image_openpgp " $(CONTROLLER_GEN ) object:headerFile=" hack/boilerplate.go.txt" paths=" ./..."
144144
145145.PHONY : verify
146146verify : tidy fmt generate manifests crd-ref-docs # HELP Verify all generated code is up-to-date.
0 commit comments