handler

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashicorpVaultHandler added in v1.5.0

type HashicorpVaultHandler struct {
	// contains filtered or unexported fields
}

func NewHashicorpVaultHandler added in v1.5.0

func NewHashicorpVaultHandler(v *kedav1alpha1.HashiCorpVault) *HashicorpVaultHandler

func (*HashicorpVaultHandler) Initialize added in v1.5.0

func (vh *HashicorpVaultHandler) Initialize(logger logr.Logger) error

Initialize the Vault client

func (*HashicorpVaultHandler) Read added in v1.5.0

func (vh *HashicorpVaultHandler) Read(path string) (*vaultApi.Secret, error)

func (*HashicorpVaultHandler) Stop added in v1.5.0

func (vh *HashicorpVaultHandler) Stop()

Stop is responsible for stoping the renew token proccess

type ScaleHandler

type ScaleHandler struct {
	// contains filtered or unexported fields
}

ScaleHandler encapsulates the logic of calling the right scalers for each ScaledObject and making the final scale decision and operation

func NewScaleHandler

func NewScaleHandler(client client.Client, reconcilerScheme *runtime.Scheme) *ScaleHandler

NewScaleHandler creates a ScaleHandler object

func (*ScaleHandler) GetDeploymentScalers

func (h *ScaleHandler) GetDeploymentScalers(scaledObject *kedav1alpha1.ScaledObject) ([]scalers.Scaler, *appsv1.Deployment, error)

GetDeploymentScalers returns list of Scalers and Deployment for the specified ScaledObject

func (*ScaleHandler) HandleScaleLoop

func (h *ScaleHandler) HandleScaleLoop(ctx context.Context, scaledObject *kedav1alpha1.ScaledObject)

HandleScaleLoop blocks forever and checks the scaledObject based on its pollingInterval

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL