mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-17 00:23:52 +00:00
manage status
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user