From c2218da87b06c5e64a006c236ce8be344f63b6e9 Mon Sep 17 00:00:00 2001 From: Navid Shaikh Date: Thu, 10 Sep 2020 15:26:51 +0530 Subject: [PATCH] Fix channel create example with inbuilt alias for imcv1beta1 (#1005) use `imcv1beta1` alias reference in the example --- docs/cmd/kn_channel_create.md | 4 ++-- pkg/kn/commands/channel/create.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/cmd/kn_channel_create.md b/docs/cmd/kn_channel_create.md index c709efe7be..f22febe4f7 100644 --- a/docs/cmd/kn_channel_create.md +++ b/docs/cmd/kn_channel_create.md @@ -17,8 +17,8 @@ kn channel create NAME # Create a channel 'pipe' with default setting for channel configuration kn channel create pipe - # Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imc' - kn channel create imc1 --type imc + # Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imcv1beta1' + kn channel create imc1 --type imcv1beta1 # same as above without using inbuilt alias but providing explicit GVK kn channel create imc1 --type messaging.knative.dev:v1beta1:InMemoryChannel diff --git a/pkg/kn/commands/channel/create.go b/pkg/kn/commands/channel/create.go index 145c9b8f4c..8f5e2251e6 100644 --- a/pkg/kn/commands/channel/create.go +++ b/pkg/kn/commands/channel/create.go @@ -36,8 +36,8 @@ func NewChannelCreateCommand(p *commands.KnParams) *cobra.Command { # Create a channel 'pipe' with default setting for channel configuration kn channel create pipe - # Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imc' - kn channel create imc1 --type imc + # Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imcv1beta1' + kn channel create imc1 --type imcv1beta1 # same as above without using inbuilt alias but providing explicit GVK kn channel create imc1 --type messaging.knative.dev:v1beta1:InMemoryChannel