-
Notifications
You must be signed in to change notification settings - Fork 1k
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
common conditionals for reactive implementation #1514
Merged
ryanjbaxter
merged 77 commits into
spring-cloud:3.0.x
from
wind57:align-fabric8-k8s-discovery-clients-part-11
Nov 21, 2023
Merged
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
fad373c
correct order
wind57 eb7a681
checkstyle
wind57 042e722
trigger
wind57 8efbd58
fix test
wind57 57fc9c3
trigger
wind57 598c46e
drop a record used internally only
wind57 f0c59c0
Merge branch 'align-fabric8-k8s-discovery-clients-part-1' into align-…
wind57 01165e6
dirty
wind57 952a5c9
dirty
wind57 edd5bd4
dirty
wind57 fa77594
Merge branch '3.0.x' into align-fabric8-k8s-discovery-clients-part-3
wind57 a17e1c7
dirty
wind57 45ca67b
dirty
wind57 9ac791d
Merge branch '3.0.x' into align-fabric8-k8s-discovery-clients-part-3
wind57 39dd56c
before tests and IT
wind57 1ffe776
started working on tests
wind57 f6a22e1
started working on tests
wind57 77da363
merge 3.0.x
wind57 dba5c67
added one more tests
wind57 8463067
before integration tests
wind57 f986628
fix checkstyle
wind57 847ae34
started work on integration tests
wind57 485e39e
integration tests
wind57 f0c3bcd
fix test
wind57 b2a56ac
fix test
wind57 c2039fd
checkstyle
wind57 80a0380
fix test
wind57 a7597c2
minor clean-up
wind57 1cd547f
fix test
wind57 1d5b5f1
Merge branch 'align-fabric8-k8s-discovery-clients-part-3' into align-…
wind57 29031f5
minor clean-up
wind57 e22960d
minor clean-up
wind57 897e006
dirty
wind57 6ba109a
dirty
wind57 3b9bdb7
minor clean-up
wind57 4cc7cdd
Merge branch '3.0.x' into align-fabric8-k8s-discovery-clients-part-4
wind57 caec2bb
Merge branch 'align-fabric8-k8s-discovery-clients-part-4' into align-…
wind57 1ad2259
Merge branch 'align-fabric8-k8s-discovery-clients-part-5' into align-…
wind57 e2cec3c
checkstyle
wind57 1e38aee
Merge branch 'align-fabric8-k8s-discovery-clients-part-5' into align-…
wind57 6e5f667
formatting
wind57 2f8d744
before tests
wind57 ea90959
align
wind57 6464751
started work on tests
wind57 5acb6d7
Merge branch '3.0.x' into align-fabric8-k8s-discovery-clients-part-5
wind57 a9428d6
trigger
wind57 c890a9a
Merge branch 'align-fabric8-k8s-discovery-clients-part-5' into align-…
wind57 44f6fa8
Merge branch 'align-fabric8-k8s-discovery-clients-part-6' into align-…
wind57 57a7280
formatting
wind57 3cf051d
Merge branch 'align-fabric8-k8s-discovery-clients-part-5' into align-…
wind57 f8b8d79
Merge branch 'align-fabric8-k8s-discovery-clients-part-6' into align-…
wind57 179d973
Merge branch '3.0.x' into align-fabric8-k8s-discovery-clients-part-6
wind57 dd797dd
Merge branch 'align-fabric8-k8s-discovery-clients-part-6' into align-…
wind57 90b0445
wip
wind57 f933c45
wip
wind57 03541e2
merge 3.0.x
wind57 672516e
merge 3.0.x
wind57 d4f9582
tests added
wind57 e36b471
remove sout
wind57 bfc099b
fix
wind57 9723274
simplify
wind57 8ab264e
fix
wind57 87b87f7
started work
wind57 100c351
review comments
wind57 40e7983
merge 3.0.x
wind57 91ec941
Merge branch 'align-fabric8-k8s-discovery-clients-part-7' into align-…
wind57 2e005fe
before fixing tests
wind57 bf45bcc
dirty
wind57 8772e5c
started working on tests
wind57 48fd465
merge 3.0.x
wind57 dc47efa
add one annotation
wind57 f02d68e
Merge branch 'align-fabric8-k8s-discovery-clients-part-8' into align-…
wind57 d13dfc8
fix 1426
wind57 34cf51e
Merge branch 'align-fabric8-k8s-discovery-clients-part-9' into align-…
wind57 942a144
common annotation for all blocking discovery implementations
wind57 92c66ee
common annotation for all reactive discovery implementations
wind57 321c121
Merge branch '3.0.x' into align-fabric8-k8s-discovery-clients-part-11
wind57 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...oud/kubernetes/commons/discovery/ConditionalOnSpringCloudKubernetesReactiveDiscovery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Inherited; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import org.springframework.boot.autoconfigure.condition.ConditionalOnCloudPlatform; | ||
import org.springframework.boot.cloud.CloudPlatform; | ||
import org.springframework.cloud.client.ConditionalOnDiscoveryEnabled; | ||
import org.springframework.cloud.client.ConditionalOnReactiveDiscoveryEnabled; | ||
|
||
/** | ||
* Provides common conditionals to be used for reactive discovery. | ||
* | ||
* @author wind57 | ||
*/ | ||
@Target({ ElementType.TYPE }) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Inherited | ||
@ConditionalOnDiscoveryEnabled | ||
@ConditionalOnKubernetesDiscoveryEnabled | ||
@ConditionalOnReactiveDiscoveryEnabled | ||
@ConditionalOnCloudPlatform(CloudPlatform.KUBERNETES) | ||
public @interface ConditionalOnSpringCloudKubernetesReactiveDiscovery { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we just did this work for blocking discovery, now for reactive. Nothing else changes in this PR