v1beta1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

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

	// MinerSetControllerDefaultLockObjectName defines default minerset controller lock object name ("onex-minerset-controller").
	MinerSetControllerDefaultLockObjectName = "onex-minerset-controller"
)
View Source
const GroupName = "minersetcontroller.config.onex.io"

GroupName is the group name used 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_MinerSetControllerConfiguration_To_v1beta1_MinerSetControllerConfiguration

func Convert_config_MinerSetControllerConfiguration_To_v1beta1_MinerSetControllerConfiguration(in *config.MinerSetControllerConfiguration, out *MinerSetControllerConfiguration, s conversion.Scope) error

Convert_config_MinerSetControllerConfiguration_To_v1beta1_MinerSetControllerConfiguration is an autogenerated conversion function.

func Convert_v1beta1_MinerSetControllerConfiguration_To_config_MinerSetControllerConfiguration

func Convert_v1beta1_MinerSetControllerConfiguration_To_config_MinerSetControllerConfiguration(in *MinerSetControllerConfiguration, out *config.MinerSetControllerConfiguration, s conversion.Scope) error

Convert_v1beta1_MinerSetControllerConfiguration_To_config_MinerSetControllerConfiguration is an autogenerated conversion function.

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_MinerSetControllerConfiguration

func SetDefaults_MinerSetControllerConfiguration(obj *MinerSetControllerConfiguration)

SetDefaults_MinerSetControllerConfiguration sets additional defaults.

func SetObjectDefaults_MinerSetControllerConfiguration

func SetObjectDefaults_MinerSetControllerConfiguration(in *MinerSetControllerConfiguration)

Types

type MinerSetControllerConfiguration

type MinerSetControllerConfiguration struct {
	// TypeMeta contains the API version and kind.
	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"`

	// Parallelism defines the amount of parallelism to process minersets. 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 minerset objects.
	// Label key is always %s. If unspecified, the controller watches for allcluster-api objects.
	WatchFilterValue string `json:"watchFilterValue,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.
	// If unspecified, the controller watches for onex-apiserver objects across all namespaces
	Namespace string `json:"namespace,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"`
}

MinerSetControllerConfiguration configures a scheduler.

func (*MinerSetControllerConfiguration) DeepCopy

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

func (*MinerSetControllerConfiguration) DeepCopyInto

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

func (*MinerSetControllerConfiguration) DeepCopyObject

func (in *MinerSetControllerConfiguration) 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