github.com/operator-framework/operator-lifecycle-manager@v0.30.0/pkg/package-server/apis/operators/install/install.go (about) 1 package install 2 3 import ( 4 "k8s.io/apimachinery/pkg/runtime" 5 utilruntime "k8s.io/apimachinery/pkg/util/runtime" 6 7 "github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators" 8 operatorsv1 "github.com/operator-framework/operator-lifecycle-manager/pkg/package-server/apis/operators/v1" 9 ) 10 11 // Install registers API groups and adds types to a scheme. 12 func Install(scheme *runtime.Scheme) { 13 utilruntime.Must(operators.AddToScheme(scheme)) 14 utilruntime.Must(operatorsv1.AddToScheme(scheme)) 15 utilruntime.Must(scheme.SetVersionPriority(operatorsv1.SchemeGroupVersion)) 16 }