Skip to content

Commit

Permalink
fix(scheme): must register defaulter funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
prometherion committed Jul 27, 2023
1 parent 0909529 commit f301c9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
appsv1 "k8s.io/kubernetes/pkg/apis/apps/v1"

kamajiv1alpha1 "github.com/clastix/kamaji/api/v1alpha1"
)
Expand All @@ -26,6 +27,7 @@ func NewCmd(scheme *runtime.Scheme) *cobra.Command {

utilruntime.Must(clientgoscheme.AddToScheme(scheme))
utilruntime.Must(kamajiv1alpha1.AddToScheme(scheme))
utilruntime.Must(appsv1.RegisterDefaults(scheme))
},
}
}

0 comments on commit f301c9b

Please sign in to comment.