/
images_ready.go
49 lines (35 loc) · 1011 Bytes
/
images_ready.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package steps
import (
"context"
ctrlruntimeclient "sigs.k8s.io/controller-runtime/pkg/client"
"github.com/openshift/ci-tools/pkg/api"
)
type imagesReadyStep struct {
links []api.StepLink
}
func (s *imagesReadyStep) Inputs() (api.InputDefinition, error) {
return nil, nil
}
func (*imagesReadyStep) Validate() error { return nil }
func (s *imagesReadyStep) Run(ctx context.Context) error {
return nil
}
func (s *imagesReadyStep) Requires() []api.StepLink {
return s.links
}
func (s *imagesReadyStep) Creates() []api.StepLink {
return []api.StepLink{api.ImagesReadyLink()}
}
func (s *imagesReadyStep) Provides() api.ParameterMap {
return nil
}
func (s *imagesReadyStep) Name() string { return "[images]" }
func (s *imagesReadyStep) Objects() []ctrlruntimeclient.Object {
return nil
}
func (s *imagesReadyStep) Description() string { return "All images are built and tagged into stable" }
func ImagesReadyStep(links []api.StepLink) api.Step {
return &imagesReadyStep{
links: links,
}
}