-
Notifications
You must be signed in to change notification settings - Fork 47
rpk: update profile docs #1015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpk: update profile docs #1015
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,28 +20,21 @@ ifndef::env-cloud[] | |
| * xref:get-started:rpk-quickstart.adoc[] | ||
| endif::[] | ||
|
|
||
| == Specify command properties | ||
| == Specify configuration properties | ||
|
|
||
| You can specify `rpk` command properties in the following ways: | ||
|
|
||
| * Create an xref:get-started:config-rpk-profile.adoc[`rpk profile`]. | ||
| * Specify the appropriate flag on the command line. | ||
| * Define the corresponding environment variables. | ||
| + | ||
| Environment variable settings only last for the duration of a shell session. | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing references to the It will always be maintained, but any new feature will be added to profiles and not there. w.r.t modifying the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @r-vasquez Should this line in the next paragraph also be changed then to remove the part about
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @r-vasquez should we also remove the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's fine to leave both as:
It's useful information on how rpk parses the properties but doesn't encourage users to use the redpanda.yaml And from the link, it's fine to keep it. |
||
| * Edit the configuration file settings in the `rpk` section of the `redpanda.yaml` file. | ||
| + | ||
| Configuration file property settings stay the same for each shell session. | ||
|
|
||
| * Edit the configuration file settings in the `rpk.yaml` file. | ||
| + | ||
| Configuration file property settings stay the same for each shell session. | ||
|
|
||
| Command line flag settings take precedence over the corresponding environment variables, and environment variables take precedence over configuration file settings. If a required flag is not specified on the command line, Redpanda searches the environment variable. If the environment variable is not set, the value in the `rpk.yaml` configuration file is used, if that file is available, otherwise the value in the `redpanda.yaml` configuration file is used. | ||
|
|
||
| TIP: If you specify `rpk` command properties in the configuration files or as environment variables, you don't need to specify them again on the command line. | ||
|
|
||
| == Common configuration properties | ||
| === Common configuration properties | ||
|
|
||
| Every `rpk` command supports a set of common configuration properties. You can set one or more options in an `rpk` command by using the `-X` flag: | ||
|
|
||
|
|
@@ -64,7 +57,9 @@ Or, get a detailed description about each option with `-X help`: | |
| rpk -X help | ||
| ---- | ||
|
|
||
| Some of the common configuration properties apply across all `rpk` commands as defaults. These default properties have keys with names starting with `defaults`, and they're viewable in `rpk -X list` and `rpk -X help`. For more details, see xref:reference:rpk/rpk-x-options.adoc[`rpk -X options`]. | ||
| Every `-X` option can be translated into an environment variable by prefixing it with `RPK_` and replacing periods (`.`) with underscores (`_`). For example, the flag `tls.enabled` has the equivalent environment variable `RPK_TLS_ENABLED`. | ||
|
|
||
| Some of the common configuration properties apply across all `rpk` commands as defaults. These default properties have keys with names starting with `globals`, and they're viewable in `rpk -X list` and `rpk -X help`. For more details, see xref:reference:rpk/rpk-x-options.adoc[`rpk -X options`]. | ||
|
|
||
| == Next steps | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A command property only can be specified via flags when you execute a function, for example:
Here,
--groupis a command property and can only be specified via flags.However, configuration properties can be specified in every command; for example, if I want to set which broker rpk talks to, I could do: