Skip to content

Commit b5d3baa

Browse files
committed
Remove hardcoded s2i builder
1 parent 197ca80 commit b5d3baa

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

internal/controller/function_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ func (r *FunctionReconciler) deploy(ctx context.Context, function *v1alpha1.Func
383383
Registry: function.Spec.Registry.Path,
384384
InsecureRegistry: function.Spec.Registry.Insecure,
385385
GitUrl: function.Spec.Source.RepositoryURL,
386-
Builder: "s2i",
387386
}
388387

389388
if function.Spec.Registry.AuthSecretRef != nil && function.Spec.Registry.AuthSecretRef.Name != "" {

internal/controller/function_controller_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ var _ = Describe("Function Controller", func() {
118118
funcMock.EXPECT().Deploy(mock.Anything, mock.Anything, resourceNamespace, funccli.DeployOptions{
119119
Registry: "quay.io/foo/bar",
120120
GitUrl: "https://github.com/foo/bar",
121-
Builder: "s2i",
122121
}).Return(nil)
123122

124123
gitMock.EXPECT().CloneRepository(mock.Anything, "https://github.com/foo/bar", "my-branch", mock.Anything).Return(createTmpGitRepo(functions.Function{Name: "func-go"}), nil)

internal/funccli/manager.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ type DeployOptions struct {
4343
RegistryAuthFile string
4444

4545
GitUrl string
46-
47-
Builder string
4846
}
4947

5048
var _ Manager = &managerImpl{}
@@ -218,7 +216,6 @@ func (m *managerImpl) Deploy(ctx context.Context, repoPath string, namespace str
218216
"--namespace", namespace,
219217
"--registry", opts.Registry,
220218
"--git-url", opts.GitUrl,
221-
"--builder", opts.Builder,
222219
}
223220

224221
if opts.RegistryAuthFile != "" {

0 commit comments

Comments
 (0)