component-base: enable JSON in example

This used to work and broken when making the JSON backend optional.
This commit is contained in:
Patrick Ohly 2021-09-09 16:38:52 +02:00
parent 047a6b9f86
commit 8b240e284f

View File

@ -25,6 +25,8 @@ import (
"k8s.io/component-base/logs"
"k8s.io/klog/v2"
_ "k8s.io/component-base/logs/json/register"
)
func main() {