Skip to content

Commit 1f387a7

Browse files
vishalbolludeliahu
authored andcommitted
Update cluster.go (#600)
(cherry picked from commit 158b9db)
1 parent 446c220 commit 1f387a7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cli/cmd/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func refreshCachedClusterConfig(awsCreds *AWSCredentials) *clusterconfig.Cluster
267267
}
268268

269269
if userClusterConfig.Region == nil {
270-
errors.Exit(fmt.Sprintf("unable to find %s; please configure \"%s\" to the s3 region of an existing cortex cluster or create a cortex cluster with `cortex cluster up`", clusterconfig.RegionKey, clusterconfig.RegionKey))
270+
errors.Exit(fmt.Sprintf("unable to find an existing cortex cluster; please configure \"%s\" to the s3 region of an existing cortex cluster or create a cortex cluster with `cortex cluster up`", clusterconfig.RegionKey))
271271
}
272272

273273
out, err := runRefreshClusterConfig(userClusterConfig, awsCreds)

pkg/lib/clusterconfig/clusterconfig.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,10 @@ func (cc *ClusterConfig) UserFacingTable() []table.KV {
719719
items = append(items, table.KV{K: BucketUserFacingKey, V: *cc.Bucket})
720720
items = append(items, table.KV{K: SpotUserFacingKey, V: s.YesNo(*cc.Spot)})
721721
items = append(items, table.KV{K: InstanceTypeUserFacingKey, V: *cc.InstanceType})
722-
items = append(items, table.KV{K: InstanceVolumeSizeUserFacingKey, V: cc.InstanceVolumeSize})
723722
items = append(items, table.KV{K: MinInstancesUserFacingKey, V: *cc.MinInstances})
724723
items = append(items, table.KV{K: MaxInstancesUserFacingKey, V: *cc.MaxInstances})
724+
items = append(items, table.KV{K: InstanceVolumeSizeUserFacingKey, V: cc.InstanceVolumeSize})
725+
725726
if cc.Spot != nil {
726727
items = append(items, table.KV{K: InstanceDistributionUserFacingKey, V: cc.SpotConfig.InstanceDistribution})
727728
items = append(items, table.KV{K: OnDemandBaseCapacityUserFacingKey, V: *cc.SpotConfig.OnDemandBaseCapacity})

pkg/lib/clusterconfig/config_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const (
6262
InstanceTypeUserFacingKey = "instance type"
6363
MinInstancesUserFacingKey = "min instances"
6464
MaxInstancesUserFacingKey = "max instances"
65-
InstanceVolumeSizeUserFacingKey = "instance volume size"
65+
InstanceVolumeSizeUserFacingKey = "instance volume size (Gi)"
6666
InstanceDistributionUserFacingKey = "spot instance distribution"
6767
OnDemandBaseCapacityUserFacingKey = "spot on demand base capacity"
6868
OnDemandPercentageAboveBaseCapacityUserFacingKey = "spot on demand percentage above base capacity"

0 commit comments

Comments
 (0)