Skip to content

Commit

Permalink
Merge branch 'main' into update-clusterctl
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Mar 7, 2025
2 parents 3d1da98 + 1d2b2d0 commit 50e99de
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Lint

on:
Expand All @@ -10,7 +11,7 @@ on:

jobs:
lint:
name: Run on Ubuntu
name: Lint
runs-on: ubuntu-latest
steps:
- name: Clone the code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
build:
name: Release Drafter
runs-on: ubuntu-latest
steps:
- name: Draft Release
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: E2E Tests

on:
Expand All @@ -10,7 +11,7 @@ on:

jobs:
test-e2e:
name: Run on Ubuntu
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Clone the code
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Tests

on:
Expand All @@ -10,7 +11,7 @@ on:

jobs:
test:
name: Run on Ubuntu
name: Tests
runs-on: ubuntu-latest
steps:
- name: Clone the code
Expand Down
4 changes: 4 additions & 0 deletions internal/controller/metalstackmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ func (r *machineReconciler) getMachineAddresses(m *models.V1MachineResponse) clu
}

func (r *machineReconciler) findProviderMachine() (*models.V1MachineResponse, error) {
if r.infraMachine.Spec.ProviderID == "" {
return nil, errProviderMachineNotFound
}

resp, err := r.metalClient.Machine().FindMachine(metalmachine.NewFindMachineParams().WithContext(r.ctx).WithID(decodeProviderID(r.infraMachine.Spec.ProviderID)), nil)

var errResp *metalmachine.FindMachineDefault
Expand Down

0 comments on commit 50e99de

Please sign in to comment.