Skip to content

Commit

Permalink
add templateId to create pods command
Browse files Browse the repository at this point in the history
  • Loading branch information
pantafive committed Dec 21, 2023
1 parent 7960f54 commit 955d5fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/pods/createPods.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var name string
var podCount int
var ports []string
var secureCloud bool
var templateId string
var volumeInGb int
var volumeMountPath string

Expand All @@ -42,6 +43,7 @@ var CreatePodsCmd = &cobra.Command{
MinMemoryInGb: minMemoryInGb,
MinVcpuCount: minVcpuCount,
Name: name,
TemplateId: templateId,
VolumeInGb: volumeInGb,
VolumeMountPath: volumeMountPath,
}
Expand Down Expand Up @@ -98,6 +100,7 @@ func init() {
CreatePodsCmd.Flags().StringVar(&gpuTypeId, "gpuType", "", "gpu type id, e.g. 'NVIDIA GeForce RTX 3090'")
CreatePodsCmd.Flags().StringVar(&imageName, "imageName", "", "container image name")
CreatePodsCmd.Flags().StringVar(&name, "name", "", "any pod name for easy reference")
CreatePodsCmd.Flags().StringVar(&templateId, "templateId", "", "templateId to use with the pods")
CreatePodsCmd.Flags().StringVar(&volumeMountPath, "volumePath", "/runpod", "container volume path")

CreatePodsCmd.MarkFlagRequired("gpuType") //nolint
Expand Down

0 comments on commit 955d5fc

Please sign in to comment.