v1beta1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OneXControllerManagerDefaultLockObjectNamespace defines default onex controller manager lock object namespace ("kube-system").
	OneXControllerManagerDefaultLockObjectNamespace string = metav1.NamespaceSystem

	// OneXControllerManagerDefaultLockObjectName defines default onex controller manager lock object name ("onex-controller-manager").
	OneXControllerManagerDefaultLockObjectName = "onex-controller-manager"
)
View Source
const GroupName = "onexcontrollermanager.config.onex.io"

GroupName is the group name use in this package.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs)

	// AddToScheme is a global function that registers this API group & version to a scheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration

func Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration(in *config.ChainControllerConfiguration, out *ChainControllerConfiguration, s conversion.Scope) error

Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration is an autogenerated conversion function.

func Convert_config_GarbageCollectorControllerConfiguration_To_v1beta1_GarbageCollectorControllerConfiguration

func Convert_config_GarbageCollectorControllerConfiguration_To_v1beta1_GarbageCollectorControllerConfiguration(in *config.GarbageCollectorControllerConfiguration, out *GarbageCollectorControllerConfiguration, s conversion.Scope) error

Convert_config_GarbageCollectorControllerConfiguration_To_v1beta1_GarbageCollectorControllerConfiguration is an autogenerated conversion function.

func Convert_config_GenericControllerManagerConfiguration_To_v1beta1_GenericControllerManagerConfiguration

func Convert_config_GenericControllerManagerConfiguration_To_v1beta1_GenericControllerManagerConfiguration(in *config.GenericControllerManagerConfiguration, out *GenericControllerManagerConfiguration, s conversion.Scope) error

Convert_config_GenericControllerManagerConfiguration_To_v1beta1_GenericControllerManagerConfiguration is an autogenerated conversion function.

func Convert_config_GroupResource_To_v1beta1_GroupResource

func Convert_config_GroupResource_To_v1beta1_GroupResource(in *config.GroupResource, out *GroupResource, s conversion.Scope) error

Convert_config_GroupResource_To_v1beta1_GroupResource is an autogenerated conversion function.

func Convert_config_OneXControllerManagerConfiguration_To_v1beta1_OneXControllerManagerConfiguration

func Convert_config_OneXControllerManagerConfiguration_To_v1beta1_OneXControllerManagerConfiguration(in *config.OneXControllerManagerConfiguration, out *OneXControllerManagerConfiguration, s conversion.Scope) error

Convert_config_OneXControllerManagerConfiguration_To_v1beta1_OneXControllerManagerConfiguration is an autogenerated conversion function.

func Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration

func Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration(in *ChainControllerConfiguration, out *config.ChainControllerConfiguration, s conversion.Scope) error

Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration is an autogenerated conversion function.

func Convert_v1beta1_GarbageCollectorControllerConfiguration_To_config_GarbageCollectorControllerConfiguration

func Convert_v1beta1_GarbageCollectorControllerConfiguration_To_config_GarbageCollectorControllerConfiguration(in *GarbageCollectorControllerConfiguration, out *config.GarbageCollectorControllerConfiguration, s conversion.Scope) error

Convert_v1beta1_GarbageCollectorControllerConfiguration_To_config_GarbageCollectorControllerConfiguration is an autogenerated conversion function.

func Convert_v1beta1_GenericControllerManagerConfiguration_To_config_GenericControllerManagerConfiguration

func Convert_v1beta1_GenericControllerManagerConfiguration_To_config_GenericControllerManagerConfiguration(in *GenericControllerManagerConfiguration, out *config.GenericControllerManagerConfiguration, s conversion.Scope) error

Convert_v1beta1_GenericControllerManagerConfiguration_To_config_GenericControllerManagerConfiguration is an autogenerated conversion function.

func Convert_v1beta1_GroupResource_To_config_GroupResource

func Convert_v1beta1_GroupResource_To_config_GroupResource(in *GroupResource, out *config.GroupResource, s conversion.Scope) error

Convert_v1beta1_GroupResource_To_config_GroupResource is an autogenerated conversion function.

func Convert_v1beta1_OneXControllerManagerConfiguration_To_config_OneXControllerManagerConfiguration

func Convert_v1beta1_OneXControllerManagerConfiguration_To_config_OneXControllerManagerConfiguration(in *OneXControllerManagerConfiguration, out *config.OneXControllerManagerConfiguration, s conversion.Scope) error

Convert_v1beta1_OneXControllerManagerConfiguration_To_config_OneXControllerManagerConfiguration is an autogenerated conversion function.

func RecommendedDefaultChainControllerConfiguration

func RecommendedDefaultChainControllerConfiguration(obj *ChainControllerConfiguration)

func RecommendedDefaultGarbageCollectorControllerConfiguration

func RecommendedDefaultGarbageCollectorControllerConfiguration(obj *GarbageCollectorControllerConfiguration)

RecommendedDefaultGarbageCollectorControllerConfiguration defaults a pointer to a GarbageCollectorControllerConfiguration struct. This will set the recommended default values, but they may be subject to change between API versions. This function is intentionally not registered in the scheme as a "normal" `SetDefaults_Foo` function to allow consumers of this type to set whatever defaults for their embedded configs. Forcing consumers to use these defaults would be problematic as defaulting in the scheme is done as part of the conversion, and there would be no easy way to opt-out. Instead, if you want to use this defaulting method run it in your wrapper struct of this type in its `SetDefaults_` method.

func RecommendedDefaultGenericControllerManagerConfiguration

func RecommendedDefaultGenericControllerManagerConfiguration(obj *GenericControllerManagerConfiguration)

