-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: add documentation for changes to import/export functionality #124
Changes from 2 commits
271c45d
5d729cd
478272f
c1c0b74
3378c83
68c16b1
b16b93e
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 | ||||
---|---|---|---|---|---|---|
|
@@ -50,6 +50,15 @@ For convenience, you can supply `--create-namespace` in order for Flipt to autom | |||||
flipt import --namespace production --create-namespace flipt.yaml | ||||||
``` | ||||||
|
||||||
<Note> | ||||||
In [v1.28.0](https://github.com/flipt-io/flipt/releases/tag/v1.28.0), we introduced some breaking changes to `import`. | ||||||
|
||||||
You no longer have to use the `--namespace` or `--create-namespace` flags to import resources into a specific namespace. | ||||||
|
||||||
The namespaces are now inferred from the YAML documents themselves. If a namespace your document refers to does not exist in the database, it will be created. | ||||||
|
||||||
</Note> | ||||||
|
||||||
This command supports the `--drop` flag that will drop all of the data in your | ||||||
Flipt database tables before importing. This is to ensure that no data | ||||||
collisions occur during the import. | ||||||
|
@@ -79,7 +88,6 @@ flags: | |||||
name: Blue | ||||||
- key: green | ||||||
name: Green | ||||||
|
||||||
``` | ||||||
|
||||||
You can also export to a file using the `-o filename` or `--output filename` | ||||||
|
@@ -95,3 +103,14 @@ Use the flag `--namespace` to export from a different namespace. | |||||
```yaml | ||||||
flipt export --namespace production | ||||||
``` | ||||||
|
||||||
<Note> | ||||||
In [v1.28.0](https://github.com/flipt-io/flipt/releases/tag/v1.28.0), we have extended this functionality to support exporting state from multiple namespaces to a single YAML file. | ||||||
|
||||||
The `--namespace` flag is now deprecated, and two new flags now exist. | ||||||
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.
Suggested change
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. This reminds me, we need to add this change to our https://github.com/flipt-io/flipt/blob/main/DEPRECATIONS.md file |
||||||
|
||||||
The `--namespaces` flag will accept a comma delimited list of namespaces from which you would like to export from. | ||||||
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.
Suggested change
|
||||||
|
||||||
The `--all-namespaces flag is a boolean flag which tells export to export all namespaces to the single file you specify, or to standard out by default. | ||||||
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.
Suggested change
|
||||||
|
||||||
</Note> |
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.
i wonder if we should just remove the section on
--create-namespace
and the section about how the namespace must exist now?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.
@markphelps Yeah I battled with this. I am for it, just was curious how many people are version upgrade averse.