Skip to content

Commit

Permalink
Replace runtime map with periodic database check
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Jul 3, 2024
1 parent f8f167d commit b0eb4b5
Show file tree
Hide file tree
Showing 25 changed files with 795 additions and 741 deletions.
22 changes: 11 additions & 11 deletions charts/plgd-hub/templates/snippet-service/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,21 @@ data:
{{- $cqlDbTls := .clients.storage.cqlDB.tls }}
{{- include "plgd-hub.certificateConfig" (list $ $cqlDbTls $cert ) | indent 10 }}
useSystemCAPool: {{ .clients.storage.cqlDB.tls.useSystemCAPool }}
resourceAggregate:
pendingCommandsCheckInterval: {{ .clients.resourceAggregate.pendingCommandsCheckInterval }}
resourceUpdater:
cleanUpExpiredUpdates: {{ .clients.resourceUpdater.cleanUpExpiredUpdates | quote }}
grpc:
{{- $resourceAggregate := .clients.resourceAggregate.grpc.address }}
address:{{ printf " " }}{{- include "plgd-hub.resourceAggregateAddress" (list $ $resourceAggregate ) | quote }}
sendMsgSize: {{ int64 .clients.resourceAggregate.grpc.sendMsgSize | default 4194304 }}
recvMsgSize: {{ int64 .clients.resourceAggregate.grpc.recvMsgSize | default 4194304 }}
{{- $resourceUpdater := .clients.resourceUpdater.grpc.address }}
address:{{ printf " " }}{{- include "plgd-hub.resourceAggregateAddress" (list $ $resourceUpdater ) | quote }}
sendMsgSize: {{ int64 .clients.resourceUpdater.grpc.sendMsgSize | default 4194304 }}
recvMsgSize: {{ int64 .clients.resourceUpdater.grpc.recvMsgSize | default 4194304 }}
keepAlive:
time: {{ .clients.resourceAggregate.grpc.keepAlive.time }}
timeout: {{ .clients.resourceAggregate.grpc.keepAlive.timeout }}
permitWithoutStream: {{ .clients.resourceAggregate.grpc.keepAlive.permitWithoutStream }}
time: {{ .clients.resourceUpdater.grpc.keepAlive.time }}
timeout: {{ .clients.resourceUpdater.grpc.keepAlive.timeout }}
permitWithoutStream: {{ .clients.resourceUpdater.grpc.keepAlive.permitWithoutStream }}
tls:
{{- $raClientTls := .clients.resourceAggregate.grpc.tls }}
{{- $raClientTls := .clients.resourceUpdater.grpc.tls }}
{{- include "plgd-hub.certificateConfig" (list $ $raClientTls $cert) | indent 10 }}
useSystemCAPool: {{ .clients.resourceAggregate.grpc.tls.useSystemCAPool }}
useSystemCAPool: {{ .clients.resourceUpdater.grpc.tls.useSystemCAPool }}
{{- include "plgd-hub.openTelemetryExporterConfig" (list $ $cert ) | nindent 6 }}
{{- end }}
{{- end }}
Loading

0 comments on commit b0eb4b5

Please sign in to comment.