This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify interfaces and remove useless interfaces (#85)
* Remove interfaces that operator has common impl These are very common implementations and actually doesn’t need interface for different operators. We already have PodControl and ServiceControl which is every reliable to create pods/services. JobController will provde common implementation for them. - GetPodsForJob - GetServicesForJob - CreateService - DeleteService - CreatePod - DeletePod Signed-off-by: Jiaxin Shan <[email protected]> * Add PodControl and ServiceControl back into JobController * Replace pod/service CURD with methods from control * Remove unused GetDefaultContainerPortNumber() interface * Format code base before check in * Add prometheus metrics back * Add gang-scheduling annotation only if operator enable it
- Loading branch information
Showing
7 changed files
with
144 additions
and
173 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
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.