Compare commits
No commits in common. "main" and "v1.3.3" have entirely different histories.
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: "test"
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
image: harbor.front.kjuulh.io/docker-proxy/library/bash:latest
|
|
||||||
commands:
|
|
||||||
- echo 'Run tests'
|
|
16
manager.go
16
manager.go
@ -34,10 +34,15 @@ func NewManager() *Manager {
|
|||||||
type ComponentsAreReady struct {
|
type ComponentsAreReady struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type CleanupFunc func(ctx context.Context) error
|
func (m *Manager) RunNonBlocking(ctx context.Context, readyChan chan ComponentsAreReady) error {
|
||||||
|
|
||||||
func (m *Manager) RunNonBlocking(ctx context.Context, readyChan chan ComponentsAreReady) (CleanupFunc, error) {
|
|
||||||
go func() error {
|
go func() error {
|
||||||
|
defer func() {
|
||||||
|
ctx, _ := context.WithTimeout(context.Background(), time.Second*5)
|
||||||
|
err := m.shutdown(ctx)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
m.initLifetime()
|
m.initLifetime()
|
||||||
err := m.init(ctx)
|
err := m.init(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -58,10 +63,7 @@ func (m *Manager) RunNonBlocking(ctx context.Context, readyChan chan ComponentsA
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}()
|
}()
|
||||||
|
return nil
|
||||||
return func(ctx context.Context) error {
|
|
||||||
return m.shutdown(ctx)
|
|
||||||
}, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Manager) Run(ctx context.Context) error {
|
func (m *Manager) Run(ctx context.Context) error {
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user