webhook

package
v0.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

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

Reconcile creates or updates the webhook-secret ExternalSecret for resolved's GitHubEvent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL