You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/21 09:17:42 UTC

[GitHub] [rocketmq-operator] feiyuyitiao opened a new issue, #117: lost "volumeClaimTemplates>metadata>name "'s value after apply yaml, this issue cause recreate pvc when redeploy.

feiyuyitiao opened a new issue, #117:
URL: https://github.com/apache/rocketmq-operator/issues/117

   after deploy, view k8s sts  broker-0-master or broker-0-replica-1, it miss  " volumeClaimTemplates (name: namesrv-storage" or "storageClassName: rocketmq-storage") which defined in template file rocketmq_v1alpha1_rocketmq_cluster.yaml.
   ![image](https://user-images.githubusercontent.com/5387559/180177141-99abdc1c-23d5-474a-b2df-e0c3aa7ad4a1.png)
   
   **temp fix by:**
   pkg/controller/nameservice/nameservice_controller.go:257 , method: getVolumeClaimTemplates()
   ......
   		templates := nameService.Spec.VolumeClaimTemplates 
   		templates[0].ObjectMeta.Name = "namesrv-storage" 
   		return templates
   .......
   pkg/controller/broker/broker_controller.go:507 , method: getVolumeClaimTemplates()
   .....
   		templates := broker.Spec.VolumeClaimTemplates 
   		templates[0].ObjectMeta.Name = "broker-storage" 
   		return templates
   .....


-- 
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: dev-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] feiyuyitiao commented on issue #117: lost "volumeClaimTemplates>metadata>name "'s value after apply yaml, this issue cause recreate pvc when redeploy.

Posted by GitBox <gi...@apache.org>.
feiyuyitiao commented on issue #117:
URL: https://github.com/apache/rocketmq-operator/issues/117#issuecomment-1191274039

   I found the 'https://github.com/apache/rocketmq-operator/pull/116' fixed yesterday.
   so I add change " crd:generateEmbeddedObjectMeta=true "  in manifests: controller-gen, fix currentissue. thanks!
   
   sorry, I dont' familar with operatorframework. 


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy closed issue #117: lost "volumeClaimTemplates>metadata>name "'s value after apply yaml, this issue cause recreate pvc when redeploy.

Posted by GitBox <gi...@apache.org>.
caigy closed issue #117: lost "volumeClaimTemplates>metadata>name "'s value after apply yaml,  this issue cause recreate pvc  when redeploy.
URL: https://github.com/apache/rocketmq-operator/issues/117


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-operator] caigy commented on issue #117: lost "volumeClaimTemplates>metadata>name "'s value after apply yaml, this issue cause recreate pvc when redeploy.

Posted by GitBox <gi...@apache.org>.
caigy commented on issue #117:
URL: https://github.com/apache/rocketmq-operator/issues/117#issuecomment-1197769087

   Solved by #116 


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org