Matches ctl version to upstream
This commit is contained in:
27
clitools/pkg/scheme/v1alpha1.go
Normal file
27
clitools/pkg/scheme/v1alpha1.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package scheme
|
||||
|
||||
import (
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "undecided.project/monok8s/pkg/apis/monok8s/v1alpha1"
|
||||
)
|
||||
|
||||
var (
|
||||
GroupVersion = schema.GroupVersion{
|
||||
Group: "monok8s.io",
|
||||
Version: "v1alpha1",
|
||||
}
|
||||
)
|
||||
|
||||
func AddToScheme(s *runtime.Scheme) error {
|
||||
s.AddKnownTypes(GroupVersion,
|
||||
&types.MonoKSConfig{},
|
||||
)
|
||||
|
||||
// Required for meta stuff
|
||||
metav1.AddToGroupVersion(s, GroupVersion)
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user