Merge pull request #28 from iocanel/14

Move config stuff to its own module.

fixes gh-14
This commit is contained in:
Spencer Gibb
2016-12-20 13:14:10 -05:00
committed by GitHub
23 changed files with 102 additions and 13 deletions

View File

@@ -74,6 +74,7 @@
<modules>
<module>spring-cloud-kubernetes-dependencies</module>
<module>spring-cloud-kubernetes-core</module>
<module>spring-cloud-kubernetes-config</module>
<module>spring-cloud-kubernetes-discovery</module>
<module>spring-cloud-kubernetes-ribbon</module>
<module>spring-cloud-kubernetes-zipkin</module>

View File

View File

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-cloud-kubernetes</artifactId>
<groupId>org.springframework.cloud</groupId>
<version>0.2.0.BUILD-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-kubernetes-conifg</artifactId>
<name>Spring Cloud Kubernetes :: Config</name>
<dependencies>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-kubernetes-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-context</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<!-- Only needed at compile time -->
<scope>provided</scope>
</dependency>
<!-- Testing Dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>mockwebserver</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.spockframework</groupId>
<artifactId>spock-spring</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package org.springframework.cloud.kubernetes.reload;
package org.springframework.cloud.kubernetes.config.reload;
import io.fabric8.kubernetes.client.KubernetesClient;
import org.springframework.cloud.kubernetes.config.ConfigMapPropertySourceLocator;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package org.springframework.cloud.kubernetes.reload;
package org.springframework.cloud.kubernetes.config.reload;
import org.springframework.boot.context.properties.ConfigurationProperties;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package org.springframework.cloud.kubernetes.reload;
package org.springframework.cloud.kubernetes.config.reload;
import java.util.LinkedList;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package org.springframework.cloud.kubernetes.reload;
package org.springframework.cloud.kubernetes.config.reload;
import java.util.Objects;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package org.springframework.cloud.kubernetes.reload;
package org.springframework.cloud.kubernetes.config.reload;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
package org.springframework.cloud.kubernetes.reload;
package org.springframework.cloud.kubernetes.config.reload;
import javax.annotation.PostConstruct;

View File

@@ -0,0 +1,5 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.kubernetes.config.reload.ConfigReloadAutoConfiguration
org.springframework.cloud.bootstrap.BootstrapConfiguration=\
org.springframework.cloud.kubernetes.config.BootstrapConfiguration

View File

@@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.kubernetes.config.test
package org.springframework.cloud.kubernetes.config
import io.fabric8.kubernetes.api.model.SecretBuilder
import io.fabric8.kubernetes.api.model.ConfigMapBuilder

View File

@@ -15,7 +15,7 @@
*
*/
package org.springframework.cloud.kubernetes.config.test
package org.springframework.cloud.kubernetes.config
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication

View File

@@ -1,9 +1,5 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.cloud.kubernetes.KubernetesAutoConfiguration,\
org.springframework.cloud.kubernetes.reload.ConfigReloadAutoConfiguration
org.springframework.cloud.bootstrap.BootstrapConfiguration=\
org.springframework.cloud.kubernetes.config.BootstrapConfiguration
org.springframework.cloud.kubernetes.KubernetesAutoConfiguration\
org.springframework.context.ApplicationContextInitializer=\
org.springframework.cloud.kubernetes.profile.KubernetesApplicationContextInitializer