Documentation
¶
Overview ¶
Package startupgate provides a readiness check that succeeds once every node-applicable artifact CR has been locally reconciled.
Index ¶
Constants ¶
View Source
const ( KindPlugin = "Plugin" KindRulesfile = "Rulesfile" KindConfig = "Config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGateCall ¶
type FakeGateRecorder ¶
type FakeGateRecorder struct {
Reconciled []FakeGateCall
Forgotten []FakeGateCall
}
FakeGateRecorder captures Recorder calls.
func (*FakeGateRecorder) Forget ¶
func (r *FakeGateRecorder) Forget(kind, namespace, name string)
func (*FakeGateRecorder) MarkReconciled ¶
func (r *FakeGateRecorder) MarkReconciled(kind, namespace, name string, generation int64)
type Gate ¶
type Gate struct {
// contains filtered or unexported fields
}
Gate tracks node-applicable artifact CRs and reports readiness when each has been locally reconciled at least once.
func (*Gate) MarkCacheSynced ¶
MarkCacheSynced caches the node labels and builds the startup snapshot.
func (*Gate) MarkReconciled ¶
MarkReconciled records that the CR was reconciled at the given generation.
type NoopGateRecorder ¶
type NoopGateRecorder struct{}
NoopGateRecorder is a Recorder that ignores every call.
func (NoopGateRecorder) MarkReconciled ¶
func (NoopGateRecorder) MarkReconciled(string, string, string, int64)
Click to show internal directories.
Click to hide internal directories.