Skip to content
Snippets Groups Projects
Commit e6276341 authored by Hidde Beydals's avatar Hidde Beydals
Browse files

Detect suspended Kustomization in bootstrap


Signed-off-by: default avatarHidde Beydals <hello@hidde.co>
parent e0dd1250
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,11 @@ func kustomizationReconciled(ctx context.Context, kube client.Client, objKey cli ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment