From 7d470d4922f31e4714eae585123015897bec0e4e Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 13 Oct 2024 22:10:13 -0400 Subject: [PATCH] chore: change name of longhorn snapshot class --- kubernetes/common/templates/volsync/b2.yaml | 2 +- kubernetes/common/templates/volsync/minio.yaml | 2 +- kubernetes/main/core/longhorn/kustomization.yaml | 2 +- .../{snapshot-class-bak.yaml => snapshot-class.yaml} | 6 ++---- 4 files changed, 5 insertions(+), 7 deletions(-) rename kubernetes/main/core/longhorn/{snapshot-class-bak.yaml => snapshot-class.yaml} (76%) diff --git a/kubernetes/common/templates/volsync/b2.yaml b/kubernetes/common/templates/volsync/b2.yaml index 9f46c2a..159e471 100644 --- a/kubernetes/common/templates/volsync/b2.yaml +++ b/kubernetes/common/templates/volsync/b2.yaml @@ -11,7 +11,7 @@ spec: copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}" pruneIntervalDays: 7 repository: "${APP}-volsync-b2-secret" - volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}" + volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}" cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}" cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}" cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"] diff --git a/kubernetes/common/templates/volsync/minio.yaml b/kubernetes/common/templates/volsync/minio.yaml index eb53d5f..c83ed4c 100644 --- a/kubernetes/common/templates/volsync/minio.yaml +++ b/kubernetes/common/templates/volsync/minio.yaml @@ -12,7 +12,7 @@ spec: copyMethod: "${VOLSYNC_COPYMETHOD:-Snapshot}" pruneIntervalDays: 7 repository: "${APP}-volsync-secret" - volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}" + volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}" cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-4Gi}" cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}" cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"] diff --git a/kubernetes/main/core/longhorn/kustomization.yaml b/kubernetes/main/core/longhorn/kustomization.yaml index 6efbdcb..f998797 100644 --- a/kubernetes/main/core/longhorn/kustomization.yaml +++ b/kubernetes/main/core/longhorn/kustomization.yaml @@ -6,4 +6,4 @@ resources: - ./helm-release.yaml - ./alerts.yaml - ./service-monitor.yaml -- ./snapshot-class-bak.yaml \ No newline at end of file +- ./snapshot-class.yaml \ No newline at end of file diff --git a/kubernetes/main/core/longhorn/snapshot-class-bak.yaml b/kubernetes/main/core/longhorn/snapshot-class.yaml similarity index 76% rename from kubernetes/main/core/longhorn/snapshot-class-bak.yaml rename to kubernetes/main/core/longhorn/snapshot-class.yaml index 0004e25..2fbabf7 100644 --- a/kubernetes/main/core/longhorn/snapshot-class-bak.yaml +++ b/kubernetes/main/core/longhorn/snapshot-class.yaml @@ -2,8 +2,6 @@ kind: VolumeSnapshotClass apiVersion: snapshot.storage.k8s.io/v1 metadata: - name: longhorn-backup + name: longhorn driver: driver.longhorn.io -deletionPolicy: Delete -parameters: - type: bak \ No newline at end of file +deletionPolicy: Delete \ No newline at end of file