[#1483] cli: Deprecate --basic-acl flag
All checks were successful
DCO action / DCO (pull_request) Successful in 3m31s
Tests and linters / Run gofumpt (pull_request) Successful in 4m16s
Tests and linters / Staticcheck (pull_request) Successful in 4m40s
Vulncheck / Vulncheck (pull_request) Successful in 4m59s
Build / Build Components (pull_request) Successful in 5m20s
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m23s
Tests and linters / gopls check (pull_request) Successful in 5m33s
Tests and linters / Tests with -race (pull_request) Successful in 6m14s
Tests and linters / Lint (pull_request) Successful in 6m25s
Tests and linters / Tests (pull_request) Successful in 6m47s

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-11-11 09:41:55 +03:00
parent 7645553881
commit 3f801ca593
Signed by: fyrchik
SSH key fingerprint: SHA256:m/TTwCzjnRkXgnzEx9X92ccxy1CcVeinOgDb3NPWWmg

View file

@ -167,6 +167,8 @@ func initContainerCreateCmd() {
flags.StringVar(&containerACL, "basic-acl", acl.NamePrivate, fmt.Sprintf("HEX encoded basic ACL value or keywords like '%s', '%s', '%s'",
acl.NamePublicRW, acl.NamePrivate, acl.NamePublicROExtended,
))
_ = flags.MarkDeprecated("basic-acl", "it will be removed in the next version of frostfs-cli.") // No error, flag exists.
flags.StringVarP(&containerPolicy, "policy", "p", "", "QL-encoded or JSON-encoded placement policy or path to file with it")
flags.StringSliceVarP(&containerAttributes, "attributes", "a", nil, "Comma separated pairs of container attributes in form of Key1=Value1,Key2=Value2")
flags.BoolVar(&containerAwait, "await", false, "Block execution until container is persisted")