-
Notifications
You must be signed in to change notification settings - Fork 1k
Simplify config data #2052
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
Simplify config data #2052
Conversation
Signed-off-by: wind57 <[email protected]>
Signed-off-by: wind57 <[email protected]>
| } | ||
|
|
||
| @Override | ||
| protected KubernetesNamespaceProvider kubernetesNamespaceProvider(Environment environment) { |
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.
not removed, it is part of the super class now
| /** | ||
| * @author Ryan Baxter | ||
| */ | ||
| public final class KubernetesConfigDataResource extends ConfigDataResource { |
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.
this used to be in a different package with many more fields (that we were not using). So what I did:
- remove all the fields that we make no use of
- move it to a dedicate package
| */ | ||
| public abstract class KubernetesConfigDataLocationResolver | ||
| implements ConfigDataLocationResolver<KubernetesConfigDataResource>, Ordered { | ||
|
|
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.
this class already existed in a different package, I moved it in a different package.
Also, I transferred some code from it to ConfigDataPropertiesHolder
| /** | ||
| * @author wind57 | ||
| */ | ||
| public record ConfigDataPropertiesHolder(KubernetesClientProperties clientProperties, |
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.
this code already existed in a separate class, but I wanted to have a single entry point where we would look that deals with properties registration.
Signed-off-by: wind57 <[email protected]>
|
@ryanjbaxter ready for review. thank you |
No description provided.