Skip to content

Commit 5bacd9a

Browse files
clarify comments of GenerationChangedPredicate
1 parent 219b19c commit 5bacd9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/predicate/predicate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ type GenerationChangedPredicate = TypedGenerationChangedPredicate[client.Object]
191191
// The metadata.generation field of an object is incremented by the API server when writes are made to the spec field of an object.
192192
// This allows a controller to ignore update events where the spec is unchanged, and only the metadata and/or status fields are changed.
193193
//
194-
// For CustomResource objects the Generation is only incremented when the status subresource is enabled.
194+
// For CustomResource objects the Generation is only incremented when the status subresource is not enabled.
195195
//
196196
// Caveats:
197197
//

0 commit comments

Comments
 (0)