File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ CLUSTER_NAME=microshift
5858PROMETHEUS_ENABLE=false
5959GRAFANA_ENABLE=false
6060TEKTON_ENABLE=false
61+ KUBEVIRT_ENABLE=false
6162```
6263
6364Start the cluster by running
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ declare -r REGISTRY_PORT=${REGISTRY_PORT:-5001}
5252declare -r PROMETHEUS_ENABLE=${PROMETHEUS_ENABLE:- false}
5353declare -r GRAFANA_ENABLE=${GRAFANA_ENABLE:- false}
5454declare -r TEKTON_ENABLE=${TEKTON_ENABLE:- false}
55+ declare -r KUBEVIRT_ENABLE=${KUBEVIRT_ENABLE:- false}
5556declare -r LIBBPF_VERSION=${LIBBPF_VERSION:- v1.2.0}
5657declare -r RESTARTCONTAINERRUNTIME=${RESTARTCONTAINERRUNTIME:- false}
5758
@@ -85,6 +86,14 @@ cluster_up() {
8586 rollout_ns_status tekton-pipelines
8687 rollout_ns_status tekton-pipelines-resolvers
8788 fi
89+
90+ # install kubevirt per https://kubevirt.io/quickstart_kind/
91+ if is_set " $KUBEVIRT_ENABLE " ; then
92+ KUBEVIRT_VERSION=$( curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
93+ kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/" ${KUBEVIRT_VERSION} " /kubevirt-operator.yaml
94+ kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/" ${KUBEVIRT_VERSION} " /kubevirt-cr.yaml
95+ rollout_ns_status kubevirt
96+ fi
8897}
8998
9099cluster_down () {
@@ -118,6 +127,9 @@ print_config() {
118127 Tekton
119128 * Install Tekton : $TEKTON_ENABLE
120129
130+ KubeVirt
131+ * Install KubeVirt : $KUBEVIRT_ENABLE
132+
121133 $cluster_config
122134 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
123135
You can’t perform that action at this time.
0 commit comments