Created
December 5, 2024 13:28
-
-
Save oshoval/a209d24547bf3260ffb31680c8ba64e6 to your computer and use it in GitHub Desktop.
Compile custom kubevirt manifests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # curl -sL https://storage.googleapis.com/kubevirt-prow/devel/nightly/release/kubevirt/kubevirt/latest | |
| # ./publish.sh 20241010 quay.io/oshoval | |
| # curl -LO "$kubevirt_release_url/kubevirt-operator.yaml" | |
| # curl -LO "$kubevirt_release_url/kubevirt-cr.yaml" | |
| # sed -i "s|quay.io/kubevirt/virt-operator:[^ ]*|quay.io/oshoval/virt-operator:20241010_3dda04c0fd|g" kubevirt-operator.yaml | |
| # kubectl apply -f "kubevirt-operator.yaml" | |
| # kubectl apply -f "kubevirt-cr.yaml" | |
| LATEST=$1 | |
| DOCKER_PREFIX=$2 | |
| curl -LO "https://storage.googleapis.com/kubevirt-prow/devel/nightly/release/kubevirt/kubevirt/${LATEST}/kubevirt-operator.yaml" | |
| curl -LO "https://storage.googleapis.com/kubevirt-prow/devel/nightly/release/kubevirt/kubevirt/${LATEST}/kubevirt-cr.yaml" | |
| DOCKER_TAG=$(grep $LATEST kubevirt-operator.yaml | grep image | awk -F: '{print $3}') | |
| sed -i "s|quay.io/kubevirt/virt-operator:[^ ]*|${DOCKER_PREFIX}/virt-operator:${DOCKER_TAG}|g" kubevirt-operator.yaml | |
| make bazel-build-images | |
| make bazel-push-images | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment