Documentation
¶
Index ¶
- func CreateTestSylvaUnitsRelease() *surv1alpha1.SylvaUnitsRelease
- type MockFluxReconciler
- func (r *MockFluxReconciler) AllowKustomizationReady(namespacedName string)
- func (r *MockFluxReconciler) BlockKustomizationReady(namespacedName string)
- func (r *MockFluxReconciler) IsKustomizationAllowedReady(namespacedName string) bool
- func (r *MockFluxReconciler) SetupGitRepoWithManager(mgr ctrl.Manager) error
- func (r *MockFluxReconciler) SetupHelmReleaseWithManager(mgr ctrl.Manager) error
- func (r *MockFluxReconciler) SetupKustomizationWithManager(mgr ctrl.Manager) error
- func (r *MockFluxReconciler) SetupOCIRepoWithManager(mgr ctrl.Manager) error
- type MockGitRepoReconciler
- type MockHelmReleaseReconciler
- type MockKustomizationReconciler
- type MockOCIRepoReconciler
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
type MockHelmReleaseReconciler ¶ added in v1.1.5
type MockHelmReleaseReconciler struct {
MockFluxReconciler
}
MockHelmReleaseReconciler simulates behavior for HelmRelease
type MockKustomizationReconciler ¶ added in v1.1.5
type MockKustomizationReconciler struct {
MockFluxReconciler
}
MockKustomizationReconciler simulates behavior for Kustomization
type MockOCIRepoReconciler ¶ added in v1.1.5
type MockOCIRepoReconciler struct {
MockFluxReconciler
}
MockOCIRepoReconciler simulates behavior for OCIRepository