Help us shape the future of Go! Take the 2026 Go Developer Survey

testhelpers

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestSylvaUnitsRelease

func CreateTestSylvaUnitsRelease() *surv1alpha1.SylvaUnitsRelease

Types

type MockFluxReconciler added in v1.1.5

type MockFluxReconciler struct {
	client.Client

	KustomizationReadyGate map[string]bool // Controls which kustomizations can become ready
}

MockFluxReconciler simulates Flux controller behavior for integration tests

func NewMockFluxReconciler added in v1.1.5

func NewMockFluxReconciler(client client.Client) *MockFluxReconciler

NewMockFluxReconciler creates a new mock Flux controller

func (*MockFluxReconciler) AllowKustomizationReady added in v1.1.5

func (r *MockFluxReconciler) AllowKustomizationReady(namespacedName string)

AllowKustomizationReady allows a specific kustomization to become ready

func (*MockFluxReconciler) BlockKustomizationReady added in v1.1.5

func (r *MockFluxReconciler) BlockKustomizationReady(namespacedName string)

BlockKustomizationReady blocks a specific kustomization from becoming ready

func (*MockFluxReconciler) IsKustomizationAllowedReady added in v1.1.5

func (r *MockFluxReconciler) IsKustomizationAllowedReady(namespacedName string) bool

IsKustomizationAllowedReady checks if a kustomization is allowed to become ready

func (*MockFluxReconciler) SetupGitRepoWithManager added in v1.1.5

func (r *MockFluxReconciler) SetupGitRepoWithManager(mgr ctrl.Manager) error

SetupGitRepoWithManager configures the mock controller with the manager

func (*MockFluxReconciler) SetupHelmReleaseWithManager added in v1.1.5

func (r *MockFluxReconciler) SetupHelmReleaseWithManager(mgr ctrl.Manager) error

SetupHelmReleaseWithManager configures the mock controller for HelmRelease

func (*MockFluxReconciler) SetupKustomizationWithManager added in v1.1.5

func (r *MockFluxReconciler) SetupKustomizationWithManager(mgr ctrl.Manager) error

SetupKustomizationWithManager configures the mock controller for Kustomization

func (*MockFluxReconciler) SetupOCIRepoWithManager added in v1.1.5

func (r *MockFluxReconciler) SetupOCIRepoWithManager(mgr ctrl.Manager) error

SetupOCIRepoWithManager configures the mock controller for OCIRepository

type MockGitRepoReconciler added in v1.1.5

type MockGitRepoReconciler struct {
	MockFluxReconciler
}

MockGitRepoReconciler simulates behavior for GitRepository

func (*MockGitRepoReconciler) Reconcile added in v1.1.5

func (r *MockGitRepoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile simulates source-controller behavior for GitRepository

type MockHelmReleaseReconciler added in v1.1.5

type MockHelmReleaseReconciler struct {
	MockFluxReconciler
}

MockHelmReleaseReconciler simulates behavior for HelmRelease

func (*MockHelmReleaseReconciler) Reconcile added in v1.1.5

type MockKustomizationReconciler added in v1.1.5

type MockKustomizationReconciler struct {
	MockFluxReconciler
}

MockKustomizationReconciler simulates behavior for Kustomization

func (*MockKustomizationReconciler) Reconcile added in v1.1.5

type MockOCIRepoReconciler added in v1.1.5

type MockOCIRepoReconciler struct {
	MockFluxReconciler
}

MockOCIRepoReconciler simulates behavior for OCIRepository

func (*MockOCIRepoReconciler) Reconcile added in v1.1.5

func (r *MockOCIRepoReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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