-
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.
* torqueue init * support torce cluster create * support centos and ubuntu base image for torque test case * polymerization pbspro cmd
- Loading branch information
Showing
16 changed files
with
198 additions
and
135 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package pbspro_schema | ||
|
||
import "flag" | ||
|
||
// Config is the global configuration for the training operator. | ||
var config struct { | ||
pbsproSchemaInitContainerTemplateFile string | ||
pbsproSchemaInitContainerImage string | ||
pbsproSchemaInitContainerMaxTries int | ||
} | ||
|
||
const ( | ||
// pbsproSchemaInitContainerImageDefault is the default image for the pbsproSchema | ||
// init container. | ||
pbsproSchemaInitContainerImageDefault = "registry.cn-shanghai.aliyuncs.com/eflops-bcp/pbs-minimal:v1" | ||
// pbsproSchemaInitContainerTemplateFileDefault is the default template file for | ||
// the pbsproSchema init container. | ||
pbsproSchemaInitContainerTemplateFileDefault = "/etc/config/initContainer.yaml" | ||
// pbsproSchemaInitContainerMaxTriesDefault is the default number of tries for the pbsproSchema init container. | ||
pbsproSchemaInitContainerMaxTriesDefault = 100 | ||
) | ||
|
||
func init() { | ||
// pbsproSchema related flags | ||
flag.StringVar(&config.pbsproSchemaInitContainerImage, "pbsproSchema-init-container-image", | ||
pbsproSchemaInitContainerImageDefault, "The image for pbsproSchema init container") | ||
flag.StringVar(&config.pbsproSchemaInitContainerTemplateFile, "pbsproSchema-init-container-template-file", | ||
pbsproSchemaInitContainerTemplateFileDefault, "The template file for pbsproSchema init container") | ||
flag.IntVar(&config.pbsproSchemaInitContainerMaxTries, "pbsproSchema-init-container-max-tries", | ||
pbsproSchemaInitContainerMaxTriesDefault, "The number of tries for the pbsproSchema init container") | ||
} |
Oops, something went wrong.