Documentation ¶
Index ¶
- Constants
- func Deployment(limitador *limitadorv1alpha1.Limitador, deploymentOptions DeploymentOptions) *appsv1.Deployment
- func DeploymentCommand(limObj *limitadorv1alpha1.Limitador, storageOptions DeploymentStorageOptions) []string
- func DeploymentEnvVar(configSecretRef *v1.LocalObjectReference) ([]v1.EnvVar, error)
- func DeploymentName(limitadorObj *limitadorv1alpha1.Limitador) string
- func DeploymentVolumeMounts(storageOptions DeploymentStorageOptions) []corev1.VolumeMount
- func DeploymentVolumes(limObj *limitadorv1alpha1.Limitador, storageOptions DeploymentStorageOptions) []corev1.Volume
- func GetLimitadorImage() string
- func Labels(limitador *limitadorv1alpha1.Limitador) map[string]string
- func LimitsConfigMap(limitadorObj *limitadorv1alpha1.Limitador) (*v1.ConfigMap, error)
- func LimitsConfigMapName(limitadorObj *limitadorv1alpha1.Limitador) string
- func PVC(limitador *limitadorv1alpha1.Limitador) *v1.PersistentVolumeClaim
- func PVCName(limitadorObj *limitadorv1alpha1.Limitador) string
- func PodDisruptionBudget(limitadorObj *limitadorv1alpha1.Limitador) *policyv1.PodDisruptionBudget
- func PodDisruptionBudgetName(limitadorObj *limitadorv1alpha1.Limitador) string
- func Service(limitador *limitadorv1alpha1.Limitador) *v1.Service
- func ServiceName(limitadorObj *limitadorv1alpha1.Limitador) string
- func ValidatePDB(pdb *policyv1.PodDisruptionBudget) error
- type DeploymentOptions
- type DeploymentStorageOptions
- func DiskDeploymentOptions(limObj *limitadorv1alpha1.Limitador, diskObj limitadorv1alpha1.DiskSpec) (DeploymentStorageOptions, error)
- func InMemoryDeploymentOptions() (DeploymentStorageOptions, error)
- func RedisCachedDeploymentOptions(ctx context.Context, cl client.Client, defSecretNamespace string, ...) (DeploymentStorageOptions, error)
- func RedisDeploymentOptions(ctx context.Context, cl client.Client, defSecretNamespace string, ...) (DeploymentStorageOptions, error)
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 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 PVC(limitador *limitadorv1alpha1.Limitador) *v1.PersistentVolumeClaim
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 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)
Click to show internal directories.
Click to hide internal directories.