Class KubernetesUnregisteredCustomResourceCachingAgent

java.lang.Object
com.netflix.spinnaker.clouddriver.kubernetes.caching.agent.KubernetesCachingAgent
com.netflix.spinnaker.clouddriver.kubernetes.caching.agent.KubernetesUnregisteredCustomResourceCachingAgent
All Implemented Interfaces:
com.netflix.spinnaker.cats.agent.AccountAware, com.netflix.spinnaker.cats.agent.Agent, com.netflix.spinnaker.cats.agent.AgentIntervalAware, com.netflix.spinnaker.cats.agent.CachingAgent

public class KubernetesUnregisteredCustomResourceCachingAgent extends KubernetesCachingAgent
Instances of this class cache CRDs for one particular account at regular intervals.

The list of CRDs to cache are the ones dynamically returned from "kubectl get crd" calls in KubernetesCredentials.getCrds(), so the kinds cached in this class change dynamically if CRDs are added or deleted from the cluster of a particular account. From this list, only the kinds to which clouddriver has access (kubectl get {kind}) and are allowed by configuration are cached.