Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-484

cbopctl: Updating pod.VolumeMounts.* are applied to the cluster

    XMLWordPrintable

Details

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            simon.murray Simon Murray
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty