We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37222fb commit e89ec1fCopy full SHA for e89ec1f
pkg/controller/infrastructure/stackit/infraflow/reconcile.go
@@ -400,11 +400,15 @@ func (fctx *FlowContext) ensureEgressIP(ctx context.Context) error {
400
if err != nil {
401
return err
402
}
403
+ _, ok := network.GetIpv4Ok()
404
+ if !ok {
405
+ return fmt.Errorf("could not find IPv4 config in network: %s", network.GetId())
406
+ }
407
routerIP, ok := network.Ipv4.GetPublicIpOk()
408
if ok {
409
result = append(result, routerIP)
410
fctx.state.SetObject(IdentifierEgressCIDRs, result)
411
return nil
412
- return fmt.Errorf("egress IP not found for network %s", network.GetId())
413
+ return fmt.Errorf("egress IP not found for network: %s", network.GetId())
414
0 commit comments