-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ refactor providers coordinator (#3308)
* ✨ shutdown any unused providers on runtime.Close Signed-off-by: Ivan Milchev <[email protected]> * add a Coordinator interface to allow mocking Signed-off-by: Ivan Milchev <[email protected]> * use uber mockgen instead of golang mockgen Signed-off-by: Ivan Milchev <[email protected]> * cleanup coordinator code Signed-off-by: Ivan Milchev <[email protected]> * fix makefile and gitignore Signed-off-by: Ivan Milchev <[email protected]> * remove Stop function from coordinator interface Signed-off-by: Ivan Milchev <[email protected]> * fix gh actions Signed-off-by: Ivan Milchev <[email protected]> * fix deadlock Signed-off-by: Ivan Milchev <[email protected]> * add mocks for plugins Signed-off-by: Ivan Milchev <[email protected]> * add more tests Signed-off-by: Ivan Milchev <[email protected]> * refactor mock generation Signed-off-by: Ivan Milchev <[email protected]> * fix tests Signed-off-by: Ivan Milchev <[email protected]> * add more tests Signed-off-by: Ivan Milchev <[email protected]> * remove unused var Signed-off-by: Ivan Milchev <[email protected]> * fix go.mod formatting Signed-off-by: Ivan Milchev <[email protected]> * lock for the whole call of GetRunningProvider Signed-off-by: Ivan Milchev <[email protected]> * 🧹 use 1 global resource schema instead of per runtime (#3326) * use uber mockgen instead of golang mockgen Signed-off-by: Ivan Milchev <[email protected]> * fix go.mod formatting Signed-off-by: Ivan Milchev <[email protected]> * 🧹 use 1 global resource schema instead of per runtime Signed-off-by: Ivan Milchev <[email protected]> * fix tests Signed-off-by: Ivan Milchev <[email protected]> * fix more tests Signed-off-by: Ivan Milchev <[email protected]> * make sure resource overriding and extension works Signed-off-by: Ivan Milchev <[email protected]> * fix tests Signed-off-by: Ivan Milchev <[email protected]> * fix more failing tests Signed-off-by: Ivan Milchev <[email protected]> * code cleanup Signed-off-by: Ivan Milchev <[email protected]> * more test fixes Signed-off-by: Ivan Milchev <[email protected]> * more fixes Signed-off-by: Ivan Milchev <[email protected]> * fix extensible schema test Signed-off-by: Ivan Milchev <[email protected]> * add more safe guards for merging resources Signed-off-by: Ivan Milchev <[email protected]> * make extensible schema test deterministic Signed-off-by: Ivan Milchev <[email protected]> * fix comments Signed-off-by: Ivan Milchev <[email protected]> * fix linter Signed-off-by: Ivan Milchev <[email protected]> --------- Signed-off-by: Ivan Milchev <[email protected]> * code cleanup Signed-off-by: Ivan Milchev <[email protected]> --------- Signed-off-by: Ivan Milchev <[email protected]>
- Loading branch information
Showing
34 changed files
with
824 additions
and
419 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ jobs: | |
with: | ||
go-version: ">=${{ env.golang-version }}" | ||
cache: false | ||
- name: Generate test files | ||
run: make test/generate | ||
- name: Run golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
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
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
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
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
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
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
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
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
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.