mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-09 00:09:43 +00:00
22 lines
355 B
Go
22 lines
355 B
Go
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)
|
|
}
|