[VOL-3850] Support configuration of reconciling timeout via helm charts

Change-Id: Ic85e9ae01d87db8045f17ae2d5054bc16c2d0d4e
diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go
index 628c689..8b657eb 100644
--- a/internal/pkg/config/config.go
+++ b/internal/pkg/config/config.go
@@ -54,6 +54,7 @@
 	defaultCurrentReplica             = 1
 	defaultTotalReplicas              = 1
 	defaultMaxTimeoutInterAdapterComm = 30 * time.Second
+	defaultMaxTimeoutReconciling      = 10 * time.Second
 	defaultOnuVendorIds               = "OPEN,ALCL,BRCM,TWSH,ALPH,ISKT,SFAA,BBSM,SCOM,ARPX,DACM,ERSN,HWTC,CIGG,ADTN,ARCA,AVMG"
 
 	// For Tracing
@@ -92,6 +93,7 @@
 	CurrentReplica              int
 	TotalReplicas               int
 	MaxTimeoutInterAdapterComm  time.Duration
+	MaxTimeoutReconciling       time.Duration
 	TraceEnabled                bool
 	TraceAgentAddress           string
 	LogCorrelationEnabled       bool
@@ -127,6 +129,7 @@
 		CurrentReplica:              defaultCurrentReplica,
 		TotalReplicas:               defaultTotalReplicas,
 		MaxTimeoutInterAdapterComm:  defaultMaxTimeoutInterAdapterComm,
+		MaxTimeoutReconciling:       defaultMaxTimeoutReconciling,
 		TraceEnabled:                defaultTraceEnabled,
 		TraceAgentAddress:           defaultTraceAgentAddress,
 		LogCorrelationEnabled:       defaultLogCorrelationEnabled,
@@ -210,6 +213,10 @@
 	flag.DurationVar(&(so.MaxTimeoutInterAdapterComm), "max_timeout_interadapter_comm",
 		defaultMaxTimeoutInterAdapterComm, help)
 
+	help = fmt.Sprintf("Maximum Number of seconds for the default ONU reconciling timeout")
+	flag.DurationVar(&(so.MaxTimeoutReconciling), "max_timeout_reconciling",
+		defaultMaxTimeoutReconciling, help)
+
 	help = fmt.Sprintf("Whether to send logs to tracing agent?")
 	flag.BoolVar(&(so.TraceEnabled), "trace_enabled", defaultTraceEnabled, help)