Skip to content
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

major changes in fabric8 discovery client (CAN ONLY GO IN THE NEXT MAJOR RELEASE) #1244

Draft
wants to merge 431 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
431 commits
Select commit Hold shift + click to select a range
ebf25e5
trigger
wind57 Aug 8, 2023
22f3f51
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Aug 16, 2023
bb44f4b
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Aug 21, 2023
9714f2c
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Aug 22, 2023
13e82d9
merge main
wind57 Aug 22, 2023
2c0e235
checkstyle
wind57 Aug 22, 2023
58fbdba
fix compilation
wind57 Aug 22, 2023
3386a3e
fix compilation
wind57 Aug 23, 2023
280b1b5
fix compilation
wind57 Aug 23, 2023
0f9cb3d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 2, 2023
3db81a9
merge main
wind57 Sep 2, 2023
6e60174
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 11, 2023
78c5575
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 12, 2023
104067f
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 12, 2023
5eb5c51
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 16, 2023
4f3ea2a
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 16, 2023
48f7cb0
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 18, 2023
6b018e9
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 18, 2023
8a18085
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 20, 2023
d0e35c2
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 20, 2023
a6b2ca8
fix issue
wind57 Sep 20, 2023
3e53dd4
Merge branch '3.0.x' into clean-cluster-role-binding
wind57 Sep 20, 2023
3ed982a
fix issue
wind57 Sep 20, 2023
f4fe50c
Merge branch 'clean-cluster-role-binding' into major-changes-in-fabri…
wind57 Sep 20, 2023
e4cab39
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 21, 2023
8747b32
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 21, 2023
ba4cab0
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 21, 2023
ecd5c9f
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 21, 2023
a8aecc6
fix
wind57 Sep 21, 2023
dc17a0f
test
wind57 Sep 21, 2023
ea4e837
test
wind57 Sep 22, 2023
b738896
test
wind57 Sep 22, 2023
493f229
test
wind57 Sep 22, 2023
dc5af9b
test
wind57 Sep 22, 2023
9bae1fe
test
wind57 Sep 22, 2023
1f74eac
test
wind57 Sep 22, 2023
3894332
test
wind57 Sep 22, 2023
0a8ba65
trigger
wind57 Sep 22, 2023
53a6f4b
test
wind57 Sep 22, 2023
10cc669
test
wind57 Sep 23, 2023
a509f4f
clean-up
wind57 Sep 23, 2023
bbc6e30
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 23, 2023
0b365fd
test
wind57 Sep 24, 2023
9876bef
test
wind57 Sep 24, 2023
2c9c3ea
test
wind57 Sep 24, 2023
d587b4b
test
wind57 Sep 24, 2023
bc612fb
test
wind57 Sep 24, 2023
ab5796b
test
wind57 Sep 26, 2023
80c100c
placeholder commit
wind57 Sep 26, 2023
4763bdc
test
wind57 Sep 26, 2023
970c875
test
wind57 Sep 26, 2023
edcc996
test
wind57 Sep 26, 2023
82d5f2f
test
wind57 Sep 26, 2023
2b56337
test
wind57 Sep 26, 2023
dcbc5de
test
wind57 Sep 26, 2023
d48d61f
test
wind57 Sep 26, 2023
db8d950
test
wind57 Sep 26, 2023
ae31faf
test
wind57 Sep 26, 2023
dfca45b
test
wind57 Sep 26, 2023
34648eb
placeholder commit
wind57 Sep 26, 2023
1eacf6c
test
wind57 Sep 26, 2023
c77b86a
test
wind57 Sep 26, 2023
0e9f1ad
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 26, 2023
5c244f5
review comments
wind57 Sep 26, 2023
6810e8f
test
wind57 Sep 26, 2023
dc62bbc
test
wind57 Sep 26, 2023
5d5ea38
test
wind57 Sep 26, 2023
f31d741
test
wind57 Sep 26, 2023
8de4b9c
test
wind57 Sep 26, 2023
7715ca5
test
wind57 Sep 26, 2023
40c4514
test
wind57 Sep 26, 2023
67d1cc4
test
wind57 Sep 26, 2023
622cc94
test
wind57 Sep 26, 2023
78734c1
test
wind57 Sep 26, 2023
c2ad21e
test
wind57 Sep 26, 2023
1d853d2
test
wind57 Sep 26, 2023
5e985c5
test
wind57 Sep 26, 2023
c982060
test
wind57 Sep 26, 2023
8a42c15
fix build
wind57 Sep 26, 2023
6a07b13
placeholder commit
wind57 Sep 26, 2023
e9077e2
review comments
wind57 Sep 27, 2023
238abfe
merge
wind57 Sep 27, 2023
5a7695a
merge
wind57 Sep 27, 2023
16d8c32
Merge branch 'improve-build-times' into major-changes-in-fabric8-disc…
wind57 Sep 27, 2023
15785d0
test
wind57 Sep 27, 2023
94b47a8
placeholder commit
wind57 Sep 27, 2023
4d06337
test
wind57 Sep 27, 2023
ea4eaf6
test
wind57 Sep 27, 2023
8a5243c
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 28, 2023
902ad3b
merge main
wind57 Sep 28, 2023
e13bcd3
fix
wind57 Sep 29, 2023
cbf83c4
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 29, 2023
4affbeb
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 29, 2023
9481f83
Merge branch 'simplify-clean-up-ater-bug-fix' into major-changes-in-f…
wind57 Sep 29, 2023
0515920
fix
wind57 Sep 29, 2023
565679c
test
wind57 Sep 29, 2023
3a86923
test
wind57 Sep 29, 2023
0c87e45
merge
wind57 Sep 29, 2023
3dd0260
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 30, 2023
85e5e49
Merge branch '3.0.x' into another-solution-for-our-hangs
wind57 Sep 30, 2023
178f490
Merge branch '3.0.x' into major-changes-in-fabric8-discovery-implemen…
wind57 Sep 30, 2023
cd984a5
Merge branch 'another-solution-for-our-hangs' into major-changes-in-f…
wind57 Sep 30, 2023
0327416
review comments
wind57 Oct 2, 2023
ee84a5f
Merge branch 'another-solution-for-our-hangs' into major-changes-in-f…
wind57 Oct 2, 2023
1408d44
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 2, 2023
0a97238
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 2, 2023
2925ee1
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 2, 2023
a439758
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 2, 2023
af3a12b
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 5, 2023
f5a27dc
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 7, 2023
494454a
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 7, 2023
47543f8
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 7, 2023
add0f67
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 13, 2023
ddba24c
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 13, 2023
a8c478f
dirty
wind57 Oct 13, 2023
df2d07e
fix
wind57 Oct 13, 2023
014e12d
fix
wind57 Oct 13, 2023
877f182
checkstyle
wind57 Oct 13, 2023
ae5a4e2
Merge branch 'increase-timeout' into major-changes-in-fabric8-discove…
wind57 Oct 14, 2023
bdf6114
trigger
wind57 Oct 14, 2023
b6a4b45
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 20, 2023
b99892c
merge main
wind57 Oct 20, 2023
00a559d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 27, 2023
8ff9959
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 27, 2023
882f9c1
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 31, 2023
6c9071e
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 3, 2023
3182719
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Nov 3, 2023
09c10bb
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 8, 2023
3615396
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 14, 2023
73ea9bd
merge main
wind57 Nov 14, 2023
cf68b2a
fix issues
wind57 Nov 14, 2023
288a096
fix test
wind57 Nov 15, 2023
116c199
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 16, 2023
38f077a
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Nov 16, 2023
f1447cd
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 18, 2023
45a26a3
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Nov 18, 2023
14b165b
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 21, 2023
5a39481
merge main
wind57 Nov 21, 2023
3ce8fac
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 30, 2023
41eaa8d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Dec 4, 2023
4f89298
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Dec 7, 2023
ee1031d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Dec 19, 2023
ba1390d
merge main
wind57 Dec 19, 2023
f6707d5
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Dec 22, 2023
cb5d428
merge main
wind57 Dec 22, 2023
9930c7d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Dec 27, 2023
f7edf25
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Dec 27, 2023
0043006
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jan 16, 2024
5fa3333
merge main
wind57 Jan 16, 2024
43679c8
merge main
wind57 Jan 16, 2024
4e292ec
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Feb 2, 2024
57dd785
merge main
wind57 Feb 4, 2024
6dcd5d6
fix compilation
wind57 Feb 4, 2024
ada0d26
fix test
wind57 Feb 4, 2024
3129276
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Feb 16, 2024
736532c
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Feb 16, 2024
1c90fc2
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Feb 16, 2024
fa0888a
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Feb 22, 2024
ab680d1
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Feb 25, 2024
73f40dd
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Feb 26, 2024
4023ca3
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 9, 2024
f8dbaaa
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Mar 9, 2024
78834cd
placeholder commit
wind57 Mar 9, 2024
7ed7f5d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 9, 2024
3be81b7
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 10, 2024
dd710ec
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 10, 2024
4fdd06a
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 12, 2024
bf61054
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 13, 2024
8f71b6a
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Mar 13, 2024
f059697
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 13, 2024
013cc6a
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 14, 2024
13ff3b3
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 18, 2024
606f7c8
merge main
wind57 Mar 18, 2024
88021bb
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 18, 2024
dcf4e62
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 19, 2024
a600c69
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 19, 2024
3f1a180
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 21, 2024
3cd81f8
merge main
wind57 Mar 26, 2024
85ca441
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 27, 2024
65acfe6
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 27, 2024
5526b50
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 28, 2024
0c131b5
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 28, 2024
af8a8ee
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 29, 2024
9c74e14
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Mar 30, 2024
40f0dca
merge main
wind57 Mar 31, 2024
2f3c5b7
fix test
wind57 Mar 31, 2024
a410606
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 2, 2024
8c38ece
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 2, 2024
dcb8fb4
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 3, 2024
73e9765
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 3, 2024
1a3a4d9
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 3, 2024
926d2b0
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 3, 2024
02737d4
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 3, 2024
25e7a67
merge main
wind57 Apr 3, 2024
24defb8
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 4, 2024
14c9780
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 5, 2024
719ccbc
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 6, 2024
5784dfa
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 8, 2024
f7bd036
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Apr 8, 2024
ecf13b8
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 11, 2024
658a5f6
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 11, 2024
4eb0e3c
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 12, 2024
256332d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 16, 2024
d64dd18
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 17, 2024
2861ea5
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 17, 2024
e981723
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Apr 17, 2024
7b7b8b6
cleanup
wind57 Apr 18, 2024
9fffd36
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 18, 2024
a84bef6
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 24, 2024
a7000eb
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 29, 2024
219289f
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 29, 2024
ab12e1d
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 30, 2024
b32e8a0
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Apr 30, 2024
2ddaca9
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 May 1, 2024
8ee9390
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 May 1, 2024
6a99edc
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 May 1, 2024
bdf347b
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 May 17, 2024
e3e6334
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 May 29, 2024
152f6bf
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 May 31, 2024
a279c0c
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jun 1, 2024
f6e608e
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jun 11, 2024
6a51e1a
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jun 13, 2024
a02efb2
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jun 13, 2024
5864ab1
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jul 11, 2024
d872393
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jul 24, 2024
e690faf
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Jul 25, 2024
b178548
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Aug 5, 2024
56d4b40
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Aug 19, 2024
554112b
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 3, 2024
ae40722
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 4, 2024
af673ba
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 5, 2024
29e85a1
merge main
wind57 Sep 6, 2024
a3197b4
formatting
wind57 Sep 6, 2024
e3ca2f8
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 6, 2024
023e24b
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 6, 2024
f96a8fa
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 10, 2024
2847f75
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 13, 2024
2a72479
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Sep 13, 2024
7468875
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Sep 26, 2024
c416eea
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 1, 2024
e20761c
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 2, 2024
7c5a312
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 19, 2024
ed2080b
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Oct 24, 2024
e152e52
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Oct 24, 2024
9daba67
fix test
wind57 Oct 25, 2024
9719028
fix test
wind57 Oct 25, 2024
0355d7a
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 9, 2024
1b43727
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Nov 9, 2024
bf0cc39
Merge branch 'main' of https://github.com/spring-cloud/spring-cloud-k…
wind57 Nov 25, 2024
f350481
Merge branch 'main' into major-changes-in-fabric8-discovery-implement…
wind57 Nov 25, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description: build integration tests project without tests
runs:
using: "composite"
steps:

