-
Notifications
You must be signed in to change notification settings - Fork 204
Refactor kubernetes provider by separating Loader and Applier #3407
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
Conversation
pipecd-bot
left a comment
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.
|
There is a bug in our CodeGen job so please ignore it in this case. |
| type ManifestLoader interface { | ||
| // LoadManifests renders and loads all manifests for application. | ||
| LoadManifests(ctx context.Context) ([]Manifest, error) | ||
| } |
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.
nits, I would prefer either fixing to ManifestLoader into Loader or LoadManifests into Load.
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.
Nice idea. Let me fix the interface name to Loader. 👍
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.
Addressed by f1d6831
|
Code coverage for golang is
|
knanao
left a comment
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.
Nice refactoring XD
/lgtm
|
Here you go 👌 |
What this PR does / why we need it:
This separates Loader and Applier completely before updating the Applier to use the specified kube-config path.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: