mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
695 B
25 lines
695 B
package install
|
|
|
|
import (
|
|
aci "k8s.io/helm/api"
|
|
"k8s.io/kubernetes/pkg/apimachinery/announced"
|
|
"k8s.io/kubernetes/pkg/util/sets"
|
|
)
|
|
|
|
func init() {
|
|
if err := announced.NewGroupMetaFactory(
|
|
&announced.GroupMetaFactoryArgs{
|
|
GroupName: aci.GroupName,
|
|
VersionPreferenceOrder: []string{aci.V1alpha1SchemeGroupVersion.Version},
|
|
ImportPrefix: "k8s.io/helm/api",
|
|
RootScopedKinds: sets.NewString("ThirdPartyResource"),
|
|
AddInternalObjectsToScheme: aci.AddToScheme,
|
|
},
|
|
announced.VersionToSchemeFunc{
|
|
aci.V1alpha1SchemeGroupVersion.Version: aci.V1betaAddToScheme,
|
|
},
|
|
).Announce().RegisterAndEnable(); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|