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.
-
-
Field Summary
-
Fields inherited from class com.netflix.spinnaker.clouddriver.kubernetes.caching.agent.KubernetesCachingAgent
accountName, agentCount, agentIndex, agentInterval, configurationProperties, credentials, jobExecutor, kubernetesSpinnakerKindMap, objectMapper, providerName, registry, SPINNAKER_UI_KINDS
-
-
Constructor Summary
Constructors Constructor Description KubernetesUnregisteredCustomResourceCachingAgent(KubernetesNamedAccountCredentials namedAccountCredentials, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.netflix.spectator.api.Registry registry, int agentIndex, int agentCount, java.lang.Long agentInterval, KubernetesConfigurationProperties configurationProperties, KubernetesSpinnakerKindMap kubernetesSpinnakerKindMap, Front50ApplicationLoader front50ApplicationLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<com.netflix.spinnaker.cats.agent.AgentDataType>getProvidedDataTypes()protected com.google.common.collect.ImmutableList<KubernetesKind>primaryKinds()-
Methods inherited from class com.netflix.spinnaker.clouddriver.kubernetes.caching.agent.KubernetesCachingAgent
buildCacheResult, buildCacheResult, defaultIntrospectionDetails, filteredPrimaryKinds, getAgentType, getNamespaces, handleClusterScopedResources, loadData, loadPrimaryResource, loadPrimaryResource, loadPrimaryResourceList, loadSecondaryResourceRelationships
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netflix.spinnaker.cats.agent.Agent
getProviderName, handlesAccount
-
-
-
-
Constructor Detail
-
KubernetesUnregisteredCustomResourceCachingAgent
public KubernetesUnregisteredCustomResourceCachingAgent(KubernetesNamedAccountCredentials namedAccountCredentials, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.netflix.spectator.api.Registry registry, int agentIndex, int agentCount, java.lang.Long agentInterval, KubernetesConfigurationProperties configurationProperties, KubernetesSpinnakerKindMap kubernetesSpinnakerKindMap, @Nullable Front50ApplicationLoader front50ApplicationLoader)
-
-
Method Detail
-
getProvidedDataTypes
public com.google.common.collect.ImmutableSet<com.netflix.spinnaker.cats.agent.AgentDataType> getProvidedDataTypes()
-
primaryKinds
protected com.google.common.collect.ImmutableList<KubernetesKind> primaryKinds()
- Specified by:
primaryKindsin classKubernetesCachingAgent
-
-