ammachado commented on issue #3341:
URL: https://github.com/apache/camel-k/issues/3341#issuecomment-1155800890

   By the way, I'm testing here with `kamel rebuild` and I'm getting the 
following error:
   
   > Error: could not rebuild integration my-route-k in namespace dev: 
integrations.camel.apache.org "my-route-k" is forbidden: User "ammachado" 
cannot update resource "integrations/status" in API group "camel.apache.org" in 
the namespace "dev"
   
   I'm fiddling with cluster permissions here, it is an Openshift cluster.  My 
user has `cluster-reader` rights and I am admin of the namespace.
   
   Running `oc auth can-i * integrations` I receive a `yes` answer and running 
`oc auth can-i * integrations/status` I also receive `yes` as the answer, so I 
figure I have all the rights needed.
   
   Which permissions are needed to run `kamel rebuild`?
   
   Also, looking at the source code, it seems that `kamel rebuild` only delete 
the `status` field.  I may be wrong, but I think that I can do the same with a 
`oc edit` command and setting `status: {}` and let the operator reconcile it.  
Doing the latter, the `status` is recreated with the original kit, since from 
what I could find, the operator tries to reuse an existing kit based on the 
traits and the dependencies.
   


-- 
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