Skip to content

Commit

Permalink
Correct message
Browse files Browse the repository at this point in the history
  • Loading branch information
MeenuyD committed Nov 1, 2023
1 parent fd30e49 commit a7418fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/kn/commands/channel/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NewChannelCreateCommand(p *commands.KnParams) *cobra.Command {
kn channel create imc1 --type messaging.knative.dev:v1:InMemoryChannel
# Create a channel 'k1' of type KafkaChannel
kn channel create k1 --type messaging.knative.dev:v1alpha1:KafkaChannel`,
kn channel create k1 --type messaging.knative.dev:v1beta1:KafkaChannel`,

RunE: func(cmd *cobra.Command, args []string) (err error) {
if len(args) != 1 {
Expand Down
3 changes: 1 addition & 2 deletions pkg/kn/commands/subscription/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"knative.dev/client/pkg/kn/commands"
"knative.dev/client/pkg/kn/commands/flags"
knflags "knative.dev/client/pkg/kn/flags"
knmessagingv1 "knative.dev/client/pkg/messaging/v1"
)

// NewSubscriptionCreateCommand to create event subscriptions
Expand All @@ -44,7 +43,7 @@ func NewSubscriptionCreateCommand(p *commands.KnParams) *cobra.Command {
kn subscription create sub0 --channel imcv1beta1:pipe0 --sink ksvc:receiver
# Create a subscription 'sub1' from KafkaChannel 'k1' to ksvc 'mirror', reply to a broker 'nest' and DeadLetterSink to a ksvc 'bucket'
kn subscription create sub1 --channel messaging.knative.dev:v1alpha1:KafkaChannel:k1 --sink mirror --sink-reply broker:nest --sink-dead-letter bucket`,
kn subscription create sub1 --channel messaging.knative.dev:v1beta1:KafkaChannel:k1 --sink mirror --sink-reply broker:nest --sink-dead-letter bucket`,

RunE: func(cmd *cobra.Command, args []string) (err error) {
if len(args) != 1 {
Expand Down

0 comments on commit a7418fd

Please sign in to comment.