Add trace options for batch key rotation (#4507)
This commit is contained in:
@@ -112,6 +112,10 @@ var traceCallTypes = map[string]func(o *madmin.ServiceTraceOpts) (help string){
|
||||
o.BatchReplication = true
|
||||
return "Trace Batch Replication (alias: brep)"
|
||||
},
|
||||
"batch-keyrotation": func(o *madmin.ServiceTraceOpts) string {
|
||||
o.BatchKeyRotation = true
|
||||
return "Trace Batch KeyRotation (alias: brot)"
|
||||
},
|
||||
"decommission": func(o *madmin.ServiceTraceOpts) string {
|
||||
o.Decommission = true
|
||||
return "Trace Decommission operations (alias: decom)"
|
||||
@@ -132,6 +136,7 @@ var traceCallTypeAliases = map[string]func(o *madmin.ServiceTraceOpts) string{
|
||||
"decom": traceCallTypes["decommission"],
|
||||
"resync": traceCallTypes["replication-resync"],
|
||||
"brep": traceCallTypes["batch-replication"],
|
||||
"brot": traceCallTypes["batch-keyrotation"],
|
||||
}
|
||||
|
||||
func traceCallsHelp() string {
|
||||
|
||||
@@ -82,6 +82,7 @@ func mainBatchGenerate(ctx *cli.Context) error {
|
||||
|
||||
switch jobType {
|
||||
case string(madmin.BatchJobReplicate):
|
||||
case string(madmin.BatchJobKeyRotate):
|
||||
default:
|
||||
fatalIf(errInvalidArgument().Trace(jobType), "Unable to generate a job template for the specified job type")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user