Class DefaultFeedbackProvider.ImmutableFeedbackProvider

java.lang.Object
org.arquillian.cube.kubernetes.impl.feedback.DefaultFeedbackProvider.ImmutableFeedbackProvider
All Implemented Interfaces:
FeedbackProvider, WithToImmutable<FeedbackProvider>
Enclosing class:
DefaultFeedbackProvider

public static class DefaultFeedbackProvider.ImmutableFeedbackProvider extends Object implements FeedbackProvider, WithToImmutable<FeedbackProvider>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final io.fabric8.kubernetes.client.KubernetesClient
     
    protected final Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImmutableFeedbackProvider(io.fabric8.kubernetes.client.KubernetesClient client, Logger logger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    displayContainerLogs(io.fabric8.kubernetes.api.model.Pod pod, io.fabric8.kubernetes.api.model.Container container)
     
    protected void
    displayPodEvents(io.fabric8.kubernetes.api.model.Pod pod)
     
    io.fabric8.kubernetes.api.model.PodList
    findMatching(io.fabric8.kubernetes.api.model.apps.Deployment deployment)
    Returns the PodList that match the specified Deployment.
    io.fabric8.kubernetes.api.model.PodList
    findMatching(io.fabric8.kubernetes.api.model.apps.ReplicaSet replicaSet)
    Returns the PodList that match the specified ReplicaSet.
    <T extends io.fabric8.kubernetes.api.model.HasMetadata>
    void
    onResourceNotReady(T resource)
     
    <T extends io.fabric8.kubernetes.api.model.HasMetadata>
    io.fabric8.kubernetes.api.model.PodList
    podsOf(T resource)
    Finds the pod that correspond to the specified resource.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • client

      @Inject protected final io.fabric8.kubernetes.client.KubernetesClient client
    • logger

      @Inject protected final Logger logger
  • Constructor Details

    • ImmutableFeedbackProvider

      public ImmutableFeedbackProvider(io.fabric8.kubernetes.client.KubernetesClient client, Logger logger)
  • Method Details

    • onResourceNotReady

      public <T extends io.fabric8.kubernetes.api.model.HasMetadata> void onResourceNotReady(T resource)
      Specified by:
      onResourceNotReady in interface FeedbackProvider
    • displayContainerLogs

      protected void displayContainerLogs(io.fabric8.kubernetes.api.model.Pod pod, io.fabric8.kubernetes.api.model.Container container)
    • displayPodEvents

      protected void displayPodEvents(io.fabric8.kubernetes.api.model.Pod pod)
    • podsOf

      public <T extends io.fabric8.kubernetes.api.model.HasMetadata> io.fabric8.kubernetes.api.model.PodList podsOf(T resource)
      Finds the pod that correspond to the specified resource.
      Parameters:
      resource - The resource.
      Returns:
      The podList with the matching pods.
    • findMatching

      public io.fabric8.kubernetes.api.model.PodList findMatching(io.fabric8.kubernetes.api.model.apps.Deployment deployment)
      Returns the PodList that match the specified Deployment.
      Parameters:
      deployment - The Deployment
    • findMatching

      public io.fabric8.kubernetes.api.model.PodList findMatching(io.fabric8.kubernetes.api.model.apps.ReplicaSet replicaSet)
      Returns the PodList that match the specified ReplicaSet.
      Parameters:
      replicaSet - The ReplicaSet
    • toImmutable

      public FeedbackProvider toImmutable()
      Specified by:
      toImmutable in interface WithToImmutable<FeedbackProvider>