Skip to content

Commit 4690eaa

Browse files
feat(secret-manager): add secret version CRC32 (#2998)
Co-authored-by: Rémy Léone <[email protected]>
1 parent f34eac1 commit 4690eaa

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/scw/testdata/test-all-usage-secret-version-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ARGS:
1515
[password-generation.no-uppercase-letters] Do not include upper case letters by default in the alphabet
1616
[password-generation.no-digits] Do not include digits by default in the alphabet
1717
[password-generation.additional-chars] Additional ascii characters to be included in the alphabet
18+
[data-crc32] The CRC32 checksum of the data as a base-10 integer
1819
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
1920

2021
FLAGS:

docs/commands/secret.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ scw secret version create [arg=value ...]
204204
| password-generation.no-uppercase-letters | | Do not include upper case letters by default in the alphabet |
205205
| password-generation.no-digits | | Do not include digits by default in the alphabet |
206206
| password-generation.additional-chars | | Additional ascii characters to be included in the alphabet |
207+
| data-crc32 | | The CRC32 checksum of the data as a base-10 integer |
207208
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
208209

209210

internal/namespaces/secret/v1alpha1/secret_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@ func secretVersionCreate() *core.Command {
377377
Deprecated: false,
378378
Positional: false,
379379
},
380+
{
381+
Name: "data-crc32",
382+
Short: `The CRC32 checksum of the data as a base-10 integer`,
383+
Required: false,
384+
Deprecated: false,
385+
Positional: false,
386+
},
380387
core.RegionArgSpec(scw.RegionFrPar),
381388
},
382389
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)