forked from kubeflow/common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert kubeflow#135: change rtype to commonv1.ReplicaType
Since reconciler.v1 add more changes. This revert's scope is larger than original PR. Signed-off-by: Jiaxin Shan <[email protected]>
- Loading branch information
Showing
20 changed files
with
97 additions
and
82 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package expectation | ||
|
||
import ( | ||
apiv1 "github.com/kubeflow/common/pkg/apis/common/v1" | ||
"strings" | ||
) | ||
|
||
// GenExpectationPodsKey generates an expectation key for pods of a job | ||
func GenExpectationPodsKey(jobKey string, replicaType apiv1.ReplicaType) string { | ||
return jobKey + "/" + strings.ToLower(string(replicaType)) + "/pods" | ||
func GenExpectationPodsKey(jobKey string, replicaType string) string { | ||
return jobKey + "/" + strings.ToLower(replicaType) + "/pods" | ||
} | ||
|
||
// GenExpectationPodsKey generates an expectation key for services of a job | ||
func GenExpectationServicesKey(jobKey string, replicaType apiv1.ReplicaType) string { | ||
return jobKey + "/" + strings.ToLower(string(replicaType)) + "/services" | ||
func GenExpectationServicesKey(jobKey string, replicaType string) string { | ||
return jobKey + "/" + strings.ToLower(replicaType) + "/services" | ||
} |
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.