Skip to content

Commit

Permalink
feat: added format to egress config
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
Cali0707 committed Jul 15, 2024
1 parent 8ce19c9 commit aa4efb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions control-plane/pkg/core/config/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func EgressConfigFromDelivery(
egressConfig.Timeout = timeout
}

if delivery.Format != nil {
egressConfig.Format = string(*delivery.Format)
}

return egressConfig, nil
}

Expand Down Expand Up @@ -191,6 +195,7 @@ func MergeEgressConfig(e0, e1 *contract.EgressConfig) *contract.EgressConfig {
BackoffPolicy: e0.GetBackoffPolicy(),
BackoffDelay: mergeUint64(e0.GetBackoffDelay(), e1.GetBackoffDelay()),
Timeout: mergeUint64(e0.GetTimeout(), e1.GetTimeout()),
Format: mergeString(e0.GetFormat(), e1.GetFormat()),
}
}

Expand Down

0 comments on commit aa4efb2

Please sign in to comment.