Class Front50ApplicationLoader
java.lang.Object
com.netflix.spinnaker.clouddriver.kubernetes.caching.agent.Front50ApplicationLoader
@Component
@ConditionalOnProperty("kubernetes.cache.checkApplicationInFront50")
public class Front50ApplicationLoader
extends Object
we could have a conditional on both kubernetes.cache.checkApplicationInFront50 and
services.front50.enabled properties. But if the former is enabled and the latter is not, that
means the downstream clients relying on this will fail, since the cache will be empty. So we
explicitly leave out the front50 conditional and log an error message in the refreshCache()
stating the same. We could have logged the error message in the downstream clients if if couldn't
find the front50ApplicationLoader bean but that can be extremely noisy.
-
Method Summary
-
Method Details
-
getData
-
refreshCache
@Scheduled(fixedDelayString="${kubernetes.cache.refreshFront50ApplicationsCacheIntervalInMs:60000}") protected void refreshCache()
-