Skip to content

Commit

Permalink
[MKS-4439]Add checking local_volume with volume_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Minasyan committed Oct 10, 2024
1 parent 4b87dd2 commit 922e1bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selectel/resource_selectel_mks_nodegroup_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ func resourceMKSNodegroupV1Create(ctx context.Context, d *schema.ResourceData, m
InstallNvidiaDevicePlugin: &installNvidiaDevicePlugin,
}

if createOpts.VolumeType != "" && !createOpts.LocalVolume {
return diag.FromErr(fmt.Errorf("can't use volume_type with local_volume: %w", err))
}

projectQuotas, _, err := quotas.GetProjectQuotas(selvpcClient, projectID, region)
if err != nil {
return diag.FromErr(errGettingObject(objectProjectQuotas, projectID, err))
Expand Down

0 comments on commit 922e1bc

Please sign in to comment.