Skip to content

Commit bad99dd

Browse files
authored
misc: Fix App Search typos (#259)
1 parent a48a843 commit bad99dd

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

cmd/deployment/create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ func init() {
179179
createCmd.Flags().Int32("apm-zones", 1, "Number of zones the APM instances will span")
180180
createCmd.Flags().Int32("apm-size", 512, "Memory (RAM) in MB that each of the APM instances will have")
181181

182-
createCmd.Flags().Bool("appsearch", false, "Enables AppSearch for the deployment")
183-
createCmd.Flags().String("appsearch-ref-id", "main-appsearch", "Optional RefId for the AppSearch deployment")
184-
createCmd.Flags().Int32("appsearch-zones", 1, "Number of zones the AppSearch instances will span")
185-
createCmd.Flags().Int32("appsearch-size", 2048, "Memory (RAM) in MB that each of the AppSearch instances will have")
182+
createCmd.Flags().Bool("appsearch", false, "Enables App Search for the deployment")
183+
createCmd.Flags().String("appsearch-ref-id", "main-appsearch", "Optional RefId for the App Search deployment")
184+
createCmd.Flags().Int32("appsearch-zones", 1, "Number of zones the App Search instances will span")
185+
createCmd.Flags().Int32("appsearch-size", 2048, "Memory (RAM) in MB that each of the App Search instances will have")
186186

187187
// The following flags will remain hidden until reads for deployment templates are available on ESS
188188
createCmd.Flags().MarkHidden("deployment-template")

cmd/deployment/create_help.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Sane default values are provided, making the command work out of the box even wh
2424
When version is not specified, the latest available stack version will automatically be used.
2525
These are the available options:
2626
27-
* Simplified flags to set size and zone count for each instance type (Elasticsearch, Kibana, APM and AppSearch).
27+
* Simplified flags to set size and zone count for each instance type (Elasticsearch, Kibana, APM and App Search).
2828
* Advanced flag for different Elasticsearch node types: --topology-element <json obj> (shorthand: -e).
2929
Note that the flag can be specified multiple times for complex topologies.
3030
The JSON object has the following format:
@@ -41,7 +41,7 @@ Save it, update or extend the topology and create a deployment using the saved p
4141

4242
// nolint
4343
createExample = `## Create a deployment with the default values for Elasticsearch, a Kibana instance with a modified size,
44-
and a default APM instance. While Elasticsearch and Kibana come enabled by default, both APM and AppSearch need to be
44+
and a default APM instance. While Elasticsearch and Kibana come enabled by default, both APM and App Search need to be
4545
enabled by using the "--apm" and "--appsearch" flags. The command will exit after the API response has been returned, without
4646
waiting until the deployment resources have been created.
4747
$ ecctl deployment create --name my-deployment --zones 2 --kibana-size 2048 --apm --apm-size 1024

pkg/deployment/depresource/appsearch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewAppSearch(params NewStateless) (*models.AppSearchPayload, error) {
5959
}
6060

6161
if res.Payload.ClusterTemplate.Appsearch == nil {
62-
return nil, fmt.Errorf("deployment: the %s template is not configured for AppSearch. Please use another template if you wish to start AppSearch instances",
62+
return nil, fmt.Errorf("deployment: the %s template is not configured for App Search. Please use another template if you wish to start App Search instances",
6363
params.TemplateID)
6464
}
6565

pkg/deployment/depresource/appsearch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func TestNewAppSearch(t *testing.T) {
159159
),
160160
Region: "ece-region",
161161
}},
162-
err: errors.New("deployment: the an ID template is not configured for AppSearch. Please use another template if you wish to start AppSearch instances"),
162+
err: errors.New("deployment: the an ID template is not configured for App Search. Please use another template if you wish to start App Search instances"),
163163
},
164164
{
165165
name: "succeeds with no argument override",

pkg/deployment/depresource/delete_stateless.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (params *DeleteStatelessParams) Validate() error {
4646
}
4747

4848
// DeleteStateless deletes a stateless deployment resource like APM, Kibana
49-
// and AppSearch.
49+
// and App Search.
5050
func DeleteStateless(params DeleteStatelessParams) error {
5151
if err := params.Validate(); err != nil {
5252
return err

pkg/deployment/depresource/new_deployment_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func TestNew(t *testing.T) {
184184
wantErr: errors.New("deployment: the default template is not configured for APM. Please use another template if you wish to start APM instances"),
185185
},
186186
{
187-
name: "Fails to create a deployment payload with ES, Kibana and Appsearch instances",
187+
name: "Fails to create a deployment payload with ES, Kibana and App Search instances",
188188
args: args{params: NewParams{
189189
Version: "7.6.1",
190190
Region: "ece-region",
@@ -211,7 +211,7 @@ func TestNew(t *testing.T) {
211211
mock.New200Response(mock.NewStructBody(apmKibanaTemplateResponse)),
212212
),
213213
}},
214-
wantErr: errors.New("deployment: the default template is not configured for AppSearch. Please use another template if you wish to start AppSearch instances"),
214+
wantErr: errors.New("deployment: the default template is not configured for App Search. Please use another template if you wish to start App Search instances"),
215215
},
216216
{
217217
name: "Succeeds to create a deployment payload with ES and Kibana instances",

pkg/deployment/depresource/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type RestoreParams struct {
3333
}
3434

3535
// Restore upgrades a stateless deployment resource like APM, Kibana
36-
// and AppSearch.
36+
// and App Search.
3737
func Restore(params RestoreParams) error {
3838
if err := params.Validate(); err != nil {
3939
return err

pkg/deployment/depresource/upgrade_stateless.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
)
2727

2828
// UpgradeStateless upgrades a stateless deployment resource like APM, Kibana
29-
// and AppSearch.
29+
// and App Search.
3030
func UpgradeStateless(params deployment.ResourceParams) (*models.DeploymentResourceUpgradeResponse, error) {
3131
if err := params.Validate(); err != nil {
3232
return nil, err

pkg/platform/allocator/vacate_responses_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type vacateCaseClusters struct {
5757
kibana []vacateCaseClusterConfig
5858
// APM clusters that will be simulated
5959
apm []vacateCaseClusterConfig
60-
// AppSearch clusters that will be simulated
60+
// App Search clusters that will be simulated
6161
appsearch []vacateCaseClusterConfig
6262
}
6363

pkg/platform/allocator/vacate_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ func TestCheckVacateFailures(t *testing.T) {
626626
}},
627627
},
628628
{
629-
name: "Returns an error on AppSearch vacate failure",
629+
name: "Returns an error on App Search vacate failure",
630630
args: args{
631631
failures: &models.MoveClustersDetails{
632632
AppsearchClusters: []*models.MoveAppSearchDetails{
@@ -1227,7 +1227,7 @@ func Test_addAllocatorMovesToPool(t *testing.T) {
12271227
wantMoved: true,
12281228
},
12291229
{
1230-
name: "Move clusters when no filter is specified (AppSearch)",
1230+
name: "Move clusters when no filter is specified (App Search)",
12311231
args: args{params: addAllocatorMovesToPoolParams{
12321232
ID: "allocator-1",
12331233
Pool: func() *pool.Pool {
@@ -1324,7 +1324,7 @@ func Test_addAllocatorMovesToPool(t *testing.T) {
13241324
wantMoved: true,
13251325
},
13261326
{
1327-
name: "Move clusters when no filter is specified (AppSearch)",
1327+
name: "Move clusters when no filter is specified (App Search)",
13281328
args: args{params: addAllocatorMovesToPoolParams{
13291329
ID: "allocator-1",
13301330
Pool: func() *pool.Pool {

0 commit comments

Comments
 (0)