Class KubernetesCustomAccountConfigurationProvider

  • All Implemented Interfaces:
    com.netflix.spinnaker.clouddriver.config.ConfigurationProvider<KubernetesAccountProperties>

    public class KubernetesCustomAccountConfigurationProvider
    extends com.netflix.spinnaker.clouddriver.config.AbstractBootstrapCredentialsConfigurationProvider<KubernetesAccountProperties>
    If a configuration properties file has a large number of kubernetes accounts, as-is SpringBoot implementation of properties binding is inefficient. Hence, a custom logic for binding just the KubernetesAccountProperties is written but it still uses SpringBoot's Binder class. KubernetesCustomAccountConfigurationProvider class fetches the flattened kubernetes properties from Spring Cloud Config's BootstrapPropertySource and creates an KubernetesAccountProperties object.
    • Constructor Summary

      Constructors 
      Constructor Description
      KubernetesCustomAccountConfigurationProvider​(org.springframework.context.ConfigurableApplicationContext applicationContext, com.netflix.spinnaker.kork.configserver.CloudConfigResourceService configResourceService, com.netflix.spinnaker.kork.secrets.SecretManager secretManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KubernetesAccountProperties getConfigurationProperties()  
      • Methods inherited from class com.netflix.spinnaker.clouddriver.config.AbstractBootstrapCredentialsConfigurationProvider

        bind, getFlatMap, getPropertiesMap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KubernetesCustomAccountConfigurationProvider

        public KubernetesCustomAccountConfigurationProvider​(org.springframework.context.ConfigurableApplicationContext applicationContext,
                                                            com.netflix.spinnaker.kork.configserver.CloudConfigResourceService configResourceService,
                                                            com.netflix.spinnaker.kork.secrets.SecretManager secretManager)
    • Method Detail

      • getConfigurationProperties

        public KubernetesAccountProperties getConfigurationProperties()
        Specified by:
        getConfigurationProperties in interface com.netflix.spinnaker.clouddriver.config.ConfigurationProvider<KubernetesAccountProperties>
        Specified by:
        getConfigurationProperties in class com.netflix.spinnaker.clouddriver.config.AbstractBootstrapCredentialsConfigurationProvider<KubernetesAccountProperties>