From c7ea7b4703227472e79c68c4426de0bd2052cfaa Mon Sep 17 00:00:00 2001 From: mikemcd3912 Date: Tue, 9 Apr 2024 16:25:17 +0000 Subject: [PATCH] Update Kustomizations to non-beta API version --- .../Core/snapshot-tester/kustomization.yaml | 4 -- .../snapshot-restore/claim.yaml | 16 ------- .../snapshot-restore/kustomization.yaml | 5 -- .../snapshot-restore-job.yaml | 24 ---------- .../snapshot-tester-kustomization.yaml | 29 ++++++++++++ .../Core/snapshot-tester/snapshot-tester.yaml | 46 ------------------- .../snapshot/kustomization.yaml | 5 -- .../test-app/kustomization.yaml | 5 -- 8 files changed, 29 insertions(+), 105 deletions(-) delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/kustomization.yaml delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/claim.yaml delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/kustomization.yaml delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/snapshot-restore-job.yaml create mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester-kustomization.yaml delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester.yaml delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot/kustomization.yaml delete mode 100644 eks-anywhere-vsphere/Testers/Core/snapshot-tester/test-app/kustomization.yaml diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/kustomization.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/kustomization.yaml deleted file mode 100644 index fbded3c2..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - snapshot-tester.yaml \ No newline at end of file diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/claim.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/claim.yaml deleted file mode 100644 index dcbf889d..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/claim.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: vmware-csi-snapshot-restored-claim - namespace: default -spec: - accessModes: - - ReadWriteOnce - storageClassName: vmware-sc - resources: - requests: - storage: 4Gi - dataSource: - name: vmware-csi-volume-snapshot - kind: VolumeSnapshot - apiGroup: snapshot.storage.k8s.io \ No newline at end of file diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/kustomization.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/kustomization.yaml deleted file mode 100644 index e42f8ea9..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - claim.yaml - - snapshot-restore-job.yaml \ No newline at end of file diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/snapshot-restore-job.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/snapshot-restore-job.yaml deleted file mode 100644 index 6d680c66..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore/snapshot-restore-job.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -apiVersion: batch/v1 -kind: Job -metadata: - name: app-restore - namespace: default -spec: - backoffLimit: 3 - template: - spec: - containers: - - name: app - image: centos - imagePullPolicy: IfNotPresent - command: ["/bin/sh"] - args: ["-c", "while true; do echo $(date -u) >> /data/out.txt; sleep 5; done"] - volumeMounts: - - name: persistent-storage - mountPath: /data - restartPolicy: OnFailure - volumes: - - name: persistent-storage - persistentVolumeClaim: - claimName: vmware-csi-snapshot-restored-claim \ No newline at end of file diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester-kustomization.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester-kustomization.yaml new file mode 100644 index 00000000..a67ba6cc --- /dev/null +++ b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester-kustomization.yaml @@ -0,0 +1,29 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: test-app + namespace: flux-system +spec: + path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/test-app" + sourceRef: + kind: GitRepository + name: addons + namespace: flux-system + interval: 1m0s + prune: true +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: snapshot + namespace: flux-system +spec: + dependsOn: + - name: test-app + path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot" + sourceRef: + kind: GitRepository + name: addons + namespace: flux-system + interval: 1m0s + prune: true diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester.yaml deleted file mode 100644 index 9d83cd89..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-tester.yaml +++ /dev/null @@ -1,46 +0,0 @@ -apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 -kind: Kustomization -metadata: - name: test-app - namespace: flux-system -spec: - path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/test-app" - sourceRef: - kind: GitRepository - name: addons - namespace: flux-system - interval: 5m0s - prune: true ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 -kind: Kustomization -metadata: - name: snapshot - namespace: flux-system -spec: - dependsOn: - - name: test-app - path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot" - sourceRef: - kind: GitRepository - name: addons - namespace: flux-system - interval: 5m0s - prune: true ---- -# apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 -# kind: Kustomization -# metadata: -# name: snapshot-restore -# namespace: flux-system -# spec: -# dependsOn: -# - name: snapshot -# path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore" -# sourceRef: -# kind: GitRepository -# name: addons -# namespace: flux-system -# interval: 5m0s -# prune: true -# --- \ No newline at end of file diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot/kustomization.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot/kustomization.yaml deleted file mode 100644 index 82eabe75..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - snapshot.yaml - - snapshot-class.yaml \ No newline at end of file diff --git a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/test-app/kustomization.yaml b/eks-anywhere-vsphere/Testers/Core/snapshot-tester/test-app/kustomization.yaml deleted file mode 100644 index 8a2b46d1..00000000 --- a/eks-anywhere-vsphere/Testers/Core/snapshot-tester/test-app/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - claim.yaml - - test-app-job.yaml \ No newline at end of file