mirror of https://github.com/knative/client.git
Fix for panic during channel list (#1568)
* Fix for panic during channel list * Added changelog entry
This commit is contained in:
parent
d8670f5762
commit
f6434549da
|
|
@ -16,6 +16,11 @@
|
||||||
[cols="1,10,3", options="header", width="100%"]
|
[cols="1,10,3", options="header", width="100%"]
|
||||||
|===
|
|===
|
||||||
| | Description | PR
|
| | Description | PR
|
||||||
|
|
||||||
|
| 🐛
|
||||||
|
| Fixed panic in `kn channel list`
|
||||||
|
| https://github.com/knative/client/pull/1568[#1568]
|
||||||
|
|
||||||
| 🗑
|
| 🗑
|
||||||
| Remove deprecated Hugo frontmatter generation for docs
|
| Remove deprecated Hugo frontmatter generation for docs
|
||||||
| https://github.com/knative/client/pull/1563[#1563]
|
| https://github.com/knative/client/pull/1563[#1563]
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,14 @@ func printChannel(channel *messagingv1.Channel, options hprinters.PrintOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
name := channel.Name
|
name := channel.Name
|
||||||
ctype := channel.Spec.ChannelTemplate.Kind
|
template := channel.Spec.ChannelTemplate
|
||||||
|
|
||||||
|
var ctype string
|
||||||
|
if template == nil {
|
||||||
|
ctype = ""
|
||||||
|
} else {
|
||||||
|
ctype = template.Kind
|
||||||
|
}
|
||||||
url := ""
|
url := ""
|
||||||
if channel.Status.Address != nil {
|
if channel.Status.Address != nil {
|
||||||
url = channel.Status.Address.URL.String()
|
url = channel.Status.Address.URL.String()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue