Skip to content

Commit

Permalink
Adding support for OpenShift Virtualization in test cluster
Browse files Browse the repository at this point in the history
As documented in the Red Hat OpenShift Virtualization docs[1].

Closes nerc-project/operations#489

[1] https://docs.openshift.com/container-platform/4.15/virt/install/installing-virt.html
  • Loading branch information
computate committed Sep 4, 2024
1 parent c970280 commit f094f85
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-cnv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- operatorgroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: kubevirt-hyperconverged-group
namespace: openshift-cnv
spec:
targetNamespaces:
- openshift-cnv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: hco-operatorhub
namespace: openshift-cnv
spec:
source: redhat-operators
sourceNamespace: openshift-marketplace
name: kubevirt-hyperconverged
channel: "stable"
8 changes: 8 additions & 0 deletions cluster-scope/bundles/virt/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
nerc.mghpcc.org/bundle: virt
resources:
- ../../base/core/namespaces/openshift-cnv
- ../../base/operators.coreos.com/operatorgroups/kubevirt-hyperconverged-group
- ../../base/operators.coreos.com/subscriptions/hco-operatorhub
5 changes: 5 additions & 0 deletions virt/base/kubevirt-hyperconverged.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
spec: {}
5 changes: 5 additions & 0 deletions virt/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openshift-cnv
resources:
- kubevirt-hyperconverged.yaml
5 changes: 5 additions & 0 deletions virt/overlays/nerc-ocp-test/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openshift-cnv
resources:
- ../../base

0 comments on commit f094f85

Please sign in to comment.