We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43a9436 commit 532d739Copy full SHA for 532d739
pkg/controller/openmcp.go
@@ -0,0 +1,17 @@
1
+package controller
2
+
3
+import "sigs.k8s.io/controller-runtime/pkg/client"
4
5
+////////////////////
6
+// STATUS UPDATER //
7
8
9
+// NewOpenMCPStatusUpdaterBuilder returns a StatusUpdaterBuilder that expects only ObservedGeneration, Conditions, and Phase as status fields.
10
+// It does not include LastReconcileTime, Reason, or Message.
11
+func NewOpenMCPStatusUpdaterBuilder[Obj client.Object]() *StatusUpdaterBuilder[Obj] {
12
+ return NewStatusUpdaterBuilder[Obj]().WithoutFields(
13
+ STATUS_FIELD_LAST_RECONCILE_TIME,
14
+ STATUS_FIELD_REASON,
15
+ STATUS_FIELD_MESSAGE,
16
+ )
17
+}
0 commit comments