argo-cd/resource_customizations/camel.apache.org/Integration/testdata/degraded.yaml
Miguel de Barros 1e2f5987d2
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 <migueld@debarros.me>

* chore: cleanup up main health.lua

Signed-off-by: mdebarros <miguel@debarros.me>

---------

Signed-off-by: mdebarros <migueld@debarros.me>
Signed-off-by: mdebarros <miguel@debarros.me>
Co-authored-by: mdebarros <migueld@debarros.me>
2024-05-30 14:35:19 +03:00

58 lines
1.9 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-26T16:01:50Z"
lastTransitionTime: "2024-01-26T16:01:50Z"
lastUpdateTime: "2024-01-26T16:01:50Z"
message: camel-k/camel-k
reason: IntegrationPlatformAvailable
status: "True"
type: IntegrationPlatformAvailable
- firstTruthyTime: "2024-01-26T16:01:52Z"
lastTransitionTime: "2024-01-26T16:01:52Z"
lastUpdateTime: "2024-01-26T16:01:52Z"
message: kit-cmkkksgve68c73e60i60
reason: IntegrationKitAvailable
status: "True"
type: IntegrationKitAvailable
- lastTransitionTime: "2024-01-26T16:01:52Z"
lastUpdateTime: "2024-01-26T16:01:52Z"
message: different controller strategy used (knative-service)
reason: CronJobNotAvailableReason
status: "False"
type: CronJobAvailable
- lastTransitionTime: "2024-01-26T16:01:52Z"
lastUpdateTime: "2024-01-26T16:01:52Z"
message: 'controller strategy: knative-service'
reason: DeploymentAvailable
status: "False"
type: DeploymentAvailable
- firstTruthyTime: "2024-01-26T16:01:52Z"
lastTransitionTime: "2024-01-26T16:01:52Z"
lastUpdateTime: "2024-01-26T16:01:52Z"
message: Knative service name is api-example
reason: KnativeServiceAvailable
status: "True"
type: KnativeServiceAvailable
- lastTransitionTime: "2024-01-26T16:01:52Z"
lastUpdateTime: "2024-01-26T16:02:55Z"
message: back-off 40s restarting failed container=integration pod=camelk-example-deployment
reason: Error
status: "False"
type: Ready
phase: Error