Skip to content

Commit

Permalink
controllers: move apply code into the reconciler (#4687)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks committed Jun 25, 2021
1 parent 667a9e9 commit c1da0e1
Show file tree
Hide file tree
Showing 15 changed files with 326 additions and 221 deletions.
7 changes: 6 additions & 1 deletion internal/build/docker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ type dockerImageBuilder struct {
extraLabels dockerfile.Labels
}

type DockerBuilder interface {
// Describes how a docker instance connects to kubernetes instances.
type DockerKubeConnection interface {
// Returns whether this docker builder is going to build to the given kubernetes context.
WillBuildToKubeContext(kctx k8s.KubeContext) bool
}

type DockerBuilder interface {
DockerKubeConnection

BuildImage(ctx context.Context, ps *PipelineState, refs container.RefSet, db model.DockerBuild, filter model.PathMatcher) (container.TaggedRefs, error)
DumpImageDeployRef(ctx context.Context, ref string) (reference.NamedTagged, error)
Expand Down
72 changes: 42 additions & 30 deletions internal/cli/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1da0e1

Please sign in to comment.