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.
Browse files
Browse the repository at this point in the history
#135 This change brings some extra side effects and make training operator dependency upgrade fail. Since this change is kind of refactor, we determine to revert it at this moment.
- Loading branch information
Showing
9 changed files
with
48 additions
and
41 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, 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, 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