Files
kubesphere/pkg/apis/network/crdinstall/install.go
runzexia f8d3b22750 add network crd doc gen
Signed-off-by: runzexia <runzexia@yunify.com>
2019-07-31 11:48:48 +08:00

13 lines
377 B
Go

package crdinstall
import (
k8sruntime "k8s.io/apimachinery/pkg/runtime"
urlruntime "k8s.io/apimachinery/pkg/util/runtime"
networkv1alpha1 "kubesphere.io/kubesphere/pkg/apis/network/v1alpha1"
)
func Install(scheme *k8sruntime.Scheme) {
urlruntime.Must(networkv1alpha1.AddToScheme(scheme))
urlruntime.Must(scheme.SetVersionPriority(networkv1alpha1.SchemeGroupVersion))
}