Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
Description
Updating the following pod-volumeMounts values are getting applied to the cluster
- ● spec.servers.pod.volumeMounts.properties.data
- ● spec.servers.pod.volumeMounts.properties.default
- ● spec.servers.pod.volumeMounts.properties.index
Updating this mount points can result in data loss, so should be caught before applying.
Ashwins-MacBook-Pro:couchbase-operator]$ ./build/bin/cbopctl --version
|
cbopctl version 0.9.0 (master 3b1ae5112934d3af749a9122b62d2f1e523da7da)
|
|
Test output:
|
------------
|
validation_test.go:235: Running test: Update spec.servers.pod.volumeMounts.properties.data value
|
validation_test.go:254: Returned: Error decoding specification: no kind "CouchbaseCluster" is registered for version "couchbase.database.couchbase.com/v1beta1"
|
util.go:514: Deleting clusters: [[]]
|
validation_test.go:265: Returned: couchbaseclusters "cb-example" created
|
validation_test.go:290: setting parameter: {field:[Spec ServerSettings 1 Pod VolumeMounts Data] fieldType:string fieldValue:newVolumeMount fieldIsPointer:false}
|
validation_test.go:307: Returned: couchbaseclusters "cb-example" applied
|
validation_test.go:325: expected message: spec.servers[1].pod.volumeMounts.properties.data in body cannot be updated
|
returned message: couchbaseclusters "cb-example" applied
|
|
validation_test.go:235: Running test: Update spec.servers.pod.volumeMounts.properties.default value
|
validation_test.go:254: Returned: couchbaseclusters "cb-example" deleted
|
util.go:514: Deleting clusters: [[]]
|
validation_test.go:265: Returned: couchbaseclusters "cb-example" created
|
validation_test.go:290: setting parameter: {field:[Spec ServerSettings 1 Pod VolumeMounts Default] fieldType:string fieldValue:newVolumeMount fieldIsPointer:false}
|
validation_test.go:307: Returned: couchbaseclusters "cb-example" applied
|
validation_test.go:325: expected message: spec.servers[1].pod.volumeMounts.properties.default in body cannot be updated
|
returned message: couchbaseclusters "cb-example" applied
|
|
validation_test.go:235: Running test: Update spec.servers.pod.volumeMounts.properties.index value
|
validation_test.go:254: Returned: couchbaseclusters "cb-example" deleted
|
util.go:514: Deleting clusters: [[]]
|
validation_test.go:265: Returned: couchbaseclusters "cb-example" created
|
validation_test.go:290: setting parameter: {field:[Spec ServerSettings 1 Pod VolumeMounts Index] fieldType:string fieldValue:newVolumeMount fieldIsPointer:false}
|
validation_test.go:307: Returned: couchbaseclusters "cb-example" applied
|
validation_test.go:325: expected message: spec.servers[1].pod.volumeMounts.properties.index in body cannot be updated
|
returned message: couchbaseclusters "cb-example" applied
|