Files
e885b9f176 feat(issue/#17003): implement camel.apache.org/Integration CRD health checks (#17004)
* feat: implement camel.apache.org/Integration CRD health checks

Added custom health checks for Camel-K Integration CRDs

Signed-off-by: mdebarros <[email protected]>

* chore: cleanup up main health.lua

Signed-off-by: mdebarros <[email protected]>

---------

Signed-off-by: mdebarros <[email protected]>
Signed-off-by: mdebarros <[email protected]>
Co-authored-by: mdebarros <[email protected]>
2024-05-30 14:35:19 +03:00

39 lines
1.1 KiB
YAML

apiVersion: camel.apache.org/v1
kind: Integration
metadata:
annotations:
camel.apache.org/operator.id: camel-k
generation: 1
name: camelk-example
namespace: default
spec:
sources:
- content: |
from('timer:tick?period=3000')
.setBody().constant('Hello world from Camel-K')
.to('log:info')
name: camelk-example.groovy
traits: {}
status:
conditions:
- firstTruthyTime: "2024-01-26T09:13:16Z"
lastTransitionTime: "2024-01-26T09:13:16Z"
lastUpdateTime: "2024-01-26T09:13:16Z"
message: camel-k/camel-k
reason: IntegrationPlatformAvailable
status: "True"
type: IntegrationPlatformAvailable
- firstTruthyTime: "2024-01-26T09:13:19Z"
lastTransitionTime: "2024-01-26T09:13:19Z"
lastUpdateTime: "2024-01-26T09:13:19Z"
message: kit-cmkkksgve68c73e60i60
reason: IntegrationKitAvailable
status: "True"
type: IntegrationKitAvailable
- lastTransitionTime: "2024-01-26T09:13:19Z"
lastUpdateTime: "2024-01-26T09:13:19Z"
message: different controller strategy used (knative-service)
reason: CronJobNotAvailableReason
status: "False"
type: CronJobAvailable
phase: Deploying