RecommendedDefaultGenericControllerManagerConfiguration defaults a pointer to a GenericControllerManagerConfiguration struct. This will set the recommended default values, but they may be subject to change between API versions. This function is intentionally not registered in the scheme as a "normal" `SetDefaults_Foo` function to allow consumers of this type to set whatever defaults for their embedded configs. Forcing consumers to use these defaults would be problematic as defaulting in the scheme is done as part of the conversion, and there would be no easy way to opt-out. Instead, if you want to use this defaulting method run it in your wrapper struct of this type in its `SetDefaults_` method.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_OneXControllerManagerConfiguration

func SetDefaults_OneXControllerManagerConfiguration(obj *OneXControllerManagerConfiguration)

func SetObjectDefaults_OneXControllerManagerConfiguration

func SetObjectDefaults_OneXControllerManagerConfiguration(in *OneXControllerManagerConfiguration)

Types

type ChainControllerConfiguration

type ChainControllerConfiguration struct {
	// Image specify the blockchain node image.
	Image string `json:"image,omitempty"`
}

func (*ChainControllerConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChainControllerConfiguration.

func (*ChainControllerConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GarbageCollectorControllerConfiguration

type GarbageCollectorControllerConfiguration struct {
	// enables the generic garbage collector. MUST be synced with the
	// corresponding flag of the kube-apiserver. WARNING: the generic garbage
	// collector is an alpha feature.
	EnableGarbageCollector *bool `json:"enableGarbageCollector,omitempty"`
	// concurrentGCSyncs is the number of garbage collector workers that are
	// allowed to sync concurrently.
	ConcurrentGCSyncs int32 `json:"concurrentGCSyncs,omitempty"`
	// gcIgnoredResources is the list of GroupResources that garbage collection should ignore.
	GCIgnoredResources []GroupResource `json:"gcIgnoredResources,omitempty"`
}

GarbageCollectorControllerConfiguration contains elements describing GarbageCollectorController.

func (*GarbageCollectorControllerConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GarbageCollectorControllerConfiguration.

func (*GarbageCollectorControllerConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GenericControllerManagerConfiguration

type GenericControllerManagerConfiguration struct {
	// MySQL defines the configuration of mysql client.
	MySQL genericconfigv1beta1.MySQLConfiguration `json:"mysql,omitempty"`

	// leaderElection defines the configuration of leader election client.
	LeaderElection componentbaseconfigv1alpha1.LeaderElectionConfiguration `json:"leaderElection,omitempty"`

	// Namespace that the controller watches to reconcile onex-apiserver objects.
	Namespace string `json:"namespace,omitempty"`

	// bindAddress is the IP address for the proxy server to serve on (set to 0.0.0.0
	// for all interfaces)
	BindAddress string `json:"bindAddress,omitempty"`

	// MetricsBindAddress is the IP address and port for the metrics server to serve on,
	// defaulting to 127.0.0.1:20249 (set to 0.0.0.0 for all interfaces)
	MetricsBindAddress string `json:"metricsBindAddress,omitempty"`

	// HealthzBindAddress is the IP address and port for the health check server to serve on,
	// defaulting to 0.0.0.0:20250
	HealthzBindAddress string `json:"healthzBindAddress,omitempty"`

	// PprofBindAddress is the TCP address that the controller should bind to
	// for serving pprof.
	// It can be set to "" or "0" to disable the pprof serving.
	// Since pprof may contain sensitive information, make sure to protect it
	// before exposing it to public.
	PprofBindAddress string `json:"pprofBindAddress,omitempty"`

	// Parallelism defines the amount of parallelism to process miners. Must be greater than 0. Defaults to 16
	Parallelism int32 `json:"parallelism,omitempty"`

	// SyncPeriod determines the minimum frequency at which watched resources are
	// reconciled. A lower period will correct entropy more quickly, but reduce
	// responsiveness to change if there are many watched resources. Change this
	// value only if you know what you are doing. Defaults to 10 hours if unset.
	SyncPeriod metav1.Duration `json:"syncPeriod,omitempty"`

	// Label value that the controller watches to reconcile cloud miner objects
	WatchFilterValue string `json:"watchFilterValue,omitempty"`
}

GenericControllerManagerConfiguration holds configuration for a generic controller-manager.

func (*GenericControllerManagerConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericControllerManagerConfiguration.

func (*GenericControllerManagerConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GroupResource

type GroupResource struct {
	// group is the group portion of the GroupResource.
	Group string `json:"group,omitempty"`
	// resource is the resource portion of the GroupResource.
	Resource string `json:"resource,omitempty"`
}

GroupResource describes an group resource.

func (*GroupResource) DeepCopy

func (in *GroupResource) DeepCopy() *GroupResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResource.

func (*GroupResource) DeepCopyInto

func (in *GroupResource) DeepCopyInto(out *GroupResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OneXControllerManagerConfiguration

type OneXControllerManagerConfiguration struct {
	metav1.TypeMeta `json:",inline"`

	// FeatureGates is a map of feature names to bools that enable or disable alpha/experimental features.
	FeatureGates map[string]bool `json:"featureGates,omitempty"`

	// Generic holds configuration for a generic controller-manager
	Generic GenericControllerManagerConfiguration `json:"generic,omitempty"`

	// GarbageCollectorControllerConfiguration holds configuration for
	// GarbageCollectorController related features.
	GarbageCollectorController GarbageCollectorControllerConfiguration `json:"garbageCollectorController,omitempty"`

	// ChainControllerConfiguration holds configuration for ChainController related features.
	ChainController ChainControllerConfiguration `json:"chainController,omitempty"`
}

OneXControllerManagerConfiguration contains elements describing onex-controller manager.

func (*OneXControllerManagerConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OneXControllerManagerConfiguration.

func (*OneXControllerManagerConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OneXControllerManagerConfiguration) DeepCopyObject

func (in *OneXControllerManagerConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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