- name: build integration tests project without tests
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void testEmptyServiceLabelsFromProperties(CapturedOutput output) {
void testEmptyServiceLabelsFromService(CapturedOutput output) {
Map<String, String> propertiesLabels = Map.of("key", "value");
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60L,
true, "", Set.of(), propertiesLabels, "", null, 0, false);
true, "", Set.of(), propertiesLabels, "", null, 0, false, false);
V1Service service = new V1ServiceBuilder().withMetadata(new V1ObjectMeta().name("my-service")).build();

boolean result = matchesServiceLabels(service, properties);
Expand All @@ -89,7 +89,7 @@ void testOne(CapturedOutput output) {
Map<String, String> propertiesLabels = Map.of("a", "b");
Map<String, String> serviceLabels = Map.of("a", "b");
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60L,
true, "", Set.of(), propertiesLabels, "", null, 0, false);
true, "", Set.of(), propertiesLabels, "", null, 0, false, false);
V1Service service = new V1ServiceBuilder()
.withMetadata(new V1ObjectMeta().labels(serviceLabels).name("my-service"))
.build();
Expand All @@ -113,7 +113,7 @@ void testTwo(CapturedOutput output) {
Map<String, String> propertiesLabels = ordered(Map.of("a", "b", "c", "d"));
Map<String, String> serviceLabels = Map.of("a", "b");
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60L,
true, "", Set.of(), propertiesLabels, "", null, 0, false);
true, "", Set.of(), propertiesLabels, "", null, 0, false, false);
V1Service service = new V1ServiceBuilder()
.withMetadata(new V1ObjectMeta().labels(serviceLabels).name("my-service"))
.build();
Expand All @@ -137,7 +137,7 @@ void testThree(CapturedOutput output) {
Map<String, String> propertiesLabels = ordered(Map.of("a", "b", "c", "d"));
Map<String, String> serviceLabels = ordered(Map.of("a", "b", "c", "d"));
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60L,
true, "", Set.of(), propertiesLabels, "", null, 0, false);
true, "", Set.of(), propertiesLabels, "", null, 0, false, false);
V1Service service = new V1ServiceBuilder()
.withMetadata(new V1ObjectMeta().labels(serviceLabels).name("my-service"))
.build();
Expand All @@ -161,7 +161,7 @@ void testFour(CapturedOutput output) {
Map<String, String> propertiesLabels = Map.of("a", "b");
Map<String, String> serviceLabels = ordered(Map.of("a", "b", "c", "d"));
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60L,
true, "", Set.of(), propertiesLabels, "", null, 0, false);
true, "", Set.of(), propertiesLabels, "", null, 0, false, false);
V1Service service = new V1ServiceBuilder()
.withMetadata(new V1ObjectMeta().labels(serviceLabels).name("my-service"))
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ private static V1Endpoints endpointsMultiplePortsWithoutSupportedPortNames() {

private static KubernetesDiscoveryProperties properties(boolean allNamespaces, Map<String, String> labels) {
return new KubernetesDiscoveryProperties(false, allNamespaces, Set.of(), true, 60, false, null, Set.of(),
labels, null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, true);
labels, null, KubernetesDiscoveryProperties.Metadata.DEFAULT, 0, true, false);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void afterEach() {
void testEndpointSlicesEnabledButNotSupported() {
boolean useEndpointSlices = true;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60,
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices);
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices, false);

V1APIResourceList list = new V1APIResourceListBuilder().addToResources(new V1APIResource()).build();
stubFor(get("/apis/discovery.k8s.io/v1")
Expand All @@ -110,7 +110,7 @@ void testEndpointSlicesEnabledButNotSupported() {
void testEndpointSlicesEnabledButNotSupportedViaApiVersions() {
boolean useEndpointSlices = true;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60,
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices);
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices, false);

V1APIResourceList list = new V1APIResourceListBuilder()
.addToResources(new V1APIResourceBuilder().withName("not-the-one").build())
Expand All @@ -131,7 +131,7 @@ void testEndpointSlicesEnabledButNotSupportedViaApiVersions() {
void testEndpointsSupport() {
boolean useEndpointSlices = false;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60,
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices);
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices, false);
KubernetesCatalogWatch watch = new KubernetesCatalogWatch(null, apiClient, properties, NAMESPACE_PROVIDER);

Assertions.assertEquals(KubernetesEndpointsCatalogWatch.class, watch.stateGenerator().getClass());
Expand All @@ -145,7 +145,7 @@ void testEndpointsSupport() {
void testEndpointSlicesSupport() {
boolean useEndpointSlices = true;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60,
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices);
false, "", Set.of(), Map.of(), "", null, 0, useEndpointSlices, false);

V1APIResourceList list = new V1APIResourceListBuilder()
.addToResources(new V1APIResourceBuilder().withName("endpointslices").withKind(ENDPOINT_SLICE).build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ KubernetesCatalogWatch createWatcherInAllNamespacesWithLabels(Map<String, String

boolean allNamespaces = true;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, allNamespaces, namespaces,
true, 60, false, "", Set.of(), labels, "", null, 0, endpointSlices);
true, 60, false, "", Set.of(), labels, "", null, 0, endpointSlices, false);
KubernetesCatalogWatch watch = new KubernetesCatalogWatch(coreV1Api, apiClient, properties, NAMESPACE_PROVIDER);

if (endpointSlices) {
Expand All @@ -128,7 +128,7 @@ KubernetesCatalogWatch createWatcherInSpecificNamespacesWithLabels(Set<String> n

boolean allNamespaces = false;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, allNamespaces, namespaces,
true, 60, false, "", Set.of(), labels, "", null, 0, false);
true, 60, false, "", Set.of(), labels, "", null, 0, false, false);
KubernetesCatalogWatch watch = new KubernetesCatalogWatch(coreV1Api, apiClient, properties, NAMESPACE_PROVIDER);

if (endpointSlices) {
Expand All @@ -149,7 +149,7 @@ KubernetesCatalogWatch createWatcherInSpecificNamespaceWithLabels(String namespa

boolean allNamespaces = false;
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, allNamespaces, Set.of(),
true, 60, false, "", Set.of(), labels, "", null, 0, endpointSlices);
true, 60, false, "", Set.of(), labels, "", null, 0, endpointSlices, false);
KubernetesCatalogWatch watch = new KubernetesCatalogWatch(coreV1Api, apiClient, properties, NAMESPACE_PROVIDER);

if (endpointSlices) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* Copyright 2019-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.commons.discovery;

import java.net.URI;
import java.util.Map;

import org.springframework.cloud.client.ServiceInstance;

/**
* Type of {@link org.springframework.cloud.client.ServiceInstance} when
* "spec.type=ExternalName".
*
* @author wind57
*/
public record KubernetesExternalNameServiceInstance(String serviceId, String host, String instanceId,
Map<String, String> metadata) implements ServiceInstance {

@Override
public String getServiceId() {
return serviceId;
}

@Override
public String getHost() {
return host;
}

@Override
public int getPort() {
return -1;
}

@Override
public boolean isSecure() {
return false;
}

@Override
public URI getUri() {
return URI.create(host);
}

@Override
public Map<String, String> getMetadata() {
return metadata;
}

public String getInstanceId() {
return instanceId;
}

public String type() {
return "ExternalName";
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2013-2022 the original author or authors.
* Copyright 2013-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright 2013-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.commons.discovery;

import java.util.Map;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

/**
* @author wind57
*/
class KubernetesExternalNameServiceInstanceTests {

@Test
void testFields() {
KubernetesExternalNameServiceInstance instance = new KubernetesExternalNameServiceInstance("123", "spring.io",
"456", Map.of("a", "b"));
Assertions.assertEquals(instance.getInstanceId(), "456");
Assertions.assertEquals(instance.getServiceId(), "123");
Assertions.assertEquals(instance.getHost(), "spring.io");
Assertions.assertEquals(instance.getPort(), -1);
Assertions.assertEquals(instance.getMetadata(), Map.of("a", "b"));
Assertions.assertNull(instance.getScheme());
Assertions.assertEquals(instance.getUri().toASCIIString(), "spring.io");
Assertions.assertEquals(instance.type(), "ExternalName");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ServicePortSecureResolverTest {
void testPortNumbersOnly() {
KubernetesDiscoveryProperties properties = new KubernetesDiscoveryProperties(true, true, Set.of(), true, 60,
false, null, Set.of(443, 8443, 12345), Map.of(), null, KubernetesDiscoveryProperties.Metadata.DEFAULT,
0, true);
0, true, false);

ServicePortSecureResolver secureResolver = new ServicePortSecureResolver(properties);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public void initialize(BootstrapRegistry registry) {
if (!getDiscoveryEnabled(context)) {
return (id) -> Collections.emptyList();
}
if (context.isRegistered(KubernetesDiscoveryClient.class)) {
KubernetesDiscoveryClient client = context.get(KubernetesDiscoveryClient.class);
if (context.isRegistered(Fabric8KubernetesDiscoveryClient.class)) {
Fabric8KubernetesDiscoveryClient client = context.get(Fabric8KubernetesDiscoveryClient.class);
return client::getInstances;
}
else {
Expand All @@ -72,12 +72,11 @@ public void initialize(BootstrapRegistry registry) {
.kubernetesClientConfig(context.get(KubernetesClientProperties.class));
KubernetesClient kubernetesClient = fabric8AutoConfiguration.kubernetesClient(config);
KubernetesDiscoveryProperties discoveryProperties = context.get(KubernetesDiscoveryProperties.class);
KubernetesDiscoveryClient discoveryClient = new KubernetesDiscoveryClient(kubernetesClient,
discoveryProperties,
KubernetesClientServicesFunctionProvider.servicesFunction(discoveryProperties,
new KubernetesNamespaceProvider(propertyResolver
.get(KubernetesNamespaceProvider.NAMESPACE_PROPERTY, String.class, null))),
null, new ServicePortSecureResolver(discoveryProperties));
Fabric8KubernetesDiscoveryClient discoveryClient = new Fabric8KubernetesDiscoveryClient(
kubernetesClient, discoveryProperties, new ServicePortSecureResolver(discoveryProperties),
new KubernetesNamespaceProvider(propertyResolver
.get(KubernetesNamespaceProvider.NAMESPACE_PROPERTY, String.class, null)),
new Fabric8DiscoveryClientPredicateAutoConfiguration().predicate(discoveryProperties));
return discoveryClient::getInstances;
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* Copyright 2012-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.springframework.cloud.kubernetes.fabric8.discovery;

import java.util.Optional;
import java.util.function.Predicate;

import io.fabric8.kubernetes.api.model.Service;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnCloudPlatform;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.cloud.CloudPlatform;
import org.springframework.cloud.client.ConditionalOnDiscoveryEnabled;
import org.springframework.cloud.kubernetes.commons.discovery.ConditionalOnBlockingOrReactiveDiscoveryEnabled;
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryProperties;
import org.springframework.cloud.kubernetes.commons.discovery.KubernetesDiscoveryPropertiesAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.expression.Expression;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.SimpleEvaluationContext;

/**
* @author wind57
*/
@Configuration(proxyBeanMethods = false)
@ConditionalOnDiscoveryEnabled
@ConditionalOnBlockingOrReactiveDiscoveryEnabled
@ConditionalOnCloudPlatform(CloudPlatform.KUBERNETES)
@AutoConfigureAfter(KubernetesDiscoveryPropertiesAutoConfiguration.class)
class Fabric8DiscoveryClientPredicateAutoConfiguration {

@Bean
@ConditionalOnMissingBean
Predicate<Service> predicate(KubernetesDiscoveryProperties properties) {
SpelExpressionParser parser = new SpelExpressionParser();
SimpleEvaluationContext evaluationContext = SimpleEvaluationContext.forReadOnlyDataBinding()
.withInstanceMethods()
.build();

String spelExpression = properties.filter();
Predicate<Service> predicate;
if (spelExpression == null || spelExpression.isEmpty()) {
predicate = service -> true;
}
else {
Expression filterExpr = parser.parseExpression(spelExpression);
predicate = service -> {
Boolean include = filterExpr.getValue(evaluationContext, service, Boolean.class);
return Optional.ofNullable(include).orElse(false);
};
}
return predicate;
}

}
Loading
Loading