Skip to content

Commit

Permalink
Add vmpool to virt-controller scheme so event recorder will work corr…
Browse files Browse the repository at this point in the history
…ectly

Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Dec 15, 2021
1 parent 4beef45 commit 29487f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/virt-controller/watch/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import (
"kubevirt.io/kubevirt/pkg/healthz"
"kubevirt.io/kubevirt/pkg/monitoring/profiler"

poolv1 "kubevirt.io/api/pool/v1alpha1"
snapshotv1 "kubevirt.io/api/snapshot/v1alpha1"
"kubevirt.io/client-go/kubecli"
"kubevirt.io/client-go/log"
Expand Down Expand Up @@ -233,6 +234,7 @@ var _ service.Service = &VirtControllerApp{}
func init() {
vsv1beta1.AddToScheme(scheme.Scheme)
snapshotv1.AddToScheme(scheme.Scheme)
poolv1.AddToScheme(scheme.Scheme)

prometheus.MustRegister(leaderGauge)
prometheus.MustRegister(readyGauge)
Expand Down

0 comments on commit 29487f1

Please sign in to comment.