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.
change type of rtype to commonv1.ReplicaType (#135)
- Loading branch information
1 parent
4559a3d
commit 31efa75
Showing
9 changed files
with
42 additions
and
48 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,13 +1,16 @@ | ||
package expectation | ||
|
||
import "strings" | ||
import ( | ||
apiv1 "github.com/kubeflow/common/pkg/apis/common/v1" | ||
"strings" | ||
) | ||
|
||
// GenExpectationPodsKey generates an expectation key for pods of a job | ||
func GenExpectationPodsKey(jobKey, replicaType string) string { | ||
return jobKey + "/" + strings.ToLower(replicaType) + "/pods" | ||
func GenExpectationPodsKey(jobKey string, replicaType apiv1.ReplicaType) string { | ||
return jobKey + "/" + strings.ToLower(string(replicaType)) + "/pods" | ||
} | ||
|
||
// GenExpectationPodsKey generates an expectation key for services of a job | ||
func GenExpectationServicesKey(jobKey, replicaType string) string { | ||
return jobKey + "/" + strings.ToLower(replicaType) + "/services" | ||
func GenExpectationServicesKey(jobKey string, replicaType apiv1.ReplicaType) string { | ||
return jobKey + "/" + strings.ToLower(string(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