Add flags to cover the functionality added in https://github.com/dapr/dapr/pull/5801.
Add flags to cover the functionality added in dapr/dapr#5801.