Skip to content

Commit fc14981

Browse files
Merge pull request #698 from kchennag/fix/network-egress-default
Fix: align Network egressIPConfig with default oc get output (CNF-22543
2 parents bf3f36b + b068d34 commit fc14981

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

  • telco-core/configuration

telco-core/configuration/reference-crs-kube-compare/required/networking/Network.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ spec:
77
ovnKubernetesConfig:
88
gatewayConfig:
99
routingViaHost: true
10+
{{- $eip := .spec.defaultNetwork.ovnKubernetesConfig.egressIPConfig }}
11+
{{- if and $eip $eip.reachabilityTotalTimeoutSeconds }}
1012
egressIPConfig:
1113
reachabilityTotalTimeoutSeconds: 1
14+
{{- else }}
15+
egressIPConfig: {}
16+
{{- end }}
1217
{{ if hasKey .spec "useMultiNetworkPolicy" }}
1318
useMultiNetworkPolicy: {{ .spec.useMultiNetworkPolicy }}
1419
{{ end }}

telco-core/configuration/reference-crs/required/networking/Network.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
ovnKubernetesConfig:
1111
gatewayConfig:
1212
routingViaHost: true
13+
# Kube-compare template matches either {} or explicit reachabilityTotalTimeoutSeconds: 1 (default).
1314
egressIPConfig:
1415
reachabilityTotalTimeoutSeconds: 1
1516
# additional networks are optional and may alternatively be specified using NetworkAttachmentDefinition CRs

0 commit comments

Comments
 (0)