mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-02-07 03: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
|
- --probe-timeout=3s
|
||||||
- --health-port=29653
|
- --health-port=29653
|
||||||
- --v=2
|
- --v=2
|
||||||
image: registry.k8s.io/sig-storage/livenessprobe:v2.5.0
|
image: registry.k8s.io/sig-storage/livenessprobe:v2.6.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: liveness-probe
|
name: liveness-probe
|
||||||
resources:
|
resources:
|
||||||
@ -44,7 +44,7 @@ spec:
|
|||||||
fieldRef:
|
fieldRef:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
fieldPath: spec.nodeName
|
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
|
imagePullPolicy: IfNotPresent
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
|
@ -352,7 +352,7 @@ func initVaultKMS(args ProviderInitArgs) (EncryptionKMS, error) {
|
|||||||
|
|
||||||
kms.vaultConfig[vault.AuthMountPath], err = detectAuthMountPath(vaultAuthPath)
|
kms.vaultConfig[vault.AuthMountPath], err = detectAuthMountPath(vaultAuthPath)
|
||||||
if err != nil {
|
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
|
vaultRole := vaultDefaultRole
|
||||||
|
@ -18,6 +18,7 @@ package controller
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/ceph/ceph-csi/internal/cephfs"
|
"github.com/ceph/ceph-csi/internal/cephfs"
|
||||||
"github.com/ceph/ceph-csi/internal/cephfs/store"
|
"github.com/ceph/ceph-csi/internal/cephfs/store"
|
||||||
@ -140,8 +141,8 @@ func (cs *Server) DeleteVolume(
|
|||||||
defer nfsVolume.Destroy()
|
defer nfsVolume.Destroy()
|
||||||
|
|
||||||
err = nfsVolume.DeleteExport()
|
err = nfsVolume.DeleteExport()
|
||||||
// TODO: if the export does not exist, but the backend does, delete the backend
|
// if the export does not exist, continue with deleting the backend volume
|
||||||
if err != nil {
|
if err != nil && !strings.Contains(err.Error(), "Export does not exist") {
|
||||||
return nil, status.Errorf(codes.InvalidArgument, "failed to delete export: %v", err)
|
return nil, status.Errorf(codes.InvalidArgument, "failed to delete export: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user