Add trace options for batch key rotation (#4507)

This commit is contained in:
Poorna
2023-04-04 14:00:02 -07:00
committed by GitHub
parent a9cf9103ef
commit b5768efc96
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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 {
+1
View File
@@ -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")
}