Skip to content

Commit b03a0d6

Browse files
authored
Merge pull request #75 from rootfs/kubevirt
enable kubevirt
2 parents 7dafcda + 2dc93ca commit b03a0d6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ CLUSTER_NAME=microshift
5858
PROMETHEUS_ENABLE=false
5959
GRAFANA_ENABLE=false
6060
TEKTON_ENABLE=false
61+
KUBEVIRT_ENABLE=false
6162
```
6263

6364
Start the cluster by running

main.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ declare -r REGISTRY_PORT=${REGISTRY_PORT:-5001}
5252
declare -r PROMETHEUS_ENABLE=${PROMETHEUS_ENABLE:-false}
5353
declare -r GRAFANA_ENABLE=${GRAFANA_ENABLE:-false}
5454
declare -r TEKTON_ENABLE=${TEKTON_ENABLE:-false}
55+
declare -r KUBEVIRT_ENABLE=${KUBEVIRT_ENABLE:-false}
5556
declare -r LIBBPF_VERSION=${LIBBPF_VERSION:-v1.2.0}
5657
declare -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

9099
cluster_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

0 commit comments

Comments
 (0)