Documentation ¶
Index ¶
Constants ¶
const GroupName = "minercontroller.config.onex.io"
GroupName is the group name used in this package.
Variables ¶
var ( // SchemeBuilder is the scheme builder with scheme init functions to run for this API package. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
This section is empty.
Types ¶
type MinerControllerConfiguration ¶
type MinerControllerConfiguration struct { // TypeMeta contains the API version and kind. metav1.TypeMeta // FeatureGates is a map of feature names to bools that enable or disable alpha/experimental features. FeatureGates map[string]bool // Parallelism defines the amount of parallelism to process miners. Must be greater than 0. Defaults to 16 Parallelism int32 // DryRun tells if the dry run mode is enabled, do not create an actual miner pod, // but directly set the miner status to Running. DryRun bool // Path to miner provider kubeconfig file with authorization and master location information. ProviderKubeconfig string // Create miner pod in the cluster where miner controller is located. InCluster bool // 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 // Label value that the controller watches to reconcile cloud miner objects. // Label key is always %s. If unspecified, the controller watches for allcluster-api objects. WatchFilterValue string // leaderElection defines the configuration of leader election client. LeaderElection componentbaseconfig.LeaderElectionConfiguration // Namespace that the controller watches to reconcile onex-apiserver objects. // If unspecified, the controller watches for onex-apiserver objects across all namespaces Namespace string // 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 // HealthzBindAddress is the IP address and port for the health check server to serve on, // defaulting to 0.0.0.0:20250 HealthzBindAddress string // Types specifies the configuration of the cloud mining machine. Types map[string]MinerProfile // Redis defines the configuration of redis client. Redis genericconfig.RedisConfiguration }
MinerControllerConfiguration configures a scheduler.
func (*MinerControllerConfiguration) DeepCopy ¶
func (in *MinerControllerConfiguration) DeepCopy() *MinerControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinerControllerConfiguration.
func (*MinerControllerConfiguration) DeepCopyInto ¶
func (in *MinerControllerConfiguration) DeepCopyInto(out *MinerControllerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MinerControllerConfiguration) DeepCopyObject ¶
func (in *MinerControllerConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MinerProfile ¶
type MinerProfile struct { CPU resource.Quantity `json:"cpu,omitempty"` Memory resource.Quantity `json:"memory,omitempty"` MiningDifficulty int `json:"miningDifficulty,omitempty"` }
func (*MinerProfile) DeepCopy ¶
func (in *MinerProfile) DeepCopy() *MinerProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MinerProfile.
func (*MinerProfile) DeepCopyInto ¶
func (in *MinerProfile) DeepCopyInto(out *MinerProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.