Skip to content

cmd: Rename apikey to api-key and EC_API_KEY - #363

Merged
marclop merged 2 commits into
elastic:masterfrom
marclop:b/change-apikey-to-api-key-and-EC_API_KEY
Aug 14, 2020
Merged

marclop merged 2 commits into
elastic:masterfrom
marclop:b/change-apikey-to-api-key-and-EC_API_KEY

Conversation

@marclop

@marclop marclop commented Aug 13, 2020

Copy link
Copy Markdown
Collaborator

Description

In order to align the environment variables to match the existing cloud
documentation, this patch renames the --apikey flag to --api-key,
which also makes the EC_APIKEY be changed to the desired EC_API_KEY
environment variable.

Related Issues

elastic/terraform-provider-ec#39

Motivation and Context

Aligning the config settings across products.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)

In order to align the environment variables to match the existing cloud
documentation, this patch renames the `--apikey` flag to `--api-key`,
which also makes the `EC_APIKEY` be changed to the desired `EC_API_KEY`
environment variable.

Signed-off-by: Marc Lopez <marc5.12@outlook.com>
Signed-off-by: Marc Lopez <marc5.12@outlook.com>
@marclop marclop added the bug Something isn't working label Aug 13, 2020
@marclop
marclop requested review from a team, alaudazzi and nrichers as code owners August 13, 2020 08:54
@marclop marclop self-assigned this Aug 13, 2020
@marclop marclop changed the title B/change apikey to api key and ec api key ec_deployment: Add APM config setting management Aug 13, 2020

@karencfv karencfv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Just one optional nit. the flag is --api-key but every other reference to the api key is api_key. I think it would be great to have them all be one way or the other :)

@karencfv

Copy link
Copy Markdown
Contributor

btw, I think the tile of the PR is wrong 😄

@marclop marclop changed the title ec_deployment: Add APM config setting management cmd: Rename apikey to api-key and EC_API_KEY Aug 14, 2020
@marclop

marclop commented Aug 14, 2020

Copy link
Copy Markdown
Collaborator Author

@karencfv all the cli flags use a - to separate words, while env, yaml and json config use _ as the key separators

@marclop
marclop merged commit efd9082 into elastic:master Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants