This repository was archived by the owner on May 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
This repository was archived by the owner on May 8, 2024. It is now read-only.
Upgrade 3.7.0->3.8.0 fails when there exists a volumesnapshotclass #339
Copy link
Copy link
Open
Description
When i try to upgrade, i get:
# helm -n openebs upgrade openebs openebs/openebs --reuse-values --version 3.8.0
false
Error: UPGRADE FAILED: Unable to continue with update: CustomResourceDefinition "volumesnapshotclasses.snapshot.storage.k8s.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "openebs"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "openebs"
Actually i have one volumesnapshotclass:
# kubectl get volumesnapshotclasses.snapshot.storage.k8s.io
NAME DRIVER DELETIONPOLICY AGE
longhorn-snapshot-vsc driver.longhorn.io Delete 132d
# kubectl get volumesnapshotclasses.snapshot.storage.k8s.io longhorn-snapshot-vsc -o yaml
apiVersion: snapshot.storage.k8s.io/v1
deletionPolicy: Delete
driver: driver.longhorn.io
kind: VolumeSnapshotClass
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"snapshot.storage.k8s.io/v1","deletionPolicy":"Delete","driver":"driver.longhorn.io","kind":"VolumeSnapshotClass","metadata":{"annotations":{},"labels":{"velero.io/csi-volumesnapshot-class":"true"},"name":"longhorn-snapshot-vsc"},"parameters":{"type":"snap"}}
creationTimestamp: "2023-05-23T08:24:38Z"
generation: 2
labels:
velero.io/csi-volumesnapshot-class: "true"
managedFields:
- apiVersion: snapshot.storage.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
f:deletionPolicy: {}
f:driver: {}
f:metadata:
f:annotations:
.: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:labels:
.: {}
f:velero.io/csi-volumesnapshot-class: {}
f:parameters:
.: {}
f:type: {}
manager: kubectl-client-side-apply
operation: Update
time: "2023-06-28T12:59:12Z"
name: longhorn-snapshot-vsc
resourceVersion: "105590151"
uid: b4206632-3c4b-459f-a0ff-d5324b9a2b0f
parameters:
type: snap
But this is from longhorn, not openebs.
How can i get over this?
trunet and pascal71
Metadata
Metadata
Assignees
Labels
No labels