/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/openshift/api/console/install.go
26 строк
610 B
Vu Dinh
bump(k8s): update k8s to 1.30.1
05 июн 2024, 13:50
Не верифицирован
05 июн 2024, 13:50
70a69d6
Код
Авторство
О чём код?
package console import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" consolev1 "github.com/openshift/api/console/v1" ) const ( GroupName = "console.openshift.io" ) var ( schemeBuilder = runtime.NewSchemeBuilder(consolev1.Install) // Install is a function which adds every version of this group to a scheme Install = schemeBuilder.AddToScheme ) func Resource(resource string) schema.GroupResource { return schema.GroupResource{Group: GroupName, Resource: resource} } func Kind(kind string) schema.GroupKind { return schema.GroupKind{Group: GroupName, Kind: kind} }