Documentation
¶
Overview ¶
Package hookurl reconciles the webhook hook-url secret — a plain Secret (no ESO involvement, since the URL is user-declared on the GitRepository CR rather than sourced from an external store) that exists only because Upjet's RepositoryWebhook consumes the URL via urlSecretRef.
Index ¶
Constants ¶
const HookURLSecretKey = "url"
HookURLSecretKey is the key under which the webhook URL is stored in the reconciled Secret's data.
Variables ¶
This section is empty.
Functions ¶
func HookURLSecretName ¶
HookURLSecretName returns the per-repository hookurl Secret name.
Types ¶
type HookURLSecretReconciler ¶
HookURLSecretReconciler materializes the webhook delivery URL as a plain Secret. The URL's source of truth is spec.contract.hookUrl on the GitRepository CR — user-declared, not store-managed. No ESO involvement: there is no external producer for this value, so an ExternalSecret would reference a key nothing populates. The Secret exists only because Upjet's RepositoryWebhook consumes the URL via urlSecretRef (the Terraform provider marks webhook URLs sensitive; Upjet mechanically converts sensitive fields to secret references).
func NewHookURLSecretReconciler ¶
func NewHookURLSecretReconciler(c client.Client, scheme *runtime.Scheme, log logr.Logger) *HookURLSecretReconciler
NewHookURLSecretReconciler constructs a HookURLSecretReconciler.
func (*HookURLSecretReconciler) Delete ¶
func (r *HookURLSecretReconciler) Delete(ctx context.Context, repo *gitrepoResolution.ResolvedGitRepository) error
Delete removes repo's hookurl Secret, if it exists.
func (*HookURLSecretReconciler) Reconcile ¶
func (r *HookURLSecretReconciler) Reconcile(ctx context.Context, resolved *gitrepoResolution.ResolvedGitRepository) error
Reconcile creates or updates the hookurl Secret for resolved's repository from its contract-declared hookUrl.