The .golangci.yml file contains the root level key `linters-settings`
twice, resulting in following error when we run `make lint`:
```
> make lint
Running lint check
ERRO Can't read config: can't read viper config: While parsing config: yaml: unmarshal errors:
line 26: mapping key "linters-settings" already defined at line 1
make: *** [Makefile:36: lint] Error 3
```
Fixed by merging into a single key.
e.g:
`mc admin trace --request-header "User-Agent: *hadoop*" <alias>`
to print all S3 requests sent by Hadoop
`mc admin trace --request-header "!X-Minio-Source*" <alias>`
to avoid printing S3 requests related to replication
terminal control was not relinquished since ui.Start()
must not be run in a go-routine as it is expected
to be a blocking call, and must be serialized with when
an application exits.
refactor the 'scanner info/status' to ensure we have
correct behavior.
This PR also renames 'info-> status', keeps the older
one as alias for now.
The code that is being modified is from 2016. Currently, it does not set
an exit code status in the following cases, all of them are returned by
the FS layer:
BrokenSymlink
TooManyLevelsSymlink
PathNotFound
PathInsufficientPermission
There is no reason to avoid setting an exit code in this case. The only
functional change of this PR is by setting an exit code
many commands seem to have sort of had
stopped following the expected convention
in `mc` to differentiate *probe.Error.
To keep things readable this PR is the
first attempt at such a cleanup.
Earlier, the parsed config contained the `target` of the form
`subsystem:target` e.g. `logger_webhook:subnet`. Now it contains only
the target e.g. `subnet`.
Updating the `support logs status` command code accordingly to ensure
that it prints correct output.
- When the cluster is registered but either license or api-key
are available in the config, and when `--airgap` is not passed
to the command, try to automatically fetch and store the other
both.
- Add `--api-key` flag to `mc support diag`
- Use header-based auth with subnet
- Introduce a common function to initialize/check connectivity with subnet
- Make the health report upload function generic so that it can be used
by other commands like profile in future
- Add a global variable for airgapped mode
- Add more examples to `mc license register`
Passing the prefix in the aliased url is problematic for ilm edit
command when the user wants to modify something in the ILM rule: no
prefix in the url means the user wants to set an empty prefix or maybe
nothing. To fix this, add --prefix flag and make it a default choice in
the document.
Also, ilm edit will try to only apply passed flags. LifecycleOptions
fields are all pointers to apply only non nil fields to the ILM rule.
Change the JSON output of mc support perf
The new change will still print multiple JSON lines for each conducted
performance test but now we have a new field called 'type' field to
difference between network, drive and object tests.
This change also adds 'final' field to indicate this is the final json of a
particular performance testing.
Also, errors when conducting those tests will have a field 'err' as well
in the JSON output.