You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2019/07/08 11:42:01 UTC
[GitHub] [camel-k] lburgazzoli edited a comment on issue #766: Add
conditions to camel-k CRs
lburgazzoli edited a comment on issue #766: Add conditions to camel-k CRs
URL: https://github.com/apache/camel-k/pull/766#issuecomment-509190925
So I've added a little bit more logic and now if you describe an integration while it is building a kit you'll see something like:
```yaml
Name: routes-rest
Namespace: myproject
Creation Timestamp: Mon, 08 Jul 2019 13:34:02 +0200
Phase: Building Kit
Camel Version: 3.0.0-M3
Kit: kit-bkhikar8gd7uoo13f47g
Image:
Version: 1.0.0-M1-SNAPSHOT
Dependencies:
camel:core
camel:log
camel:timer
camel:undertow
runtime:jvm
Sources:
Name Language Compression Ref Ref Key
routes-rest.js js false
Conditions:
Type Status Reason Message
IntegrationPlatformAvailable True IntegrationPlatformAvailable camel-k
IntegrationKitAvailable False IntegrationKitAvailable
```
Once the kit is ready, then the `IntegrationKitAvailable` condition become true and other info such as services an routes are reported:
```yaml
Name: routes-rest
Namespace: myproject
Creation Timestamp: Mon, 08 Jul 2019 13:34:02 +0200
Phase: Running
Camel Version: 3.0.0-M3
Kit: kit-bkhikar8gd7uoo13f47g
Image: 172.30.1.1:5000/myproject/camel-k-kit-bkhikar8gd7uoo13f47g:1281056
Version: 1.0.0-M1-SNAPSHOT
Dependencies:
camel:core
camel:log
camel:timer
camel:undertow
runtime:jvm
Sources:
Name Language Compression Ref Ref Key
routes-rest.js js false
Conditions:
Type Status Reason Message
IntegrationPlatformAvailable True IntegrationPlatformAvailable camel-k
IntegrationKitAvailable True IntegrationKitAvailable kit-bkhikar8gd7uoo13f47g
DeploymentAvailable True DeploymentAvailable routes-rest
ExposureAvailable True RouteAvailable routes-rest -> routes-rest(http)
ServiceAvailable True ServiceAvailable routes-rest(http/80) -> routes-rest(http/8080)
```
If you run the same integration but with the `service` trait disabled, you should see something like:
```yaml
Name: routes-rest
Namespace: myproject
Creation Timestamp: Mon, 08 Jul 2019 13:37:12 +0200
Phase: Running
Camel Version: 3.0.0-M3
Kit: kit-bkhikar8gd7uoo13f47g
Image: 172.30.1.1:5000/myproject/camel-k-kit-bkhikar8gd7uoo13f47g:1281056
Version: 1.0.0-M1-SNAPSHOT
Dependencies:
camel:core
camel:log
camel:timer
camel:undertow
runtime:jvm
Sources:
Name Language Compression Ref Ref Key
routes-rest.js js false
Conditions:
Type Status Reason Message
IntegrationPlatformAvailable True IntegrationPlatformAvailable camel-k
ServiceAvailable False ServiceNotAvailable explicitly disabled
IntegrationKitAvailable True IntegrationKitAvailable kit-bkhikar8gd7uoo13f47g
DeploymentAvailable True DeploymentAvailable routes-rest
ExposureAvailable False RouteNotAvailable no target service found
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services