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

cbopctl apply not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.8.0
    • None
    • None
    • None

    Description

      kubectl create -f ~/Desktop/K8-CB/deployment.yml

      kubectl create -f ~/Desktop/K8-CB/secret.yml

      ./build/bin/cbopctl create -f ~/Desktop/K8-CB/cb-cluster.yml

      ./build/bin/cbopctl apply -f ~/Desktop/K8-CB/cb-cluster.yml

       

      Create a deployment and cb cluster, then run cbopctl apply without modifying the cb-cluster yaml. Gives this error:

      couchbaseclusters.couchbase.database.couchbase.com "cb-example" is invalid: metadata.resourceVersion: Invalid value: 0x0: must be specified for an update

      If you run the kubectl version of apply you will get this output and the apply with succeeed:

      Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply

      couchbasecluster "cb-example" configured

       

      I think the apply function should grab the latest resourceVersion from kubernetes or openshift and apply the changes on top of that for this to work.

       

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            korrigan.clark Korrigan Clark (Inactive)
            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