File tree Expand file tree Collapse file tree 2 files changed +23
-12
lines changed Expand file tree Collapse file tree 2 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,27 @@ publish:
478
478
$(ISHIELD_REPO_ROOT ) /build/publish_images.sh
479
479
$(ISHIELD_REPO_ROOT ) /build/publish_bundle_ocm.sh
480
480
481
+ setup-demo :
482
+ @echo
483
+ @echo setting image
484
+ cp $(SHIELD_OP_DIR ) config/manager/kustomization.yaml $(TMP_DIR ) kustomization.yaml # copy original file to tmp dir.
485
+ cd $(SHIELD_OP_DIR ) config/manager && kustomize edit set image controller=$(DEMO_ISHIELD_OP_IMAGE_NAME )
486
+ @echo installing operator
487
+ kustomize build $(SHIELD_OP_DIR ) config/default | kubectl apply --validate=false -f -
488
+ cp $(TMP_DIR ) kustomization.yaml $(SHIELD_OP_DIR ) config/manager/kustomization.yaml
489
+ @echo prepare cr
490
+ @echo copy cr into tmp dir
491
+ cp $(SHIELD_OP_DIR ) config/samples/apis_v1alpha1_integrityshield_local.yaml $(TMP_CR_FILE )
492
+ @echo insert image
493
+ yq write -i $(TMP_CR_FILE ) spec.logger.image $(DEMO_ISHIELD_LOGGING_IMAGE_NAME )
494
+ yq write -i $(TMP_CR_FILE ) spec.logger.imagePullPolicy Always
495
+ yq write -i $(TMP_CR_FILE ) spec.server.image $(DEMO_ISHIELD_SERVER_IMAGE_NAME )
496
+ yq write -i $(TMP_CR_FILE ) spec.server.imagePullPolicy Always
497
+ @echo setup keyring configs
498
+ yq write -i $(TMP_CR_FILE ) spec.keyRingConfigs[1].name $(TEST_SECRET2 )
499
+ @echo setup signer policy
500
+ kubectl apply -f $(TMP_CR_FILE ) -n $(ISHIELD_OP_NS )
501
+
481
502
.PHONY : create-private-registry
482
503
483
504
create-private-registry :
Original file line number Diff line number Diff line change 73
73
NO_WAIT=true
74
74
p " Now, we are ready to install IntegrityShield. Please enter."
75
75
read
76
- pe " make install-operator "
76
+ pe " make setup-demo DEMO_ISHIELD_OP_IMAGE_NAME= ${ISHIELD_OPERATOR_IMAGE_NAME_AND_VERSION} DEMO_ISHIELD_SERVER_IMAGE_NAME= ${ISHIELD_SERVER_IMAGE_NAME_AND_VERSION} DEMO_ISHIELD_LOGGING_IMAGE_NAME= ${ISHIELD_LOGGING_IMAGE_NAME_AND_VERSION} "
77
77
echo
78
- echo " ===== Integrtity Shield operator is being deployed in cluster. ====="
79
- echo
80
- echo " Then, we set up IntegrityShield custome resource (CR)."
81
- make setup-tmp-cr
82
- echo
83
- echo " ===== Integrity Shield CR is set up. ====="
84
- echo
85
- echo " After setting up Integrity Shield CR, Let's now deploy Integrity Shield CR in the cluster."
86
- make create-cr
87
- echo
88
- echo " ===== Integrity Shield CR is created in cluster. ====="
78
+ echo " ===== Integrtity Shield operator is being deployed and IntegrityShield custome resource (CR) is created in cluster. ====="
89
79
echo
90
80
NO_WAIT=false
91
81
You can’t perform that action at this time.
0 commit comments