feat: Introduce a Generic ResourceReconciler and a generic BaseWorkload to de-duplicate a lot of code

This commit is contained in:
TheiLLeniumStudios
2026-01-05 00:59:57 +01:00
parent c785067a44
commit 5548ce559a
31 changed files with 1491 additions and 1356 deletions
+4 -5
View File
@@ -11,6 +11,7 @@ import (
"time"
"github.com/go-logr/logr"
httputil "github.com/stakater/Reloader/internal/pkg/http"
)
// Payload represents the data sent to the webhook endpoint.
@@ -43,11 +44,9 @@ type Client struct {
// NewClient creates a new webhook client.
func NewClient(url string, log logr.Logger) *Client {
return &Client{
httpClient: &http.Client{
Timeout: 30 * time.Second,
},
url: url,
log: log,
httpClient: httputil.NewDefaultClient(),
url: url,
log: log,
}
}