sigs.k8s.io/cluster-api@v1.7.1/internal/runtime/test/v1alpha1/groupversion_info.go (about)

     1  /*
     2  Copyright 2022 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package v1alpha1
    18  
    19  import (
    20  	"k8s.io/apimachinery/pkg/runtime/schema"
    21  
    22  	runtimecatalog "sigs.k8s.io/cluster-api/exp/runtime/catalog"
    23  )
    24  
    25  var (
    26  	// GroupVersion is the group version identifying test RuntimeHooks defined in this package
    27  	// and their request and response types.
    28  	GroupVersion = schema.GroupVersion{Group: "test.runtime.cluster.x-k8s.io", Version: "v1alpha1"}
    29  
    30  	// catalogBuilder is used to add RuntimeHooks and their request and response types
    31  	// to a Catalog.
    32  	catalogBuilder = &runtimecatalog.Builder{GroupVersion: GroupVersion}
    33  
    34  	// AddToCatalog adds test RuntimeHooks defined in this package and their request and
    35  	// response types to a catalog.
    36  	AddToCatalog = catalogBuilder.AddToCatalog
    37  
    38  	// localSchemeBuilder provide access to the SchemeBuilder used for managing RuntimeHooks
    39  	// and their request and response types defined in this package.
    40  	// NOTE: The localSchemeBuilder is required to allow registration of automatically generated
    41  	// conversion funcs.
    42  	localSchemeBuilder = catalogBuilder
    43  )