From 725817837e7fcf93110714c1dc551a02c2b76218 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Wed, 4 Sep 2024 10:33:09 -0600 Subject: [PATCH] Adding support for OpenShift Virtualization in test cluster As documented in the Red Hat OpenShift Virtualization docs[1]. Closes nerc-project/operations#489 --- clusters/lib/virt/application.yaml | 15 +++++++++++++++ clusters/lib/virt/kustomization.yaml | 4 ++++ clusters/nerc-ocp-test/kustomization.yaml | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 clusters/lib/virt/application.yaml create mode 100644 clusters/lib/virt/kustomization.yaml diff --git a/clusters/lib/virt/application.yaml b/clusters/lib/virt/application.yaml new file mode 100644 index 0000000..80ac11b --- /dev/null +++ b/clusters/lib/virt/application.yaml @@ -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 diff --git a/clusters/lib/virt/kustomization.yaml b/clusters/lib/virt/kustomization.yaml new file mode 100644 index 0000000..1f43d0d --- /dev/null +++ b/clusters/lib/virt/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml diff --git a/clusters/nerc-ocp-test/kustomization.yaml b/clusters/nerc-ocp-test/kustomization.yaml index d09da11..f5ea989 100644 --- a/clusters/nerc-ocp-test/kustomization.yaml +++ b/clusters/nerc-ocp-test/kustomization.yaml @@ -5,6 +5,7 @@ resources: - ../lib/nfd-operator - ../lib/nvidia-gpu-operator - ../lib/logging + - ../lib/virt nameSuffix: -test @@ -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