mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-30 16:49:29 +00:00
Merge pull request #94 from ceph/devel
Sync upstream devel to downstream devel
This commit is contained in:
commit
56cf5b8f58
@ -18,7 +18,7 @@ spec:
|
||||
- --probe-timeout=3s
|
||||
- --health-port=29653
|
||||
- --v=2
|
||||
image: registry.k8s.io/sig-storage/livenessprobe:v2.5.0
|
||||
image: registry.k8s.io/sig-storage/livenessprobe:v2.6.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: liveness-probe
|
||||
resources:
|
||||
@ -44,7 +44,7 @@ spec:
|
||||
fieldRef:
|
||||
apiVersion: v1
|
||||
fieldPath: spec.nodeName
|
||||
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.4.0
|
||||
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
exec:
|
||||
|
@ -352,7 +352,7 @@ func initVaultKMS(args ProviderInitArgs) (EncryptionKMS, error) {
|
||||
|
||||
kms.vaultConfig[vault.AuthMountPath], err = detectAuthMountPath(vaultAuthPath)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to set %s in Vault config: %w", vault.AuthMountPath, err)
|
||||
return nil, fmt.Errorf("failed to set \"vaultAuthPath\" in Vault config: %w", err)
|
||||
}
|
||||
|
||||
vaultRole := vaultDefaultRole
|
||||
|
@ -18,6 +18,7 @@ package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
"github.com/ceph/ceph-csi/internal/cephfs"
|
||||
"github.com/ceph/ceph-csi/internal/cephfs/store"
|
||||
@ -140,8 +141,8 @@ func (cs *Server) DeleteVolume(
|
||||
defer nfsVolume.Destroy()
|
||||
|
||||
err = nfsVolume.DeleteExport()
|
||||
// TODO: if the export does not exist, but the backend does, delete the backend
|
||||
if err != nil {
|
||||
// if the export does not exist, continue with deleting the backend volume
|
||||
if err != nil && !strings.Contains(err.Error(), "Export does not exist") {
|
||||
return nil, status.Errorf(codes.InvalidArgument, "failed to delete export: %v", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user