#!/bin/bash set -x # Create the namespaces for the HCO oc create ns kubevirt-hyperconverged # Switch to the HCO namespace. oc config set-context $(oc config current-context) --namespace=kubevirt-hyperconverged # Launch all of the CRDs. oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/hco.crd.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/kubevirt.crd.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/cdi.crd.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/cna.crd.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/ssp.crd.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/kwebui.crd.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/nodemaintenance.crd.yaml # Launch all of the Service Accounts, Cluster Role(Binding)s, and Operators. oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/cluster_role.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/service_account.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/cluster_role_binding.yaml oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/operator.yaml # Create an HCO CustomResource, which creates the KubeVirt CR, launching KubeVirt. oc create -f https://raw.githubusercontent.com/kubevirt/hyperconverged-cluster-operator/master/deploy/converged/crds/hco.cr.yaml