diff --git a/clusters/lib/autopilot/application.yaml b/clusters/lib/autopilot/application.yaml new file mode 100644 index 0000000..e64b5dc --- /dev/null +++ b/clusters/lib/autopilot/application.yaml @@ -0,0 +1,15 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: autopilot + 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: REPLACEME + destination: + name: REPLACEME + namespace: autopilot diff --git a/clusters/lib/autopilot/kustomization.yaml b/clusters/lib/autopilot/kustomization.yaml new file mode 100644 index 0000000..1f43d0d --- /dev/null +++ b/clusters/lib/autopilot/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml diff --git a/clusters/nerc-ocp-obs/kustomization.yaml b/clusters/nerc-ocp-obs/kustomization.yaml index d53517f..eac4440 100644 --- a/clusters/nerc-ocp-obs/kustomization.yaml +++ b/clusters/nerc-ocp-obs/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization resources: - ../lib/cluster-scope - ../lib/logging +- ../lib/autopilot - dex - loki - fake-metrics-server @@ -47,3 +48,11 @@ patches: - op: replace path: /spec/source/path value: logging/overlays/nerc-ocp-obs + + - target: + kind: Application + name: autopilot + patch: | + - op: replace + path: /spec/source/path + value: autopilot/overlays/nerc-ocp-obs diff --git a/clusters/nerc-ocp-prod/kustomization.yaml b/clusters/nerc-ocp-prod/kustomization.yaml index 10f7108..2b32c87 100644 --- a/clusters/nerc-ocp-prod/kustomization.yaml +++ b/clusters/nerc-ocp-prod/kustomization.yaml @@ -9,6 +9,7 @@ resources: - ../lib/nfd-operator - ../lib/nvidia-gpu-operator - ../lib/nerc-images +- ../lib/autopilot - gatekeeper-policy - acct-mgt - curator @@ -97,3 +98,11 @@ patches: - op: replace path: /spec/source/path value: nvidia-gpu-operator/overlays/nerc-ocp-prod + + - target: + kind: Application + name: autopilot + patch: | + - op: replace + path: /spec/source/path + value: autopilot/overlays/nerc-ocp-prod diff --git a/clusters/nerc-ocp-test/kustomization.yaml b/clusters/nerc-ocp-test/kustomization.yaml index 021b34d..2274c28 100644 --- a/clusters/nerc-ocp-test/kustomization.yaml +++ b/clusters/nerc-ocp-test/kustomization.yaml @@ -8,6 +8,7 @@ resources: - ../lib/virt - ../lib/nfs - ../lib/csi-driver-nfs + - ../lib/autopilot nameSuffix: -test @@ -86,3 +87,11 @@ patches: - op: replace path: /spec/source/path value: csi-driver-nfs/overlays/nerc-ocp-test + + - target: + kind: Application + name: autopilot + patch: | + - op: replace + path: /spec/source/path + value: autopilot/overlays/nerc-ocp-test