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

Commit

Permalink
fix: add comment for always add containerd patch
Browse files Browse the repository at this point in the history
  • Loading branch information
supershal committed Apr 2, 2024
1 parent 17ce0a8 commit 8e01b66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/handlers/generic/mutation/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ func MetaMutators(mgr manager.Manager) []mutation.MetaMutator {
// Some patches may have changed containerd configuration.
// We must restart containerd for the configuration to take effect.
// Therefore, we must apply this patch last.
//
// Containerd restart and readiness altogether could take ~5s.
// We want to keep patch independent of each other and not share any state.
// Therefore, We must always apply this patch regardless any other patch modified containerd configuration.
containerdrestart.NewPatch(),
}
}

0 comments on commit 8e01b66

Please sign in to comment.