resources

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoreV1GroupVersion             = "v1"
	AppsV1GroupVersion             = "apps/v1"
	AppsV1Beta1GroupVersion        = "apps/v1beta1"
	AppsV1Beta2GroupVersion        = "apps/v1beta2"
	ExtensionsV1Beta1GroupVersion  = "extensions/v1beta1"
	AutoScalingV1GroupVersion      = "autoscaling/v1"
	AutoScalingV2Beta1GroupVersion = "autoscaling/v2beta1"
	AutoScalingV2Beta2GroupVersion = "autoscaling/v2beta2"
	StorageV1GroupVersion          = "storage.k8s.io/v1"

	BatchV1GroupVersion                      = "batch/v1"
	BatchV1Beta1GroupVersion                 = "batch/v1beta1"
	RbacV1GroupVersion                       = "rbac.authorization.k8s.io/v1"
	RbacV1Beta1GroupVersion                  = "rbac.authorization.k8s.io/v1beta1"
	AdmissionRegistrationV1Beta1GroupVersion = "admissionregistration.k8s.io/v1beta1"
	ApiExtensionsV1Beta1GroupVersion         = "apiextensions.k8s.io/v1beta1"

	BkbcsGroupName        = "bkbcs.tencent.com"
	MesosV2GroupVersion   = "bkbcs.tencent.com/v2"
	WebhookV1GroupVersion = "bkbcs.tencent.com/v1"

	KubefedTypesV1Beta1GroupVersion            = "types.kubefed.io/v1beta1"
	KubefedCoreV1Alpha1GroupVersion            = "core.kubefed.io/v1alpha1"
	KubefedCoreV1Beta1GroupVersion             = "core.kubefed.io/v1beta1"
	KubefedMultiClusterDnsV1Alpha1GroupVersion = "multiclusterdns.kubefed.io/v1alpha1"
	KubefedSchedulingV1Alpha1GroupVersion      = "scheduling.kubefed.io/v1alpha1"
)

Variables

View Source
var K8sClientList, CrdClientList map[string]rest.Interface
View Source
var WatcherConfigList, BkbcsWatcherConfigList map[string]ResourceObjType

resource list to watch

Functions

func GetRestConfig

func GetRestConfig(k8sConfig *options.K8sConfig) (*rest.Config, error)

GetRestConfig generate rest config

func InitResourceList

func InitResourceList(k8sConfig *options.K8sConfig) error

InitResourceList init resource list to watch

Types

type ResourceObjType

type ResourceObjType struct {
	ResourceName string
	ObjType      runtime.Object
	Client       *rest.Interface
	Namespaced   bool
}

ResourceObjType used for build target watchers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL