You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support putting external images into the local registry of the kubevirtci cluster (#3801)
User can define an environment variable EXTRA_IMAGES that contains a list of
external image urls separated by spaces.
At the end of 'make cluster-up' target the EXTRA_IMAGES are processed
by a script ./cluster-up/extra-images.sh so that for each image url,
it pulls the image and then push the image into the local registry.
Then when 'make cluster-sync' is invoked, it searches all external
image urls in the generated yamls in _out/manifests/ and replaces
them with corresponding urls in the local registry (registry:5000)
Signed-off-by: Howard Gao <[email protected]>
Copy file name to clipboardExpand all lines: Makefile
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ docker-registry-cleanup: ## Clean up all cached images from docker registry. Acc
126
126
publish: manifests push ## Generate a cdi-controller and operator manifests and push the built container images to the registry defined in DOCKER_PREFIX
127
127
128
128
manifests: ## Generate a cdi-controller and operator manifests in '_out/manifests/'. Accepts [make variables]\(#make-variables\) DOCKER_TAG, DOCKER_PREFIX, VERBOSITY, PULL_POLICY, CSV_VERSION, QUAY_REPOSITORY, QUAY_NAMESPACE
@@ -140,6 +140,7 @@ openshift-ci-image-push: ## Build and push the OpenShift CI build+test container
140
140
##@ Local cluster management
141
141
cluster-up: ## Start a default Kubernetes or Open Shift cluster. set KUBEVIRT_PROVIDER environment variable to either 'k8s-1.18' or 'os-3.11.0' to select the type of cluster. set KUBEVIRT_NUM_NODES to something higher than 1 to have more than one node.
142
142
./cluster-up/up.sh
143
+
./hack/extra-images.sh
143
144
144
145
cluster-down: ## Stop the cluster, doing a make cluster-down && make cluster-up will basically restart the cluster into an empty fresh state.
0 commit comments