@@ -99,6 +99,12 @@ help: ## Display this help.
99
99
100
100
# #@ Development
101
101
102
+ # Switch images from `registry.redhat.io` images to the dev images
103
+ .PHONY : dev-images
104
+ dev-images :
105
+ sed -E -i ' s#registry.redhat.io/rhtas/model-transparency-rhel9#quay.io/securesign/model-transparency#g' \
106
+ internal/constants/images.go
107
+
102
108
.PHONY : manifests
103
109
manifests : controller-gen # # Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
104
110
$(CONTROLLER_GEN ) rbac:roleName=manager-role crd webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases
@@ -453,9 +459,9 @@ e2e-sign-test-model: e2e-generate-test-keys
453
459
$(CONTAINER_TOOL ) run --rm \
454
460
-v $(PWD ) /testdata/tensorflow_saved_model:/model \
455
461
-v $(PWD ) /testdata/docker/test_private_key.priv:/test_private_key.priv \
456
- --entrypoint= " " \
457
- ghcr.io/sigstore/model-transparency-cli:v1.0.1 \
458
- /usr/local/bin/ model_signing sign key /model \
462
+ --entrypoint " " \
463
+ $( MODEL_TRANSPARENCY_IMG ) \
464
+ model_signing sign key /model \
459
465
--private_key /test_private_key.priv \
460
466
--signature /model/model.sig
461
467
@@ -490,8 +496,6 @@ e2e-load-images: e2e-build-image e2e-build-test-model
490
496
$(CONTAINER_TOOL ) pull $(MODEL_TRANSPARENCY_IMG )
491
497
@echo " Loading manager image into Kind cluster..."
492
498
$(KIND ) load docker-image -n $(KIND_CLUSTER ) $(IMG )
493
- @echo " Loading model-transparency-cli image into Kind cluster..."
494
- $(KIND ) load docker-image -n $(KIND_CLUSTER ) $(MODEL_TRANSPARENCY_IMG )
495
499
@echo " Loading test model image into Kind cluster..."
496
500
$(KIND ) load docker-image -n $(KIND_CLUSTER ) $(E2E_TEST_MODEL )
497
501
0 commit comments