Documentation ¶
Index ¶
- Constants
- Variables
- func Convert_config_ChainControllerConfiguration_To_v1beta1_ChainControllerConfiguration(in *config.ChainControllerConfiguration, out *ChainControllerConfiguration, ...) error
- func Convert_config_GarbageCollectorControllerConfiguration_To_v1beta1_GarbageCollectorControllerConfiguration(in *config.GarbageCollectorControllerConfiguration, ...) error
- func Convert_config_GenericControllerManagerConfiguration_To_v1beta1_GenericControllerManagerConfiguration(in *config.GenericControllerManagerConfiguration, ...) error
- func Convert_config_GroupResource_To_v1beta1_GroupResource(in *config.GroupResource, out *GroupResource, s conversion.Scope) error
- func Convert_config_OneXControllerManagerConfiguration_To_v1beta1_OneXControllerManagerConfiguration(in *config.OneXControllerManagerConfiguration, ...) error
- func Convert_v1beta1_ChainControllerConfiguration_To_config_ChainControllerConfiguration(in *ChainControllerConfiguration, out *config.ChainControllerConfiguration, ...) error
- func Convert_v1beta1_GarbageCollectorControllerConfiguration_To_config_GarbageCollectorControllerConfiguration(in *GarbageCollectorControllerConfiguration, ...) error
- func Convert_v1beta1_GenericControllerManagerConfiguration_To_config_GenericControllerManagerConfiguration(in *GenericControllerManagerConfiguration, ...) error
- func Convert_v1beta1_GroupResource_To_config_GroupResource(in *GroupResource, out *config.GroupResource, s conversion.Scope) error
- func Convert_v1beta1_OneXControllerManagerConfiguration_To_config_OneXControllerManagerConfiguration(in *OneXControllerManagerConfiguration, ...) error
- func RecommendedDefaultChainControllerConfiguration(obj *ChainControllerConfiguration)
- func RecommendedDefaultGarbageCollectorControllerConfiguration(obj *GarbageCollectorControllerConfiguration)
- func RecommendedDefaultGenericControllerManagerConfiguration(obj *GenericControllerManagerConfiguration)
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_OneXControllerManagerConfiguration(obj *OneXControllerManagerConfiguration)
- func SetObjectDefaults_OneXControllerManagerConfiguration(in *OneXControllerManagerConfiguration)
- type ChainControllerConfiguration
- type GarbageCollectorControllerConfiguration
- type GenericControllerManagerConfiguration
- type GroupResource
- type OneXControllerManagerConfiguration
Constants ¶
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" )
const GroupName = "onexcontrollermanager.config.onex.io"
GroupName is the group name use in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) // AddToScheme is a global function that registers this API group & version to a scheme. AddToScheme = localSchemeBuilder.AddToScheme )
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 ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
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 ¶
func (in *ChainControllerConfiguration) DeepCopy() *ChainControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChainControllerConfiguration.
func (*ChainControllerConfiguration) DeepCopyInto ¶
func (in *ChainControllerConfiguration) DeepCopyInto(out *ChainControllerConfiguration)
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 ¶
func (in *GarbageCollectorControllerConfiguration) DeepCopy() *GarbageCollectorControllerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GarbageCollectorControllerConfiguration.
func (*GarbageCollectorControllerConfiguration) DeepCopyInto ¶
func (in *GarbageCollectorControllerConfiguration) DeepCopyInto(out *GarbageCollectorControllerConfiguration)
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"` // Controllers is the list of controllers to enable or disable // '*' means "all enabled by default controllers" // 'foo' means "enable 'foo'" // '-foo' means "disable 'foo'" // first item for a particular name wins Controllers []string `json:"controllers,omitempty"` }
GenericControllerManagerConfiguration holds configuration for a generic controller-manager.
func (*GenericControllerManagerConfiguration) DeepCopy ¶
func (in *GenericControllerManagerConfiguration) DeepCopy() *GenericControllerManagerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericControllerManagerConfiguration.
func (*GenericControllerManagerConfiguration) DeepCopyInto ¶
func (in *GenericControllerManagerConfiguration) DeepCopyInto(out *GenericControllerManagerConfiguration)
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"` // 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 ¶
func (in *OneXControllerManagerConfiguration) DeepCopy() *OneXControllerManagerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OneXControllerManagerConfiguration.
func (*OneXControllerManagerConfiguration) DeepCopyInto ¶
func (in *OneXControllerManagerConfiguration) DeepCopyInto(out *OneXControllerManagerConfiguration)
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.