Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func initProject(ctx context.Context, logger logger.Logger, args InitProjectArgs
proj.Deployment.Args = args.Provider.Deployment.Args
proj.Deployment.Resources.CPU = args.Provider.Deployment.Resources.CPU
proj.Deployment.Resources.Memory = args.Provider.Deployment.Resources.Memory
proj.Deployment.Resources.Disk = args.Provider.Deployment.Resources.Disk

// set the agents from the result
proj.Agents = result.Agents
Expand Down
5 changes: 5 additions & 0 deletions internal/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ func (p *Project) Load(dir string) error {
return fmt.Errorf("error validating deploy memory value '%s'. %w", p.Deployment.Resources.Memory, err)
}
p.Deployment.Resources.MemoryQuantity = val
val, err = resource.ParseQuantity(p.Deployment.Resources.Disk)
if err != nil {
return fmt.Errorf("error validating deploy disk value '%s'. %w", p.Deployment.Resources.Disk, err)
}
p.Deployment.Resources.DiskQuantity = val
}
}
return nil
Expand Down
1 change: 1 addition & 0 deletions internal/templates/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type Bundle struct {
type Resources struct {
Memory string `yaml:"memory"`
CPU string `yaml:"cpu"`
Disk string `yaml:"disk"`
}

type Watch struct {
Expand Down
Loading