camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Polish trait conditions

Open squakez opened this issue 1 year ago • 1 comments

In version 2.2.0 we're introducing a condition that provide information about trait execution (warnings, error, info, ...). For example:

    - firstTruthyTime: "2024-01-05T14:59:28Z"
      lastTransitionTime: "2024-01-05T14:59:28Z"
      lastUpdateTime: "2024-01-05T14:59:31Z"
      message: 'explicitly disabled by the platform: container image was not built
        via Camel K operator'
      reason: jvmTraitConfiguration
      status: "True"
      type: TraitInfo

However, it may require to be adjusted according the expected k8s conditions API: https://pkg.go.dev/k8s.io/[email protected]/pkg/apis/meta/v1#Condition

Something that is happening is that we have a single type, whilst we probably need to have a different one for each trait.

squakez avatar Jan 05 '24 15:01 squakez

We may also change the Build CR conditions for containers which reason is not following Kubernetes convention.

squakez avatar Jan 12 '24 11:01 squakez