-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
chore(influx): improve usage for influx pkg commands #18334
Conversation
ee6db04
to
95717d1
Compare
|
||
Example: | ||
# Export by a stack | ||
influx pkg export stack $STACK_ID |
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.
v2 docs haven't been added yet. Should be available come next release. Will backfill that when it is available. Perhaps we can do it in tandem @sanderson?
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.
@jsteenb2 This should be pretty easy to add. I'll do it this afternoon. The task-based stack management docs are a different PR and will get finalized once I wrap up my InfluxDays presentation.
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.
awesome, sounds great 👍
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.
95717d1
to
63415ad
Compare
cmd/influx/pkg.go
Outdated
# template associated with it. | ||
influx pkg --stack-id $STACK_ID | ||
|
||
# Apply a template associated with a stack. Stacks make tempalte application idempotent. |
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.
template
cmd/influx/pkg.go
Outdated
# Apply a template from STDIN | ||
cat $TEMPLATE.json | influx pkg --encoding json | ||
|
||
# Applying a directory of templates, takes everything from provided dir |
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.
Would expand dir
to directory
here and below.
63415ad
to
b802dfa
Compare
@pierwill thank you! pushed up changes per your feedback 👍 |
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.
Just some minor changes.
CHANGELOG.md
Outdated
@@ -4,6 +4,7 @@ | |||
|
|||
1. [18279](https://github.com/influxdata/influxdb/pull/18279): Make all pkg applications stateful via stacks | |||
1. [18322](https://github.com/influxdata/influxdb/pull/18322): Add ability to export a stack's existing (as they are in the platform) resource state as a pkg | |||
1. [18334](https://github.com/influxdata/influxdb/pull/18334): Update influx pkg commands with improved usage and examples within long form. |
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.
Update influx pkg commands with improved usage and examples within in long form.
cmd/influx/pkg.go
Outdated
The pkg command applies InfluxDB template(s). You can use the command to create | ||
new resources via a declarative template. The pkg command can consume templates | ||
via file(s), url(s), stdin, or any combination of the 3. Each run of the pkg | ||
command ensures that all templates applied are applied in unison as a transaction. | ||
If any unexpected errors are discovered then all side effects are rolled back. |
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.
You can Use the command ...
deb7e49
to
c01190f
Compare
c01190f
to
95bbc6a
Compare
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.
LGTM
Closes #18324