kind: ConfigMap
apiVersion: v1
metadata:
  labels:
    app: {{ template "burrow.name" . }}
    chart: {{ template "burrow.chart" $ }}
    heritage: {{ $.Release.Service }}
    release: {{ $.Release.Name }}
  name: {{ template "burrow.fullname" . }}-config
data:
  burrow.toml: |-
    [Tendermint]
      Seeds = ""
      SeedMode = false
      PersistentPeers = "{{ template "burrow.seeds" . }}"
      ListenAddress = "tcp://0.0.0.0:{{ .Values.peer.service.port }}"
      ExternalAddress = ""
      Moniker = ""
      TendermintRoot = ".burrow"
    [Execution]
    [Keys]
      GRPCServiceEnabled = true
      AllowBadFilePermissions = true
      RemoteAddress = ""
      KeysDirectory = "/keys"
    [RPC]
      [RPC.Info]
        Enabled = {{ .Values.rpcInfo.enabled }}
        ListenAddress = "tcp://0.0.0.0:{{ .Values.rpcInfo.service.port }}"
      [RPC.Profiler]
        Enabled = {{ .Values.rpcProfiler.enabled }}
        ListenAddress = "tcp://0.0.0.0:{{ .Values.rpcProfiler.port }}"
      [RPC.GRPC]
        Enabled = {{ .Values.rpcGRPC.enabled }}
        ListenAddress = "0.0.0.0:{{ .Values.rpcGRPC.service.port }}"
      [RPC.Metrics]
        Enabled = {{ .Values.rpcMetrics.enabled }}
        ListenAddress = "tcp://0.0.0.0:{{ .Values.rpcMetrics.port }}"
        MetricsPath = {{ .Values.rpcMetrics.path | quote }}
        BlockSampleSize = {{ .Values.rpcMetrics.blockSampleSize }}
    [Logging]
      ExcludeTrace = true
      NonBlocking = true
      [Logging.RootSink]
        [Logging.RootSink.Output]
          OutputType = "stderr"
          Format = "json"
