limitador

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LimitadorConfigFileName = "limitador-config.yaml"
	LimitadorCMMountPath    = "/home/limitador/etc"
	LimitsCMVolumeName      = "config-file"
)
View Source
const (
	DiskVolumeName = "storage"
	DiskPath       = "/var/lib/limitador/data"
)
View Source
const (
	LimitadorRepository = "quay.io/kuadrant/limitador"
)
View Source
const (
	StatusEndpoint = "/status"
)

Variables

This section is empty.

Functions

func Deployment added in v0.5.0

func Deployment(limitador *limitadorv1alpha1.Limitador, deploymentOptions DeploymentOptions) *appsv1.Deployment

func DeploymentCommand added in v0.7.0

func DeploymentCommand(limObj *limitadorv1alpha1.Limitador, storageOptions DeploymentStorageOptions) []string

func DeploymentEnvVar added in v0.7.0

func DeploymentEnvVar(configSecretRef *v1.LocalObjectReference) ([]v1.EnvVar, error)

func DeploymentName added in v0.7.0

func DeploymentName(limitadorObj *limitadorv1alpha1.Limitador) string

func DeploymentVolumeMounts added in v0.7.0

func DeploymentVolumeMounts(storageOptions DeploymentStorageOptions) []corev1.VolumeMount

func DeploymentVolumes added in v0.7.0

func DeploymentVolumes(limObj *limitadorv1alpha1.Limitador, storageOptions DeploymentStorageOptions) []corev1.Volume

func GetLimitadorImage added in v0.9.0

func GetLimitadorImage() string

func Labels added in v0.6.0

func Labels(limitador *limitadorv1alpha1.Limitador) map[string]string

func LimitsConfigMap

func LimitsConfigMap(limitadorObj *limitadorv1alpha1.Limitador) (*v1.ConfigMap, error)

func LimitsConfigMapName added in v0.7.0

func LimitsConfigMapName(limitadorObj *limitadorv1alpha1.Limitador) string

func PVC added in v0.7.0

func PVCName added in v0.7.0

func PVCName(limitadorObj *limitadorv1alpha1.Limitador) string

func PodDisruptionBudget added in v0.6.0

func PodDisruptionBudget(limitadorObj *limitadorv1alpha1.Limitador) *policyv1.PodDisruptionBudget

func PodDisruptionBudgetName added in v0.6.0

func PodDisruptionBudgetName(limitadorObj *limitadorv1alpha1.Limitador) string

func Service added in v0.5.0

func Service(limitador *limitadorv1alpha1.Limitador) *v1.Service

func ServiceName

func ServiceName(limitadorObj *limitadorv1alpha1.Limitador) string

func ValidatePDB added in v0.6.0

func ValidatePDB(pdb *policyv1.PodDisruptionBudget) error

Types

type DeploymentOptions added in v0.7.0

type DeploymentOptions struct {
	Command            []string
	VolumeMounts       []corev1.VolumeMount
	Volumes            []corev1.Volume
	DeploymentStrategy appsv1.DeploymentStrategy
	EnvVar             []corev1.EnvVar
	ImagePullSecrets   []corev1.LocalObjectReference
}

type DeploymentStorageOptions added in v0.7.0

type DeploymentStorageOptions struct {
	Command            []string
	VolumeMounts       []corev1.VolumeMount
	Volumes            []corev1.Volume
	DeploymentStrategy appsv1.DeploymentStrategy
}

func DiskDeploymentOptions added in v0.7.0

func DiskDeploymentOptions(limObj *limitadorv1alpha1.Limitador, diskObj limitadorv1alpha1.DiskSpec) (DeploymentStorageOptions, error)

func InMemoryDeploymentOptions added in v0.7.0

func InMemoryDeploymentOptions() (DeploymentStorageOptions, error)

func RedisCachedDeploymentOptions added in v0.7.0

func RedisCachedDeploymentOptions(ctx context.Context, cl client.Client, defSecretNamespace string, redisCachedObj limitadorv1alpha1.RedisCached) (DeploymentStorageOptions, error)

func RedisDeploymentOptions added in v0.7.0

func RedisDeploymentOptions(ctx context.Context, cl client.Client, defSecretNamespace string, redisObj limitadorv1alpha1.Redis) (DeploymentStorageOptions, error)

Jump to

Keyboard shortcuts

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