Class KubernetesCustomAccountConfigurationProvider
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.config.AbstractBootstrapCredentialsConfigurationProvider<KubernetesAccountProperties>
-
- com.netflix.spinnaker.clouddriver.kubernetes.config.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 theKubernetesAccountPropertiesis written but it still uses SpringBoot's Binder class.KubernetesCustomAccountConfigurationProviderclass fetches the flattened kubernetes properties from Spring Cloud Config's BootstrapPropertySource and creates anKubernetesAccountPropertiesobject.
-
-
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 KubernetesAccountPropertiesgetConfigurationProperties()
-
-
-
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:
getConfigurationPropertiesin interfacecom.netflix.spinnaker.clouddriver.config.ConfigurationProvider<KubernetesAccountProperties>- Specified by:
getConfigurationPropertiesin classcom.netflix.spinnaker.clouddriver.config.AbstractBootstrapCredentialsConfigurationProvider<KubernetesAccountProperties>
-
-