diff --git a/pkg/sanity/controller.go b/pkg/sanity/controller.go index 022e1e6d..9cc80853 100644 --- a/pkg/sanity/controller.go +++ b/pkg/sanity/controller.go @@ -953,6 +953,9 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) { }) It("should fail when the volume is already published but is incompatible", func() { + if !isControllerCapabilitySupported(c, csi.ControllerServiceCapability_RPC_PUBLISH_READONLY) { + Skip("ControllerPublishVolume.readonly field not supported") + } // Create Volume First By("creating a single node writer volume")