Documentation
¶
Index ¶
- type Orkestra
- func (o *Orkestra) AddPostStartHook(comp domain.Komponent, hook func(context.Context))
- func (o *Orkestra) GetKomponent(name string) domain.Komponent
- func (o *Orkestra) OnShutdown(fn func(context.Context))
- func (o *Orkestra) Register(c []domain.Komponent)
- func (o *Orkestra) Shutdown(ctx context.Context)
- func (o *Orkestra) Start(ctx context.Context) error
- func (o *Orkestra) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orkestra ¶
type Orkestra struct {
// contains filtered or unexported fields
}
func NewOrkestra ¶
func (*Orkestra) AddPostStartHook ¶
AddPostStartHook: for services that need to start after Orkestra has started
func (*Orkestra) GetKomponent ¶
GetKomponent returns a komponent if present
func (*Orkestra) OnShutdown ¶
OnShutdown registers a function to be called after all komponents have stopped, within the graceful shutdown timeout.
Use this for cleanup that must happen after the operator stops processing but before the process exits:
- RBAC deletion (security.rbac.cleanupOnShutdown: true)
- Deletion protection webhook removal
- Temp file cleanup (generated TLS certs)
Hooks are called in registration order, sequentially. If the shutdown timeout is exceeded before all hooks run, remaining hooks are skipped — the process is exiting regardless.
Click to show internal directories.
Click to hide internal directories.