Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#141 from wnxn/readonly-publish
Browse files Browse the repository at this point in the history
Fix controller publish in readonly mode
  • Loading branch information
k8s-ci-robot authored Nov 28, 2018
2 parents 0b1ea66 + 79fd0e5 commit 484b2c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sanity/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 484b2c3

Please sign in to comment.