Skip to content

Commit

Permalink
chore: Adapting to upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Dec 10, 2019
1 parent fe3ff8a commit 6b517f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/kn/commands/source/apiserver/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func NewApiServerCreateCommand(p *commands.KnParams) *cobra.Command {
}

// resolve sink
servingClient, err := p.NewClient(namespace)
servingClient, err := p.NewServingClient(namespace)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kn/commands/source/cronjob/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewCronJobCreateCommand(p *commands.KnParams) *cobra.Command {
return err
}

servingClient, err := p.NewClient(cronSourceClient.namespace)
servingClient, err := p.NewServingClient(cronSourceClient.namespace)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kn/commands/source/cronjob/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewCronJobUpdateCommand(p *commands.KnParams) *cobra.Command {
return err
}

servingClient, err := p.NewClient(cronSourceClient.namespace)
servingClient, err := p.NewServingClient(cronSourceClient.namespace)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kn/commands/testing_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func CreateSourcesTestKnCommand(cmd *cobra.Command, knParams *KnParams) (*cobra.
buf := new(bytes.Buffer)
// create fake serving client because the sink of source depends on serving client
fakeServing := &fake.FakeServingV1alpha1{&client_testing.Fake{}}
knParams.NewClient = func(namespace string) (v1alpha1.KnServingClient, error) {
knParams.NewServingClient = func(namespace string) (v1alpha1.KnServingClient, error) {
return v1alpha1.NewKnServingClient(fakeServing, FakeNamespace), nil
}
// create fake sources client
Expand Down

0 comments on commit 6b517f8

Please sign in to comment.