nvazquez commented on PR #9102:
URL: https://github.com/apache/cloudstack/pull/9102#issuecomment-2981079801

   @bernardodemarco I've addressed the use case:
   
   - Having a different offering per node type:
   ````
   (localcloud) 🐱 > list virtualmachines filter=id,name,serviceofferingname,
   {
     "count": 2,
     "virtualmachine": [
       {
         "id": "87fbaefe-212f-4cdd-a006-50f3461a60bc",
         "name": "cks-control-1977e7f1130",
         "serviceofferingname": "Control-Offering"
       },
       {
         "id": "b5fc5c71-5aa3-4268-bb48-befe8789b090",
         "name": "cks-node-1977e7f5641",
         "serviceofferingname": "Worker-Offering"
       }
   (localcloud) 🐱 > list kubernetesclusters 
id=54de3e3c-a965-41b3-961f-894c5bc66e15 
filter=serviceofferingname,controlofferingname,workerofferingname,
   {
     "count": 1,
     "kubernetescluster": [
       {
         "controlofferingname": "Control-Offering",
         "serviceofferingname": "CKS - 2GB",
         "workerofferingname": "Worker-Offering"
       }
     ]
   }
   ````
   
   - Update global offering for the cluster:
   ````
   scale kubernetescluster id=54de3e3c-a965-41b3-961f-894c5bc66e15 
serviceofferingid=386a2c4a-5d16-4a4e-b27e-ecc84538cbfe 
   ````
   
   - Verification:
   
   ````
   (localcloud) 🐱 > list kubernetesclusters 
id=54de3e3c-a965-41b3-961f-894c5bc66e15 
filter=serviceofferingname,controlofferingname,workerofferingname,
   {
     "count": 1,
     "kubernetescluster": [
       {
         "controlofferingname": "New-Offering",
         "serviceofferingname": "New-Offering",
         "workerofferingname": "New-Offering"
       }
     ]
   }
   (localcloud) 🐱 > list virtualmachines filter=id,name,serviceofferingname,
   {
     "count": 2,
     "virtualmachine": [
       {
         "id": "87fbaefe-212f-4cdd-a006-50f3461a60bc",
         "name": "cks-control-1977e7f1130",
         "serviceofferingname": "New-Offering"
       },
       {
         "id": "b5fc5c71-5aa3-4268-bb48-befe8789b090",
         "name": "cks-node-1977e7f5641",
         "serviceofferingname": "New-Offering"
       }
     ]
   }
   ````


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to