Class DiscoveryCache

java.lang.Object
io.micronaut.kubernetes.client.DiscoveryCache

@Requires(beans=io.kubernetes.client.Discovery.class) @Singleton @Internal public class DiscoveryCache extends Object
Bean that provides caching over the Discovery results.
Since:
3.1
Author:
Pavol Gressa
  • Constructor Details

  • Method Details

    • findAll

      public Set<io.kubernetes.client.Discovery.APIResource> findAll() throws io.kubernetes.client.openapi.ApiException
      Find all Discovery.APIResource.
      Returns:
      set of discovered resources
      Throws:
      io.kubernetes.client.openapi.ApiException - when failed to download api resources
    • find

      public Optional<io.kubernetes.client.Discovery.APIResource> find(Class<? extends io.kubernetes.client.common.KubernetesObject> clazz)
      Finds the Discovery.APIResource for respective KubernetesObject class.
      Parameters:
      clazz - kubernetes object class
      Returns:
      api resource