[GitHub] [camel-k] ammachado commented on issue #3341: How to deal with `SNAPSHOT` dependencies?

2022-06-15 Thread GitBox


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

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


-- 
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: commits-unsubscr...@camel.apache.org

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



[GitHub] [camel-k] ammachado commented on issue #3341: How to deal with `SNAPSHOT` dependencies?

2022-06-14 Thread GitBox


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: commits-unsubscr...@camel.apache.org

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



[GitHub] [camel-k] ammachado commented on issue #3341: How to deal with `SNAPSHOT` dependencies?

2022-06-10 Thread GitBox


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

   I think that this behavior is not related to the refresh policy.
   
   Since there's no change on the integration dependency list, it won't trigger 
the build of a new integration kit, which is when the dependencies are pulled.  
Yet a `SNAPSHOT` dependency might have changed.


-- 
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: commits-unsubscr...@camel.apache.org

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