Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Don't block update of a stopping deployment due to unready deps
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Shepherd <[email protected]>
  • Loading branch information
ibuildthecloud committed Jul 10, 2023
1 parent 34567e9 commit 3b37215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controller/appdefinition/depends.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ func getDependencyAnnotations(app *v1.AppInstance, containerOrJobName string, de

if !allReady {
result[apply.AnnotationCreate] = "false"
result[apply.AnnotationUpdate] = "false"
if !app.GetStopped() {
result[apply.AnnotationUpdate] = "false"
}
}

if _, ok := app.Status.AppSpec.Containers[containerOrJobName]; ok {
Expand Down

0 comments on commit 3b37215

Please sign in to comment.