Skip to content

Fabric8 it part 8 #1475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 48 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a468581
fix
wind57 Oct 4, 2023
fd54734
checkstyle
wind57 Oct 5, 2023
cfacf31
clean-up
wind57 Oct 5, 2023
ec05ccc
clean-up
wind57 Oct 5, 2023
8f2f2d9
started work
wind57 Oct 5, 2023
8ef893e
clean-up
wind57 Oct 5, 2023
3585182
merged
wind57 Oct 5, 2023
446eee2
started-work
wind57 Oct 5, 2023
d350fdf
merge 3.0.x
wind57 Oct 5, 2023
85535c8
merge
wind57 Oct 5, 2023
29d9bcb
Merge branch 'fabric8-configmap-event-reload-patch-refactor-part-2' i…
wind57 Oct 5, 2023
8c8370e
continue work
wind57 Oct 5, 2023
74c03f5
dirty
wind57 Oct 5, 2023
752d92e
dirty
wind57 Oct 6, 2023
ed96191
fixed
wind57 Oct 6, 2023
aef0127
merge 3.0.x
wind57 Oct 6, 2023
37a6ee9
fix merge
wind57 Oct 6, 2023
bfc418d
rename package
wind57 Oct 6, 2023
8680b1e
increase
wind57 Oct 6, 2023
a95ad35
fix
wind57 Oct 6, 2023
d9f9be0
fix
wind57 Oct 6, 2023
1d68777
trigger
wind57 Oct 6, 2023
81c0d41
simplify + enable all tests
wind57 Oct 6, 2023
d1f42c5
remove overlaping test
wind57 Oct 6, 2023
a0cd375
dirty
wind57 Oct 6, 2023
4964e36
dirty
wind57 Oct 6, 2023
e3e0d04
fix
wind57 Oct 6, 2023
385243a
merge 3.0.x
wind57 Oct 6, 2023
00738ea
fix
wind57 Oct 7, 2023
30bb51e
Merge branch '3.0.x' into fabric8-it-part-5
wind57 Oct 7, 2023
473f69f
format
wind57 Oct 7, 2023
1e32c8f
merge 3.0.x
wind57 Oct 7, 2023
25d0258
merge latest
wind57 Oct 7, 2023
8c4a6f0
fix
wind57 Oct 7, 2023
4a039b0
merge 3.0.x
wind57 Oct 7, 2023
e066558
fix test
wind57 Oct 7, 2023
65166ad
merge
wind57 Oct 7, 2023
a721c8d
Merge branch 'fabric8-it-part-6' into fabric8-it-part-7
wind57 Oct 7, 2023
f9b3d9d
fix
wind57 Oct 8, 2023
2fcad92
minor changes
wind57 Oct 8, 2023
c028146
Merge branch '3.0.x' into fabric8-it-part-7
wind57 Oct 9, 2023
6d73e14
Merge branch '3.0.x' into fabric8-it-part-8
wind57 Oct 9, 2023
cb085e9
Merge branch 'fabric8-it-part-7' into fabric8-it-part-8
wind57 Oct 9, 2023
db6766a
fix
wind57 Oct 9, 2023
c2edd51
chekstyle
wind57 Oct 9, 2023
e448a25
merge 3.0.x
wind57 Oct 9, 2023
3b7f1fb
test fix
wind57 Oct 9, 2023
99e728c
fix
wind57 Oct 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions spring-cloud-kubernetes-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,20 @@
</dependencyManagement>

<modules>
<module>spring-cloud-kubernetes-fabric8-istio-it</module>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing has changed here, I'm just grouping modules a bit

<module>spring-cloud-kubernetes-fabric8-client-catalog-watcher</module>
<module>spring-cloud-kubernetes-k8s-client-catalog-watcher</module>

<module>spring-cloud-kubernetes-fabric8-client-discovery</module>
<module>spring-cloud-kubernetes-fabric8-client-reload</module>
<module>spring-cloud-kubernetes-fabric8-client-discovery-with-bootstrap</module>
<module>spring-cloud-kubernetes-fabric8-istio-it</module>

<module>spring-cloud-kubernetes-discoveryclient-it</module>
<module>spring-cloud-kubernetes-client-loadbalancer-it</module>
<module>spring-cloud-kubernetes-configuration-watcher-it</module>
<module>spring-cloud-kubernetes-client-event-and-polling-reload</module>
<module>spring-cloud-kubernetes-client-configmap-event-reload-multiple-apps</module>
<module>spring-cloud-kubernetes-client-secrets-event-reload-multiple-apps</module>
<module>spring-cloud-kubernetes-fabric8-client-catalog-watcher</module>
<module>spring-cloud-kubernetes-client-catalog-watcher</module>
<module>spring-cloud-kubernetes-client-discovery-it</module>
<module>spring-cloud-kubernetes-fabric8-client-discovery-with-bootstrap</module>
</modules>
</project>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-cloud-kubernetes-client-catalog-watcher</artifactId>
<artifactId>spring-cloud-kubernetes-k8s-client-catalog-watcher</artifactId>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import java.time.Duration;
import java.util.List;
Expand Down Expand Up @@ -48,18 +48,18 @@
import org.springframework.web.reactive.function.client.WebClient;

import static org.awaitility.Awaitility.await;
import static org.springframework.cloud.kubernetes.client.catalog.KubernetesClientCatalogWatchUtils.patchForEndpointSlices;
import static org.springframework.cloud.kubernetes.client.catalog.KubernetesClientCatalogWatchUtils.patchForEndpointSlicesNamespaces;
import static org.springframework.cloud.kubernetes.client.catalog.KubernetesClientCatalogWatchUtils.patchForEndpointsNamespaces;
import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.waitForLogStatement;
import static org.springframework.cloud.kubernetes.k8s.client.catalog.watcher.KubernetesClientCatalogWatchUtils.patchForEndpointSlices;
import static org.springframework.cloud.kubernetes.k8s.client.catalog.watcher.KubernetesClientCatalogWatchUtils.patchForEndpointSlicesNamespaces;
import static org.springframework.cloud.kubernetes.k8s.client.catalog.watcher.KubernetesClientCatalogWatchUtils.patchForEndpointsNamespaces;

/**
* @author wind57
*/
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
class KubernetesClientCatalogWatchIT {

private static final String APP_NAME = "spring-cloud-kubernetes-client-catalog-watcher";
private static final String APP_NAME = "spring-cloud-kubernetes-k8s-client-catalog-watcher";

private static final String NAMESPACE = "default";

Expand Down Expand Up @@ -129,12 +129,12 @@ void testCatalogWatchWithEndpointsNamespaces() {
util.busybox(NAMESPACE_A, Phase.CREATE);
util.busybox(NAMESPACE_B, Phase.CREATE);
patchForEndpointsNamespaces(APP_NAME, NAMESPACE, DOCKER_IMAGE);
KubernetesClientCatalogWatchNamespacesDelegate.testCatalogWatchWithEndpointsNamespaces();
KubernetesClientCatalogWatchNamespacesDelegate.testCatalogWatchWithEndpointsNamespaces(APP_NAME);

util.busybox(NAMESPACE_A, Phase.CREATE);
util.busybox(NAMESPACE_B, Phase.CREATE);
patchForEndpointSlicesNamespaces(APP_NAME, NAMESPACE, DOCKER_IMAGE);
KubernetesClientCatalogWatchNamespacesDelegate.testCatalogWatchWithEndpointSlicesNamespaces();
KubernetesClientCatalogWatchNamespacesDelegate.testCatalogWatchWithEndpointSlicesNamespaces(APP_NAME);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import java.time.Duration;
import java.util.Arrays;
Expand Down Expand Up @@ -47,8 +47,6 @@ private KubernetesClientCatalogWatchNamespacesDelegate() {

}

private static final String APP_NAME = "spring-cloud-kubernetes-client-catalog-watcher";

private static final String NAMESPACE_A = "namespacea";

private static final String NAMESPACE_B = "namespaceb";
Expand All @@ -67,13 +65,13 @@ private KubernetesClientCatalogWatchNamespacesDelegate() {
* - assert that we receive only spring-cloud-kubernetes-client-catalog-watcher pod
* </pre>
*/
static void testCatalogWatchWithEndpointsNamespaces() {
waitForLogStatement("stateGenerator is of type: KubernetesEndpointsCatalogWatch", K3S, APP_NAME);
static void testCatalogWatchWithEndpointsNamespaces(String deploymentName) {
waitForLogStatement("stateGenerator is of type: KubernetesEndpointsCatalogWatch", K3S, deploymentName);
testForNamespacesFilter();
}

static void testCatalogWatchWithEndpointSlicesNamespaces() {
waitForLogStatement("stateGenerator is of type: KubernetesEndpointSlicesCatalogWatch", K3S, APP_NAME);
static void testCatalogWatchWithEndpointSlicesNamespaces(String deploymentName) {
waitForLogStatement("stateGenerator is of type: KubernetesEndpointSlicesCatalogWatch", K3S, deploymentName);
testForNamespacesFilter();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.client.catalog;
package org.springframework.cloud.kubernetes.k8s.client.catalog.watcher;

import java.util.Map;

Expand All @@ -26,7 +26,7 @@
final class KubernetesClientCatalogWatchUtils {

private static final Map<String, String> POD_LABELS = Map.of("app",
"spring-cloud-kubernetes-client-catalog-watcher");
"spring-cloud-kubernetes-k8s-client-catalog-watcher");

private KubernetesClientCatalogWatchUtils() {

Expand All @@ -38,7 +38,7 @@ private KubernetesClientCatalogWatchUtils() {
"template": {
"spec": {
"containers": [{
"name": "spring-cloud-kubernetes-client-catalog-watcher",
"name": "spring-cloud-kubernetes-k8s-client-catalog-watcher",
"image": "image_name_here",
"env": [
{
Expand All @@ -63,7 +63,7 @@ private KubernetesClientCatalogWatchUtils() {
"template": {
"spec": {
"containers": [{
"name": "spring-cloud-kubernetes-client-catalog-watcher",
"name": "spring-cloud-kubernetes-k8s-client-catalog-watcher",
"image": "image_name_here",
"env": [
{
Expand Down Expand Up @@ -96,7 +96,7 @@ private KubernetesClientCatalogWatchUtils() {
"template": {
"spec": {
"containers": [{
"name": "spring-cloud-kubernetes-client-catalog-watcher",
"name": "spring-cloud-kubernetes-k8s-client-catalog-watcher",
"image": "image_name_here",
"env": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-cloud-kubernetes-client-catalog-watcher
name: spring-cloud-kubernetes-k8s-client-catalog-watcher
spec:
selector:
matchLabels:
app: spring-cloud-kubernetes-client-catalog-watcher
app: spring-cloud-kubernetes-k8s-client-catalog-watcher
template:
metadata:
labels:
app: spring-cloud-kubernetes-client-catalog-watcher
app: spring-cloud-kubernetes-k8s-client-catalog-watcher
spec:
serviceAccountName: spring-cloud-kubernetes-serviceaccount
containers:
- name: spring-cloud-kubernetes-client-catalog-watcher
image: docker.io/springcloud/spring-cloud-kubernetes-client-catalog-watcher
- name: spring-cloud-kubernetes-k8s-client-catalog-watcher
image: docker.io/springcloud/spring-cloud-kubernetes-k8s-client-catalog-watcher
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spring-cloud-kubernetes-client-catalog-watcher-ingress
name: spring-cloud-kubernetes-k8s-client-catalog-watcher-ingress
namespace: default
spec:
rules:
Expand All @@ -11,6 +11,6 @@ spec:
pathType: Prefix
backend:
service:
name: spring-cloud-kubernetes-client-catalog-watcher-service
name: spring-cloud-kubernetes-k8s-client-catalog-watcher-service
port:
number: 8080
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: spring-cloud-kubernetes-k8s-client-catalog-watcher-service
name: spring-cloud-kubernetes-k8s-client-catalog-watcher-service
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: spring-cloud-kubernetes-k8s-client-catalog-watcher
type: ClusterIP