build

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 build reconciles the Build git-ssh clone secret — the ExternalSecret used to clone the Build's source/state repository over SSH, and the teardown of both that ExternalSecret and its ESO-materialized Secret when the Build is deleted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildGitSSHSecretReconciler

type BuildGitSSHSecretReconciler struct {
	Client    client.Client
	Log       logr.Logger
	StoreName string
	StoreKind string
}

BuildGitSSHSecretReconciler converges the ExternalSecret used to clone a Build's source repository over SSH, and tears it down (plus its ESO-materialized Secret) on Build deletion.

func NewBuildGitSSHSecretReconciler

func NewBuildGitSSHSecretReconciler(c client.Client, log logr.Logger, storeName string, storeKind string) *BuildGitSSHSecretReconciler

NewBuildGitSSHSecretReconciler constructs a BuildGitSSHSecretReconciler targeting the given ESO store.

func (*BuildGitSSHSecretReconciler) Delete

Delete removes both the ExternalSecret and the Secret ESO materialized from it. The Secret carries an ownerReference back to the ExternalSecret, so it would eventually be removed by Kubernetes' garbage collector on its own — but that GC cascade runs on its own async reconcile loop and is not bounded by this call returning. A caller that deletes a Build and immediately recreates it (same name, same derived secretName) can lose the race: the new ExternalSecret's target Secret collides with the old Secret still awaiting GC, and ESO refuses to adopt a Secret it doesn't own, leaving the new Build without a working secret until GC catches up and ESO retries. Deleting the Secret directly here closes that window — plain Secrets carry no finalizers, so this delete is synchronous from the API server's perspective.

func (*BuildGitSSHSecretReconciler) Reconcile

Reconcile creates or updates the git-ssh clone ExternalSecret for build's source repository.

Jump to

Keyboard shortcuts

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