Documentation ¶
Index ¶
- Constants
- Variables
- 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_MySQLConfiguration_To_v1beta1_MySQLConfiguration(in *config.MySQLConfiguration, out *MySQLConfiguration, s conversion.Scope) error
- func Convert_config_RedisConfiguration_To_v1beta1_RedisConfiguration(in *config.RedisConfiguration, out *RedisConfiguration, s conversion.Scope) 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_MySQLConfiguration_To_config_MySQLConfiguration(in *MySQLConfiguration, out *config.MySQLConfiguration, s conversion.Scope) error
- func Convert_v1beta1_RedisConfiguration_To_config_RedisConfiguration(in *RedisConfiguration, out *config.RedisConfiguration, s conversion.Scope) error
- func RecommendedDefaultGarbageCollectorControllerConfiguration(obj *GarbageCollectorControllerConfiguration)
- func RecommendedDefaultGenericControllerManagerConfiguration(obj *GenericControllerManagerConfiguration)
- func RecommendedDefaultMySQLConfiguration(obj *MySQLConfiguration)
- func RecommendedDefaultRedisConfiguration(obj *RedisConfiguration)
- func RegisterConversions(s *runtime.Scheme) error
- type GarbageCollectorControllerConfiguration
- type GenericControllerManagerConfiguration
- type GroupResource
- type MySQLConfiguration
- type RedisConfiguration
Constants ¶
const ( // ControllerManagerDefaultLockObjectNamespace defines default onex controller manager lock object namespace ("kube-system"). ControllerManagerDefaultLockObjectNamespace string = metav1.NamespaceSystem // ControllerManagerDefaultLockObjectName defines default onex controller manager lock object name ("onex-controller-manager"). ControllerManagerDefaultLockObjectName = "controller-manager" )
Variables ¶
var ( // SchemeBuilder is the scheme builder with scheme init functions to run for this API package. SchemeBuilder runtime.SchemeBuilder // AddToScheme is a global function that registers this API group & version to a scheme. AddToScheme = localSchemeBuilder.AddToScheme )
Functions ¶
func Convert_config_GarbageCollectorControllerConfiguration_To_v1beta1_GarbageCollectorControllerConfiguration ¶
func Convert_config_GarbageCollectorControllerConfiguration_To_v1beta1_GarbageCollectorControllerConfiguration(in *config.GarbageCollectorControllerConfiguration, out *GarbageCollectorControllerConfiguration, s conversion.Scope) error
func Convert_config_GenericControllerManagerConfiguration_To_v1beta1_GenericControllerManagerConfiguration ¶
func Convert_config_GenericControllerManagerConfiguration_To_v1beta1_GenericControllerManagerConfiguration(in *config.GenericControllerManagerConfiguration, out *GenericControllerManagerConfiguration, s conversion.Scope) error
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_MySQLConfiguration_To_v1beta1_MySQLConfiguration ¶
func Convert_config_MySQLConfiguration_To_v1beta1_MySQLConfiguration(in *config.MySQLConfiguration, out *MySQLConfiguration, s conversion.Scope) error
func Convert_config_RedisConfiguration_To_v1beta1_RedisConfiguration ¶
func Convert_config_RedisConfiguration_To_v1beta1_RedisConfiguration(in *config.RedisConfiguration, out *RedisConfiguration, s conversion.Scope) error
func Convert_v1beta1_GarbageCollectorControllerConfiguration_To_config_GarbageCollectorControllerConfiguration ¶
func Convert_v1beta1_GarbageCollectorControllerConfiguration_To_config_GarbageCollectorControllerConfiguration(in *GarbageCollectorControllerConfiguration, out *config.GarbageCollectorControllerConfiguration, s conversion.Scope) error
func Convert_v1beta1_GenericControllerManagerConfiguration_To_config_GenericControllerManagerConfiguration ¶
func Convert_v1beta1_GenericControllerManagerConfiguration_To_config_GenericControllerManagerConfiguration(in *GenericControllerManagerConfiguration, out *config.GenericControllerManagerConfiguration, s conversion.Scope) error
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_MySQLConfiguration_To_config_MySQLConfiguration ¶
func Convert_v1beta1_MySQLConfiguration_To_config_MySQLConfiguration(in *MySQLConfiguration, out *config.MySQLConfiguration, s conversion.Scope) error
func Convert_v1beta1_RedisConfiguration_To_config_RedisConfiguration ¶
func Convert_v1beta1_RedisConfiguration_To_config_RedisConfiguration(in *RedisConfiguration, out *config.RedisConfiguration, s conversion.Scope) error
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 RecommendedDefaultMySQLConfiguration ¶
func RecommendedDefaultMySQLConfiguration(obj *MySQLConfiguration)
RecommendedDefaultMySQLConfiguration defaults a pointer to a MySQLConfiguration 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 RecommendedDefaultRedisConfiguration ¶
func RecommendedDefaultRedisConfiguration(obj *RedisConfiguration)
RecommendedDefaultRedisConfiguration defaults a pointer to a RedisConfiguration 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.
Types ¶
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 { // 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 MySQLConfiguration ¶
type MySQLConfiguration struct { // MySQL service host address. If left blank, the following related mysql options will be ignored. Host string `json:"host"` // Username for access to mysql service. Username string `json:"username"` // Password for access to mysql, should be used pair with password. Password string `json:"password"` // Database name for the server to use. Database string `json:"database"` // Maximum idle connections allowed to connect to mysql. MaxIdleConnections int32 `json:"maxIdleConnections"` // Maximum open connections allowed to connect to mysql. MaxOpenConnections int32 `json:"maxOpenConnections"` // Maximum connection life time allowed to connect to mysql. MaxConnectionLifeTime metav1.Duration `json:"maxConnectionLifeTime"` }
MySQLConfiguration defines the configuration of mysql clients for components that can run with mysql database.
func (*MySQLConfiguration) DeepCopy ¶
func (in *MySQLConfiguration) DeepCopy() *MySQLConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLConfiguration.
func (*MySQLConfiguration) DeepCopyInto ¶
func (in *MySQLConfiguration) DeepCopyInto(out *MySQLConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisConfiguration ¶
type RedisConfiguration struct { // Address of your Redis server(ip:port). Addr string `json:"addr"` // Username for access to redis service. Username string `json:"username"` // Optional auth password for Redis db. Password string `json:"password"` // Database to be selected after connecting to the server. Database int `json:"database"` // Maximum number of retries before giving up. MaxRetries int `json:"maxRetries"` // Timeout when connecting to redis service. Timeout metav1.Duration `json:"timeout"` }
RedisConfiguration defines the configuration of redis clients for components that can run with redis key-value database.
func (*RedisConfiguration) DeepCopy ¶
func (in *RedisConfiguration) DeepCopy() *RedisConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisConfiguration.
func (*RedisConfiguration) DeepCopyInto ¶
func (in *RedisConfiguration) DeepCopyInto(out *RedisConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.