node: add no-op required dataDir flag
Change-Id: I8090550bbfb26686dcc5f30c3c3dcd66aae8ec10
This commit is contained in:
parent
c5442b9598
commit
e58730168d
|
@ -46,6 +46,8 @@ var (
|
|||
|
||||
adminSocketPath *string
|
||||
|
||||
dataDir *string
|
||||
|
||||
statusAddr *string
|
||||
|
||||
bridgeKeyPath *string
|
||||
|
@ -82,6 +84,8 @@ func init() {
|
|||
|
||||
adminSocketPath = BridgeCmd.Flags().String("adminSocket", "", "Admin gRPC service UNIX domain socket path")
|
||||
|
||||
dataDir = BridgeCmd.Flags().String("dataDir", "", "Data directory")
|
||||
|
||||
bridgeKeyPath = BridgeCmd.Flags().String("bridgeKey", "", "Path to guardian key (required)")
|
||||
solanaBridgeAddress = BridgeCmd.Flags().String("solanaBridgeAddress", "", "Address of the Solana Bridge Program (required)")
|
||||
|
||||
|
@ -247,6 +251,9 @@ func runBridge(cmd *cobra.Command, args []string) {
|
|||
if *adminSocketPath == "" {
|
||||
logger.Fatal("Please specify --adminSocket")
|
||||
}
|
||||
if *dataDir == "" {
|
||||
logger.Fatal("Please specify --dataDir")
|
||||
}
|
||||
if *ethRPC == "" {
|
||||
logger.Fatal("Please specify --ethRPC")
|
||||
}
|
||||
|
|
|
@ -84,6 +84,8 @@ spec:
|
|||
- "[::]:7070"
|
||||
- --adminSocket
|
||||
- /tmp/admin.sock
|
||||
- --dataDir
|
||||
- /tmp/data
|
||||
# - --logLevel=debug
|
||||
securityContext:
|
||||
capabilities:
|
||||
|
|
Loading…
Reference in New Issue