Fix channel create example with inbuilt alias for imcv1beta1 (#1005)

use `imcv1beta1` alias reference in the example
This commit is contained in:
Navid Shaikh 2020-09-10 15:26:51 +05:30 committed by GitHub
parent e7b74a9863
commit 78ef3bb3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ kn channel create NAME
# Create a channel 'pipe' with default setting for channel configuration # Create a channel 'pipe' with default setting for channel configuration
kn channel create pipe kn channel create pipe
# Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imc' # Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imcv1beta1'
kn channel create imc1 --type imc kn channel create imc1 --type imcv1beta1
# same as above without using inbuilt alias but providing explicit GVK # same as above without using inbuilt alias but providing explicit GVK
kn channel create imc1 --type messaging.knative.dev:v1beta1:InMemoryChannel kn channel create imc1 --type messaging.knative.dev:v1beta1:InMemoryChannel

View File

@ -36,8 +36,8 @@ func NewChannelCreateCommand(p *commands.KnParams) *cobra.Command {
# Create a channel 'pipe' with default setting for channel configuration # Create a channel 'pipe' with default setting for channel configuration
kn channel create pipe kn channel create pipe
# Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imc' # Create a channel 'imc1' of type InMemoryChannel using inbuilt alias 'imcv1beta1'
kn channel create imc1 --type imc kn channel create imc1 --type imcv1beta1
# same as above without using inbuilt alias but providing explicit GVK # same as above without using inbuilt alias but providing explicit GVK
kn channel create imc1 --type messaging.knative.dev:v1beta1:InMemoryChannel kn channel create imc1 --type messaging.knative.dev:v1beta1:InMemoryChannel