Documentation ¶
Index ¶
- type CronGenerator
- func (gen *CronGenerator) Deployment() *resource.Template[*appsv1.Deployment]
- func (gen *CronGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
- func (gen *CronGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
- func (gen *CronGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
- type Generator
- type ListenerGenerator
- func (gen *ListenerGenerator) Deployment() *resource.Template[*appsv1.Deployment]
- func (gen *ListenerGenerator) EnvoyDynamicConfigurations() []descriptor.EnvoyDynamicConfigDescriptor
- func (gen *ListenerGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
- func (gen *ListenerGenerator) Labels() map[string]string
- func (gen *ListenerGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
- func (gen *ListenerGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
- func (gen *ListenerGenerator) SendTraffic() bool
- func (gen *ListenerGenerator) Services() []*resource.Template[*corev1.Service]
- func (gen *ListenerGenerator) TrafficSelector() map[string]string
- type WorkerGenerator
- func (gen *WorkerGenerator) Deployment() *resource.Template[*appsv1.Deployment]
- func (gen *WorkerGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
- func (gen *WorkerGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
- func (gen *WorkerGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronGenerator ¶
type CronGenerator struct { generators.BaseOptionsV2 Image saasv1alpha1.ImageSpec CronSpec saasv1alpha1.CronSpec Options config.CronOptions }
CronGenerator has methods to generate resources for a Backend environment
func (*CronGenerator) Deployment ¶
func (gen *CronGenerator) Deployment() *resource.Template[*appsv1.Deployment]
func (*CronGenerator) HPASpec ¶
func (gen *CronGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
func (*CronGenerator) MonitoredEndpoints ¶
func (gen *CronGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
func (*CronGenerator) PDBSpec ¶
func (gen *CronGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
type Generator ¶
type Generator struct { generators.BaseOptionsV2 Listener ListenerGenerator CanaryListener *ListenerGenerator Worker WorkerGenerator CanaryWorker *WorkerGenerator Cron CronGenerator // contains filtered or unexported fields }
Generator configures the generators for Backend
func NewGenerator ¶
func NewGenerator(instance, namespace string, spec saasv1alpha1.BackendSpec) (Generator, error)
NewGenerator returns a new Options struct
type ListenerGenerator ¶
type ListenerGenerator struct { generators.BaseOptionsV2 Image saasv1alpha1.ImageSpec ListenerSpec saasv1alpha1.ListenerSpec Options config.ListenerOptions Traffic bool TwemproxySpec *saasv1alpha1.TwemproxySpec }
ListenerGenerator has methods to generate resources for a Backend environment
func (*ListenerGenerator) Deployment ¶
func (gen *ListenerGenerator) Deployment() *resource.Template[*appsv1.Deployment]
func (*ListenerGenerator) EnvoyDynamicConfigurations ¶
func (gen *ListenerGenerator) EnvoyDynamicConfigurations() []descriptor.EnvoyDynamicConfigDescriptor
func (*ListenerGenerator) HPASpec ¶
func (gen *ListenerGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
func (*ListenerGenerator) Labels ¶
func (gen *ListenerGenerator) Labels() map[string]string
func (*ListenerGenerator) MonitoredEndpoints ¶
func (gen *ListenerGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
func (*ListenerGenerator) PDBSpec ¶
func (gen *ListenerGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
func (*ListenerGenerator) SendTraffic ¶
func (gen *ListenerGenerator) SendTraffic() bool
func (*ListenerGenerator) Services ¶
func (gen *ListenerGenerator) Services() []*resource.Template[*corev1.Service]
func (*ListenerGenerator) TrafficSelector ¶
func (gen *ListenerGenerator) TrafficSelector() map[string]string
type WorkerGenerator ¶
type WorkerGenerator struct { generators.BaseOptionsV2 Image saasv1alpha1.ImageSpec WorkerSpec saasv1alpha1.WorkerSpec Options config.WorkerOptions TwemproxySpec *saasv1alpha1.TwemproxySpec }
WorkerGenerator has methods to generate resources for a Backend environment
func (*WorkerGenerator) Deployment ¶
func (gen *WorkerGenerator) Deployment() *resource.Template[*appsv1.Deployment]
func (*WorkerGenerator) HPASpec ¶
func (gen *WorkerGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
func (*WorkerGenerator) MonitoredEndpoints ¶
func (gen *WorkerGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
func (*WorkerGenerator) PDBSpec ¶
func (gen *WorkerGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
Source Files ¶
Click to show internal directories.
Click to hide internal directories.