Documentation ¶
Index ¶
- Variables
- func AddOrUpdateCondition(httpso *httpv1alpha1.HTTPScaledObject, ...) *httpv1alpha1.HTTPScaledObject
- func CreateCondition(condType httpv1alpha1.HTTPScaledObjectCreationStatus, ...) *httpv1alpha1.HTTPScaledObjectCondition
- func SaveStatus(ctx context.Context, logger logr.Logger, cl client.Client, ...)
- func SetMessage(c *httpv1alpha1.HTTPScaledObjectCondition, message string) *httpv1alpha1.HTTPScaledObjectCondition
- type HTTPScaledObjectReconciler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SkipScaledObjectCreationAnnotation = "httpscaledobject.keda.sh/skip-scaledobject-creation"
)
Functions ¶
func AddOrUpdateCondition ¶
func AddOrUpdateCondition(httpso *httpv1alpha1.HTTPScaledObject, condition httpv1alpha1.HTTPScaledObjectCondition) *httpv1alpha1.HTTPScaledObject
AddOrUpdateCondition adds or update a condition to the HTTPScaledObject
func CreateCondition ¶
func CreateCondition( condType httpv1alpha1.HTTPScaledObjectCreationStatus, status metav1.ConditionStatus, reason httpv1alpha1.HTTPScaledObjectConditionReason, ) *httpv1alpha1.HTTPScaledObjectCondition
CreateCondition initializes a new status condition
func SaveStatus ¶
func SaveStatus( ctx context.Context, logger logr.Logger, cl client.Client, httpso *httpv1alpha1.HTTPScaledObject, )
SaveStatus will trigger an object update to save the current status conditions
func SetMessage ¶
func SetMessage(c *httpv1alpha1.HTTPScaledObjectCondition, message string) *httpv1alpha1.HTTPScaledObjectCondition
SetMessage sets the optional reason for the condition
Types ¶
type HTTPScaledObjectReconciler ¶
type HTTPScaledObjectReconciler struct { client.Client Scheme *runtime.Scheme ExternalScalerConfig config.ExternalScaler BaseConfig config.Base }
HTTPScaledObjectReconciler reconciles a HTTPScaledObject object
func (*HTTPScaledObjectReconciler) Reconcile ¶
func (r *HTTPScaledObjectReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reconciles a newly created, deleted, or otherwise changed HTTPScaledObject
func (*HTTPScaledObjectReconciler) SetupWithManager ¶
func (r *HTTPScaledObjectReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.