Skip to content

Commit

Permalink
Rename kubernetes to config-kubernetes. Fixes #353
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Jul 27, 2020
1 parent 18a1216 commit 54d35ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ dependencies {
@if (features.contains("config-consul") && features.stream().noneMatch( f -> f.startsWith("discovery-"))) {
@dependency.template("io.micronaut", "micronaut-discovery-client", "implementation", null)
}
@if (features.contains("kubernetes")) {
@if (features.contains("config-kubernetes")) {
@dependency.template("io.micronaut.kubernetes", "micronaut-kubernetes-discovery-client", "implementation", null)
}
@if (features.contains("micrometer")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ List<Property> properties
@if (features.contains("config-consul") && features.stream().noneMatch( f -> f.startsWith("discovery-"))) {
@dependency.template("io.micronaut", "micronaut-discovery-client", "compile", null)
}
@if (features.contains("kubernetes")) {
@if (features.contains("config-kubernetes")) {
@dependency.template("io.micronaut.kubernetes", "micronaut-kubernetes-discovery-client", "compile", null)
}
@if (features.contains("micrometer")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Kubernetes(Management management, Jib jib) {

@Override
public String getName() {
return "kubernetes";
return "config-kubernetes";
}

@Override
Expand All @@ -48,7 +48,7 @@ public String getTitle() {

@Override
public String getDescription() {
return "Adds support for Kubernetes";
return "Adds support for Distributed Configuration with Kubernetes ConfigMap";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class KubernetesSpec extends BeanContextSpec implements CommandOutputFixture {

void 'test readme.md with feature kubernetes contains links to micronaut docs'() {
when:
def output = generate(['kubernetes'])
def output = generate(['config-kubernetes'])
def readme = output["README.md"]

then:
Expand All @@ -24,7 +24,7 @@ class KubernetesSpec extends BeanContextSpec implements CommandOutputFixture {
@Unroll
void 'test gradle kubernetes feature for language=#language'() {
when:
String template = buildGradle.template(ApplicationType.DEFAULT, buildProject(), getFeatures(['kubernetes'], language)).render().toString()
String template = buildGradle.template(ApplicationType.DEFAULT, buildProject(), getFeatures(['config-kubernetes'], language)).render().toString()

then:
template.contains('implementation("io.micronaut.kubernetes:micronaut-kubernetes-discovery-client")')
Expand All @@ -38,7 +38,7 @@ class KubernetesSpec extends BeanContextSpec implements CommandOutputFixture {
@Unroll
void 'test maven kubernetes feature for language=#language'() {
when:
String template = pom.template(ApplicationType.DEFAULT, buildProject(), getFeatures(['kubernetes'], language), []).render().toString()
String template = pom.template(ApplicationType.DEFAULT, buildProject(), getFeatures(['config-kubernetes'], language), []).render().toString()

then:
template.contains("""
Expand All @@ -55,7 +55,7 @@ class KubernetesSpec extends BeanContextSpec implements CommandOutputFixture {

void 'test kubernetes configuration'() {
when:
GeneratorContext commandContext = buildGeneratorContext(['kubernetes'])
GeneratorContext commandContext = buildGeneratorContext(['config-kubernetes'])

then:
commandContext.bootstrapConfig.get('micronaut.application.name'.toString()) == 'foo'
Expand Down

0 comments on commit 54d35ab

Please sign in to comment.