Skip to content

Commit ad6fb23

Browse files
committed
2 parents e298352 + 5ee6d5d commit ad6fb23

File tree

14 files changed

+12
-25
lines changed

14 files changed

+12
-25
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This reference guide covers how to use Spring Cloud Kubernetes.
1313
[[why-do-you-need-spring-cloud-kubernetes]]
1414
== Why do you need Spring Cloud Kubernetes?
1515

16-
Spring Cloud Kubernetes provides implementations of well known Spring Cloud interfaces allowing developers to build and run Spring Cloud applications on Kubernetes. While this project may be useful to you when building a cloud native application, it is also not a requirement in order to deploy a Spring Boot app on Kubernetes. If you are just getting started in your journey to running your Spring Boot app on Kubernetes you can accomplish a lot with nothing more than a basic Spring Boot app and Kubernetes itself. To learn more, you can get started by reading the https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#cloud-deployment-kubernetes[Spring Boot reference documentation for deploying to Kubernetes ] and also working through the workshop material https://hackmd.io/@ryanjbaxter/spring-on-k8s-workshop[Spring and Kubernetes].
16+
Spring Cloud Kubernetes provides implementations of well known Spring Cloud interfaces allowing developers to build and run Spring Cloud applications on Kubernetes. While this project may be useful to you when building a cloud native application, it is also not a requirement in order to deploy a Spring Boot app on Kubernetes. If you are just getting started in your journey to running your Spring Boot app on Kubernetes you can accomplish a lot with nothing more than a basic Spring Boot app and Kubernetes itself. To learn more, you can get started by reading the https://docs.spring.io/spring-boot/how-to/deployment/cloud.html#howto.deployment.cloud.kubernetes[Spring Boot reference documentation for deploying to Kubernetes ] and also working through the workshop material https://hackmd.io/@ryanjbaxter/spring-on-k8s-workshop[Spring and Kubernetes].
1717

1818
[[configuration-properties]]
1919
== Configuration properties

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/reload_it/PollingReloadConfigMapTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.junit.jupiter.api.AfterAll;
3838
import org.junit.jupiter.api.BeforeAll;
3939
import org.junit.jupiter.api.Test;
40-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
4140
import org.junit.jupiter.api.extension.ExtendWith;
4241

4342
import org.springframework.boot.test.context.SpringBootTest;
@@ -115,8 +114,6 @@ static void after() {
115114
* - second polling cycle reads sources from k8s and finds a change
116115
* </pre>
117116
*/
118-
@DisabledIfEnvironmentVariable(named = "JENKINS_HOME", matches = "^(?=\\s*\\S).*$",
119-
disabledReason = "failing on jenkins")
120117
@Test
121118
void test(CapturedOutput output) {
122119

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/client/config/reload_it/PollingReloadSecretTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.junit.jupiter.api.AfterAll;
4040
import org.junit.jupiter.api.BeforeAll;
4141
import org.junit.jupiter.api.Test;
42-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
4342
import org.junit.jupiter.api.extension.ExtendWith;
4443

4544
import org.springframework.boot.test.context.SpringBootTest;
@@ -117,8 +116,6 @@ static void after() {
117116
* - second polling cycle reads sources from k8s and finds a change
118117
* </pre>
119118
*/
120-
@DisabledIfEnvironmentVariable(named = "JENKINS_HOME", matches = "^(?=\\s*\\S).*$",
121-
disabledReason = "failing on jenkins")
122119
@Test
123120
void test(CapturedOutput output) {
124121

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/reload_it/PollingReloadConfigMapTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.awaitility.Awaitility;
3232
import org.junit.jupiter.api.BeforeAll;
3333
import org.junit.jupiter.api.Test;
34-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
3534
import org.junit.jupiter.api.extension.ExtendWith;
3635

3736
import org.springframework.boot.test.context.SpringBootTest;
@@ -91,8 +90,6 @@ static void beforeAll() {
9190
* - second polling cycle reads sources from k8s and finds a change
9291
* </pre>
9392
*/
94-
@DisabledIfEnvironmentVariable(named = "JENKINS_HOME", matches = "^(?=\\s*\\S).*$",
95-
disabledReason = "failing on jenkins")
9693
@Test
9794
void test(CapturedOutput output) {
9895
// we fail while reading 'configMapOne'

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/reload_it/PollingReloadSecretTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.awaitility.Awaitility;
3434
import org.junit.jupiter.api.BeforeAll;
3535
import org.junit.jupiter.api.Test;
36-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
3736
import org.junit.jupiter.api.extension.ExtendWith;
3837

3938
import org.springframework.boot.test.context.SpringBootTest;
@@ -94,8 +93,6 @@ static void beforeAll() {
9493
* - second polling cycle reads sources from k8s and finds a change
9594
* </pre>
9695
*/
97-
@DisabledIfEnvironmentVariable(named = "JENKINS_HOME", matches = "^(?=\\s*\\S).*$",
98-
disabledReason = "failing on jenkins")
9996
@Test
10097
void test(CapturedOutput output) {
10198
// we fail while reading 'secretOne'

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchBase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ protected static void beforeAll() {
6060
util = new Util(K3S);
6161
}
6262

63-
protected static KubernetesDiscoveryProperties discoveryProperties(boolean useEndpointSlices) {
64-
return new KubernetesDiscoveryProperties(true, false, Set.of(NAMESPACE, NAMESPACE_A), true, 60, false, null,
63+
protected static KubernetesDiscoveryProperties discoveryProperties(boolean useEndpointSlices,
64+
Set<String> discoveryNamespaces) {
65+
return new KubernetesDiscoveryProperties(true, false, discoveryNamespaces, true, 60, false, null,
6566
Set.of(443, 8443), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, useEndpointSlices,
6667
false, null);
6768
}

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointSlicesAndNamespaceFilterIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ KubernetesClient kubernetesClient() {
9696
@Bean
9797
@Primary
9898
KubernetesDiscoveryProperties kubernetesDiscoveryProperties() {
99-
return discoveryProperties(true);
99+
return discoveryProperties(true, Set.of(NAMESPACE, NAMESPACE_A));
100100
}
101101

102102
}

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointSlicesIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ KubernetesClient kubernetesClient() {
8787
@Bean
8888
@Primary
8989
KubernetesDiscoveryProperties kubernetesDiscoveryProperties() {
90-
return discoveryProperties(true);
90+
return discoveryProperties(true, Set.of(NAMESPACE));
9191
}
9292

9393
}

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointsAndNamespaceFilterIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ KubernetesClient kubernetesClient() {
9696
@Bean
9797
@Primary
9898
KubernetesDiscoveryProperties kubernetesDiscoveryProperties() {
99-
return discoveryProperties(false);
99+
return discoveryProperties(false, Set.of(NAMESPACE, NAMESPACE_A));
100100
}
101101

102102
}

spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-fabric8-client-catalog-watcher/src/test/java/org/springframework/cloud/kubernetes/fabric8/catalog/watch/Fabric8CatalogWatchWithEndpointsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ KubernetesClient kubernetesClient() {
8787
@Bean
8888
@Primary
8989
KubernetesDiscoveryProperties kubernetesDiscoveryProperties() {
90-
return discoveryProperties(false);
90+
return discoveryProperties(false, Set.of(NAMESPACE));
9191
}
9292

9393
}

0 commit comments

Comments
 (0)