2020-08-05 20:58:03 +00:00
|
|
|
/*
|
|
|
|
Copyright 2020 VMware, Inc.
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
package install
|
|
|
|
|
|
|
|
import (
|
|
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
|
|
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
|
|
|
|
2020-08-20 17:54:15 +00:00
|
|
|
"github.com/suzerain-io/pinniped/kubernetes/1.19/api/apis/pinniped"
|
|
|
|
"github.com/suzerain-io/pinniped/kubernetes/1.19/api/apis/pinniped/v1alpha1"
|
2020-08-05 20:58:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Install registers the API group and adds types to a scheme.
|
|
|
|
func Install(scheme *runtime.Scheme) {
|
2020-08-20 17:54:15 +00:00
|
|
|
utilruntime.Must(pinniped.AddToScheme(scheme))
|
2020-08-05 20:58:03 +00:00
|
|
|
utilruntime.Must(v1alpha1.AddToScheme(scheme))
|
|
|
|
utilruntime.Must(scheme.SetVersionPriority(v1alpha1.SchemeGroupVersion))
|
|
|
|
}
|