Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 8e01b66

Browse files
committed
fix: add comment for always add containerd patch
1 parent 17ce0a8 commit 8e01b66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/handlers/generic/mutation/handlers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func MetaMutators(mgr manager.Manager) []mutation.MetaMutator {
3535
// Some patches may have changed containerd configuration.
3636
// We must restart containerd for the configuration to take effect.
3737
// Therefore, we must apply this patch last.
38+
//
39+
// Containerd restart and readiness altogether could take ~5s.
40+
// We want to keep patch independent of each other and not share any state.
41+
// Therefore, We must always apply this patch regardless any other patch modified containerd configuration.
3842
containerdrestart.NewPatch(),
3943
}
4044
}

0 commit comments

Comments
 (0)