Open
Description
There are several attributes that refer to a singleton object represented by its Class, e.g. conditions and discriminators. Examples are:
@KubernetesDependent(resourceDiscriminator = MyDiscriminator.class)
@Dependent(reconcilePrecondition = MyReconcilepreondition.class)
@Dependent(readyPostcondition = MyReadyPostcondition.class)
@Dependent(deletePostcondition = MyDeletePostcondition.class)
There is no way to inject additional dependencies into these classes since they are always instantiated via their default constructor. It would be useful to support attribute and constructor injection via CDI.
One use case is to inject the OpenShiftClient
into a reconcile precondition class to implement checks agains the OCP API.
Metadata
Metadata
Assignees
Labels
No labels