mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-25 15:33:33 +00:00
IsReadOnly bool on builder
This commit is contained in:
@@ -216,6 +216,10 @@ type rbdCleaner struct {
|
||||
|
||||
var _ volume.Cleaner = &rbdCleaner{}
|
||||
|
||||
func (b *rbd) IsReadOnly() bool {
|
||||
return b.ReadOnly
|
||||
}
|
||||
|
||||
// Unmounts the bind mount, and detaches the disk only if the disk
|
||||
// resource was the last reference to that disk on the kubelet.
|
||||
func (c *rbdCleaner) TearDown() error {
|
||||
|
||||
Reference in New Issue
Block a user