Documentation
¶
Overview ¶
Package webhook reconciles the GitHub webhook secret — the ExternalSecret backing the shared secret GitHub signs webhook deliveries with, scoped to a GitHubEvent resource, and the teardown of both that ExternalSecret and its ESO-materialized Secret when the GitHubEvent is deleted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubWebhookSecretReconciler ¶
type GitHubWebhookSecretReconciler struct {
Client client.Client
Log logr.Logger
StoreName string
StoreKind string
}
GitHubWebhookSecretReconciler converges the ExternalSecret backing the shared secret GitHub signs webhook deliveries with, scoped to a GitHubEvent, and tears it down on GitHubEvent deletion.
func NewGitHubWebhookSecretReconciler ¶
func NewGitHubWebhookSecretReconciler(c client.Client, log logr.Logger, storeName string, storeKind string) *GitHubWebhookSecretReconciler
NewGitHubWebhookSecretReconciler constructs a GitHubWebhookSecretReconciler targeting the given ESO store.
func (*GitHubWebhookSecretReconciler) Delete ¶
func (r *GitHubWebhookSecretReconciler) Delete(ctx context.Context, resolved *githubeventResolution.ResolvedGitHubEvent) error
Delete removes both the ExternalSecret and the Secret ESO materialized from it. See git.BuildGitSSHSecretReconciler.Delete for why the Secret must be deleted explicitly rather than left to the ExternalSecret's ownerReference GC cascade.
func (*GitHubWebhookSecretReconciler) Reconcile ¶
func (r *GitHubWebhookSecretReconciler) Reconcile(ctx context.Context, resolved *githubeventResolution.ResolvedGitHubEvent) error
Reconcile creates or updates the webhook-secret ExternalSecret for resolved's GitHubEvent.