Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion internal/controller/function_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ func (r *FunctionReconciler) deploy(ctx context.Context, function *v1alpha1.Func
Registry: function.Spec.Registry.Path,
InsecureRegistry: function.Spec.Registry.Insecure,
GitUrl: function.Spec.Source.RepositoryURL,
Builder: "s2i",
}

if function.Spec.Registry.AuthSecretRef != nil && function.Spec.Registry.AuthSecretRef.Name != "" {
Expand Down
1 change: 0 additions & 1 deletion internal/controller/function_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ var _ = Describe("Function Controller", func() {
funcMock.EXPECT().Deploy(mock.Anything, mock.Anything, resourceNamespace, funccli.DeployOptions{
Registry: "quay.io/foo/bar",
GitUrl: "https://github.com/foo/bar",
Builder: "s2i",
}).Return(nil)

gitMock.EXPECT().CloneRepository(mock.Anything, "https://github.com/foo/bar", "my-branch", mock.Anything).Return(createTmpGitRepo(functions.Function{Name: "func-go"}), nil)
Expand Down
3 changes: 0 additions & 3 deletions internal/funccli/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ type DeployOptions struct {
RegistryAuthFile string

GitUrl string

Builder string
}

var _ Manager = &managerImpl{}
Expand Down Expand Up @@ -218,7 +216,6 @@ func (m *managerImpl) Deploy(ctx context.Context, repoPath string, namespace str
"--namespace", namespace,
"--registry", opts.Registry,
"--git-url", opts.GitUrl,
"--builder", opts.Builder,
}

if opts.RegistryAuthFile != "" {
Expand Down
Loading