hookurl

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: 10 Imported by: 0

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

View Source
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

func HookURLSecretName(repoName string) string

HookURLSecretName returns the per-repository hookurl Secret name.

Types

type HookURLSecretReconciler

type HookURLSecretReconciler struct {
	Client client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

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

Delete removes repo's hookurl Secret, if it exists.

func (*HookURLSecretReconciler) Reconcile

Reconcile creates or updates the hookurl Secret for resolved's repository from its contract-declared hookUrl.

Jump to

Keyboard shortcuts

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