mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-21 23:21:48 +00:00
Detect suspended Kustomization in bootstrap
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
e0dd12505f
commit
e627634184
1 changed files with 5 additions and 0 deletions
|
|
@ -160,6 +160,11 @@ func kustomizationReconciled(ctx context.Context, kube client.Client, objKey cli
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Detect suspended Kustomization, as this would result in an endless wait
|
||||||
|
if kustomization.Spec.Suspend {
|
||||||
|
return false, fmt.Errorf("Kustomization is suspended")
|
||||||
|
}
|
||||||
|
|
||||||
// Confirm the state we are observing is for the current generation
|
// Confirm the state we are observing is for the current generation
|
||||||
if kustomization.Generation != kustomization.Status.ObservedGeneration {
|
if kustomization.Generation != kustomization.Status.ObservedGeneration {
|
||||||
return false, nil
|
return false, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue