haanhvu commented on PR #3230: URL: https://github.com/apache/camel-k/pull/3230#issuecomment-1128776648
@squakez when creating the example I found out several things: 1. `accessModes` was missed in the pvc definition. So I added a ReadWriteOnce accessModes to the pvc definition. In fact another option would be let users specify on the accessModes in the trait property. What do you prefer? 2. The pvc couldn't be created due to this error: `Cannot reconcile Integration routes: error executing post actions: error during apply resource: /pvc-example1: persistentvolumeclaims "pvc-example1" is forbidden: User "system:serviceaccount:default:camel-k-operator" cannot patch resource "persistentvolumeclaims" in API group "" at the cluster scope`. This can be easily fixed with the `kubectl create clusterrolebinding` command. However, is this strange that the operator cannot patch pvc by default? Because from what I see in https://github.com/apache/camel-k/blob/main/config/rbac/operator-role.yaml#L70&L80 the operator has the role to patch pvc -- 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]
