Documentation ¶
Index ¶
- func PodIsMonitoredByAlameda(pod *core_v1.Pod) bool
- type Reconciler
- func (reconciler *Reconciler) HasAlamedaDeployment(deploymentNS, deploymentName string) bool
- func (reconciler *Reconciler) HasAlamedaDeploymentConfig(deploymentConfigNS, deploymentConfigName string) bool
- func (reconciler *Reconciler) InitAlamedaController() (*autoscaling_v1alpha1.AlamedaScaler, bool)
- func (reconciler *Reconciler) ResetAlamedaController()
- func (reconciler *Reconciler) UpdateStatusByDeployment(deployment *appsv1.Deployment) (*autoscaling_v1alpha1.AlamedaScaler, error)
- func (reconciler *Reconciler) UpdateStatusByDeploymentConfig(deploymentconfig *appsapi_v1.DeploymentConfig) (*autoscaling_v1alpha1.AlamedaScaler, error)
- func (reconciler *Reconciler) UpdateStatusByStatefulSet(statefulSet *appsv1.StatefulSet) (*autoscaling_v1alpha1.AlamedaScaler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PodIsMonitoredByAlameda ¶ added in v0.3.2
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles AlamedaScaler object
func NewReconciler ¶
func NewReconciler(client client.Client, alamedascaler *autoscaling_v1alpha1.AlamedaScaler) *Reconciler
NewReconciler creates Reconciler object
func (*Reconciler) HasAlamedaDeployment ¶
func (reconciler *Reconciler) HasAlamedaDeployment(deploymentNS, deploymentName string) bool
HasAlamedaDeployment checks the AlamedaScaler has the deployment or not
func (*Reconciler) HasAlamedaDeploymentConfig ¶ added in v0.3.0
func (reconciler *Reconciler) HasAlamedaDeploymentConfig(deploymentConfigNS, deploymentConfigName string) bool
HasAlamedaDeploymentConfig checks the AlamedaScaler has the deploymentconfig or not
func (*Reconciler) InitAlamedaController ¶
func (reconciler *Reconciler) InitAlamedaController() (*autoscaling_v1alpha1.AlamedaScaler, bool)
InitAlamedaController try to initialize alamedaController field of AlamedaScaler
func (*Reconciler) ResetAlamedaController ¶ added in v0.9.1
func (reconciler *Reconciler) ResetAlamedaController()
ResetAlamedaController try to initialize alamedaController field of AlamedaScaler
func (*Reconciler) UpdateStatusByDeployment ¶
func (reconciler *Reconciler) UpdateStatusByDeployment(deployment *appsv1.Deployment) (*autoscaling_v1alpha1.AlamedaScaler, error)
UpdateStatusByDeployment updates status by deployment
func (*Reconciler) UpdateStatusByDeploymentConfig ¶ added in v0.3.0
func (reconciler *Reconciler) UpdateStatusByDeploymentConfig(deploymentconfig *appsapi_v1.DeploymentConfig) (*autoscaling_v1alpha1.AlamedaScaler, error)
UpdateStatusByDeploymentConfig updates status by DeploymentConfig
func (*Reconciler) UpdateStatusByStatefulSet ¶ added in v0.9.1
func (reconciler *Reconciler) UpdateStatusByStatefulSet(statefulSet *appsv1.StatefulSet) (*autoscaling_v1alpha1.AlamedaScaler, error)
UpdateStatusByStatefulSet updates status by StatefulSet
Click to show internal directories.
Click to hide internal directories.