Skip to content

Commit b377301

Browse files
committed
fixup! feat: Add preflight checks framework
Make Init godoc more clear
1 parent 438495b commit b377301

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/webhook/preflight/preflight.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ type Checker interface {
3737
// with common dependencies, such as an infrastructure client. Finally, it returns the initialized checks,
3838
// ready to be run.
3939
//
40-
// Init should not store the context `ctx`, because each check will accept its own context.
41-
// Checks may use both the client and the cluster.
40+
// Init can store the client and cluster, but not the context, because each check will accept its own context.
4241
Init(ctx context.Context, client ctrlclient.Client, cluster *clusterv1.Cluster) []Check
4342
}
4443

0 commit comments

Comments
 (0)