Skip to content

Commit

Permalink
check nil filer spec
Browse files Browse the repository at this point in the history
fix #120
  • Loading branch information
chrislusf committed Jan 13, 2025
1 parent 4bf14b2 commit 44aebe8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/controller/seaweed_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ func (r *SeaweedReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
return result, err
}

if done, result, err = r.ensureFilerServers(seaweedCR); done {
return result, err
if seaweedCR.Spec.Filer != nil {
if done, result, err = r.ensureFilerServers(seaweedCR); done {
return result, err
}
}

if done, result, err = r.ensureSeaweedIngress(seaweedCR); done {
Expand Down

0 comments on commit 44aebe8

Please sign in to comment.