Interface ResourceEventSource<R,​P extends io.fabric8.kubernetes.api.model.HasMetadata>

    • Method Detail

      • getSecondaryResource

        default Optional<R> getSecondaryResource​(P primary)
        Description copied from interface: ResourceOwner
        Retrieves the resource associated with the specified primary one, returning the actual state of the resource. Typically, this state might come from a local cache, updated after reconciliation.
        Specified by:
        getSecondaryResource in interface ResourceOwner<R,​P extends io.fabric8.kubernetes.api.model.HasMetadata>
        Parameters:
        primary - the primary resource for which we want to retrieve the secondary resource
        Returns:
        an Optional containing the secondary resource or Optional.empty() if it doesn't exist
      • getSecondaryResources

        Set<R> getSecondaryResources​(P primary)