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 03b941f commit ea1881d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions clusters/lib/virt/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: virt
labels:
nerc.mghpcc.org/sync-policy: common
spec:
project: default
source:
repoURL: https://github.com/ocp-on-nerc/nerc-ocp-config.git
targetRevision: HEAD
path: SET IN OVERLAY
destination:
name: SET IN OVERLAY
namespace: openshift-cnv
4 changes: 4 additions & 0 deletions clusters/lib/virt/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- application.yaml
9 changes: 9 additions & 0 deletions clusters/nerc-ocp-test/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
- ../lib/nfd-operator
- ../lib/nvidia-gpu-operator
- ../lib/logging
- ../lib/virt

nameSuffix: -test

Expand Down Expand Up @@ -59,3 +60,11 @@ patches:
- op: replace
path: /spec/source/path
value: logging/overlays/nerc-ocp-test
- target:
kind: Application
name: virt
patch: |
- op: replace
path: /spec/source/path
value: virt/overlays/nerc-ocp-test

0 comments on commit ea1881d

Please sign in to comment.