Skip to content

Commit 252ec90

Browse files
committed
roachprod: add boot disk only cli flags
Epic: None Release note: None
1 parent 230ab29 commit 252ec90

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

pkg/roachprod/vm/aws/aws.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,8 @@ func (o *ProviderOpts) ConfigureCreateFlags(flags *pflag.FlagSet) {
543543
false, "use AWS Spot VMs, which are significantly cheaper, but can be preempted by AWS.")
544544
flags.StringVar(&o.IAMProfile, ProviderName+"-iam-profile", o.IAMProfile,
545545
"the IAM instance profile to associate with created VMs if non-empty")
546+
flags.BoolVar(&o.BootDiskOnly, ProviderName+"-boot-disk-only", o.BootDiskOnly,
547+
"Only attach the boot disk. No additional volumes will be provisioned even if specified.")
546548
}
547549

548550
// ConfigureClusterCleanupFlags implements ProviderOpts.

pkg/roachprod/vm/azure/flags.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,6 @@ func (o *ProviderOpts) ConfigureCreateFlags(flags *pflag.FlagSet) {
9191
"Number of IOPS provisioned for ultra disk, only used if network-disk-type=ultra-disk")
9292
flags.StringVar(&o.DiskCaching, ProviderName+"-disk-caching", "none",
9393
"Disk caching behavior for attached storage. Valid values are: none, read-only, read-write. Not applicable to Ultra disks.")
94+
flags.BoolVar(&o.BootDiskOnly, ProviderName+"-boot-disk-only", o.BootDiskOnly,
95+
"Only attach the boot disk. No additional volumes will be provisioned even if specified.")
9496
}

pkg/roachprod/vm/gce/gcloud.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,8 @@ func (o *ProviderOpts) ConfigureCreateFlags(flags *pflag.FlagSet) {
11581158
"enable turbo mode for the instance (only supported on C4 VM families, valid value: 'ALL_CORE_MAX')")
11591159
flags.IntVar(&o.ThreadsPerCore, ProviderName+"-threads-per-core", 0,
11601160
"the number of visible threads per physical core (valid values: 1 or 2), default is 0 (auto)")
1161+
flags.BoolVar(&o.BootDiskOnly, ProviderName+"-boot-disk-only", o.BootDiskOnly,
1162+
"Only attach the boot disk. No additional volumes will be provisioned even if specified.")
11611163
}
11621164

11631165
// ConfigureProviderFlags implements Provider

pkg/roachprod/vm/ibm/provider_flags.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ If > 1 zone specified, the cluster will be spread out evenly by zone regardless
151151
),
152152
)
153153

154+
flags.BoolVar(
155+
&o.BootDiskOnly,
156+
ProviderName+"-boot-disk-only",
157+
o.BootDiskOnly,
158+
"Only attach the boot disk. No additional volumes will be provisioned even if specified.",
159+
)
160+
154161
flags.BoolVar(
155162
&o.UseMultipleDisks,
156163
ProviderName+"-enable-multiple-stores",

0 commit comments

Comments
 (0)