manage status

This commit is contained in:
kkb0318
2024-05-07 19:06:51 +09:00
parent e0cd191793
commit 16813de7cd
14 changed files with 138 additions and 101 deletions
+21
View File
@@ -0,0 +1,21 @@
package handler
import (
"context"
"sigs.k8s.io/controller-runtime/pkg/client"
)
type StatusHandler struct {
client StatusClient
}
func NewStatusHandler(c StatusClient) *StatusHandler {
return &StatusHandler{
client: c,
}
}
func (s *StatusHandler) Patch(ctx context.Context, obj client.Object) error {
return s.client.PatchStatus(ctx, obj)
}