Skip to content

Commit

Permalink
Fix Router Provision Bug (#60)
Browse files Browse the repository at this point in the history
Error is not getting propagated, and annoyingly the linter didn't pick
this up, meaning we say it's okay when a router fails to provision e.g.
no more IP addresses, and we get a SIGSEGV.
  • Loading branch information
spjmurray authored Sep 30, 2024
1 parent 92161c6 commit 3fc5d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/region/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A Helm chart for deploying Unikorn's Region Controller

type: application

version: v0.1.40
appVersion: v0.1.40
version: v0.1.41
appVersion: v0.1.41

icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png

Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/openstack/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ func (p *Provider) createRouter(ctx context.Context, networkService *NetworkClie

router, err := networkService.CreateRouter(ctx, "unikorn-openstack-region-provider-router")
if err != nil {
return nil
return err
}

openstackPhysicalNetwork.Spec.RouterID = &router.ID
Expand Down

0 comments on commit 3fc5d07

Please sign in to comment.