kms: initialize after cli parsing (#15076)

KMS depends on the --certs-dir flag. 

Ensure KMS is initialized after loading the flag.
This commit is contained in:
Anis Elleuch
2022-06-13 21:06:13 +01:00
committed by GitHub
parent 48ff373ff7
commit 0d00f3a55b
3 changed files with 12 additions and 1 deletions

View File

@@ -212,6 +212,9 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
// Handle gateway specific env
gatewayHandleEnvVars()
// Initialize KMS configuration
handleKMSConfig()
// Set system resources to maximum.
setMaxResources()