From c9c1a8765f09543c6cd40a493195f9d69c24db88 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 13 Oct 2024 22:14:58 -0400 Subject: [PATCH] chore: change name of longhorn snapshot class --- kubernetes/common/templates/volsync/b2.yaml | 2 +- kubernetes/common/templates/volsync/minio.yaml | 4 ++-- kubernetes/main/core/longhorn/kustomization.yaml | 2 +- .../{snapshot-class-bak.yaml => snapshot-class.yaml} | 6 ++---- 4 files changed, 6 insertions(+), 8 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..51d5440 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}"] @@ -38,7 +38,7 @@ spec: restic: repository: "${APP}-volsync-secret" copyMethod: Snapshot # must be Snapshot - volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn-backup}" + volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-longhorn}" cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-mainpool-hostpath}" cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"] cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}" 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