camel-k
camel-k copied to clipboard
Polish trait conditions
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.
We may also change the Build CR conditions for containers which reason is not following Kubernetes convention.