56 lines
2.7 KiB
Go
56 lines
2.7 KiB
Go
package cluster
|
|
|
|
import "context"
|
|
|
|
// TestHookStartupRequiredNodes runs one orchestration or CLI step.
|
|
// Signature: TestHookStartupRequiredNodes(nodes []string, required []string) []string.
|
|
// Why: exposes recovery-scope node filtering so top-level tests can cover core-only startup narrowing.
|
|
func TestHookStartupRequiredNodes(nodes []string, required []string) []string {
|
|
return startupRequiredNodes(nodes, required)
|
|
}
|
|
|
|
// TestHookContainsNode runs one orchestration or CLI step.
|
|
// Signature: TestHookContainsNode(entries []string, needle string) bool.
|
|
// Why: exposes the small startup-scope membership helper to top-level tests.
|
|
func TestHookContainsNode(entries []string, needle string) bool {
|
|
return containsNode(entries, needle)
|
|
}
|
|
|
|
// TestHookStartupNodeStrictlyRequired runs one orchestration or CLI step.
|
|
// Signature: (o *Orchestrator) TestHookStartupNodeStrictlyRequired(node string) bool.
|
|
// Why: exposes strict-node startup scoping so outage-recovery tests can confirm
|
|
// non-core nodes stop blocking bootstrap.
|
|
func (o *Orchestrator) TestHookStartupNodeStrictlyRequired(node string) bool {
|
|
return o.startupNodeStrictlyRequired(node)
|
|
}
|
|
|
|
// TestHookStartupRequiredFluxKustomizations runs one orchestration or CLI step.
|
|
// Signature: (o *Orchestrator) TestHookStartupRequiredFluxKustomizations() map[string]struct{}.
|
|
// Why: exposes flux startup scoping so top-level tests can confirm only core
|
|
// kustomizations block emergency bootstrap.
|
|
func (o *Orchestrator) TestHookStartupRequiredFluxKustomizations() map[string]struct{} {
|
|
return o.startupRequiredFluxKustomizations()
|
|
}
|
|
|
|
// TestHookStartupRequiredWorkloadNamespaces runs one orchestration or CLI step.
|
|
// Signature: (o *Orchestrator) TestHookStartupRequiredWorkloadNamespaces() map[string]struct{}.
|
|
// Why: exposes workload namespace startup scoping so top-level tests can
|
|
// confirm only core workloads block emergency bootstrap.
|
|
func (o *Orchestrator) TestHookStartupRequiredWorkloadNamespaces() map[string]struct{} {
|
|
return o.startupRequiredWorkloadNamespaces()
|
|
}
|
|
|
|
// TestHookMaybeRunEarlyVaultUnseal runs one orchestration or CLI step.
|
|
// Signature: (o *Orchestrator) TestHookMaybeRunEarlyVaultUnseal(ctx context.Context).
|
|
// Why: exposes the early startup Vault deferral helper to top-level tests.
|
|
func (o *Orchestrator) TestHookMaybeRunEarlyVaultUnseal(ctx context.Context) {
|
|
o.maybeRunEarlyVaultUnseal(ctx)
|
|
}
|
|
|
|
// TestHookRunStartupVaultUnsealGate runs one orchestration or CLI step.
|
|
// Signature: (o *Orchestrator) TestHookRunStartupVaultUnsealGate(ctx context.Context) error.
|
|
// Why: exposes the startup Vault gate helper to top-level tests.
|
|
func (o *Orchestrator) TestHookRunStartupVaultUnsealGate(ctx context.Context) error {
|
|
return o.runStartupVaultUnsealGate(ctx)
|
|
}
|