Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development support volumes in tfrobot #1153

Merged
merged 6 commits into from
Aug 20, 2024

Conversation

rowangamal
Copy link
Contributor

@rowangamal rowangamal commented Aug 13, 2024

Description

Supporting Volumes in tfrobot, and editing the deployments accordingly

Changes

  • types.go in tfrobot/pkg/deployer
  • parser.go, validator.go, parser_test.go in tfrobot/internal/parser
  • README.md in tfrobot
  • config.yaml in tfrobot/example

Related Issues

issue

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring

@@ -19,6 +19,9 @@ vms:
ssd: # list of ssd storage needed to be mounted to the vm
- size: 15 # size in GB, min 15 GB
mount_point: /mnt/ssd
vol: # list of volume storage needed to be mounted to the vm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to volume

@@ -260,7 +260,7 @@ func buildDeployments(vms []Vms, nodesIDs []int, sshKeys map[string]string) grou
return groupDeploymentsInfo{vmDeployments: vmDeployments, networkDeployments: networkDeployments}
}

func parseDisks(name string, disks []Disk) (disksWorkloads []workloads.Disk, mountsWorkloads []workloads.Mount) {
func parseDisksAndVolumes(name string, disks []Disk, volumes []Volume) (disksWorkloads []workloads.Disk, volWorkloads []workloads.Volume, mountsWorkloads []workloads.Mount) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use two separate functions to parse disks and volumes

@rowangamal rowangamal linked an issue Aug 20, 2024 that may be closed by this pull request
@Eslam-Nawara Eslam-Nawara merged commit 24db52f into development Aug 20, 2024
37 of 40 checks passed
@Eslam-Nawara Eslam-Nawara deleted the development_support_volumes_tfrobot branch August 20, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants