Details
-
Bug
-
Resolution: Fixed
-
Major
-
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.