Skip to content

Commit e4cc353

Browse files
tronghnmortenlj
andcommitted
resolved: retry on empty conditions
Co-authored-by: Morten Lied Johansen <[email protected]>
1 parent 0ec5482 commit e4cc353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/resolved/resolved.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func ResolveInstance(ctx context.Context, app *nais_io_v1alpha1.Application, mgr
154154
}
155155
}
156156

157-
if sqlInstance.Status.Conditions[0].Reason != "UpToDate" {
157+
if len(sqlInstance.Status.Conditions) == 0 || sqlInstance.Status.Conditions[0].Reason != "UpToDate" {
158158
time.Sleep(3 * time.Second)
159159
continue
160160
}

0 commit comments

Comments
 (0)