Documentation ¶
Index ¶
- type EnvGenerator
- func (gen *EnvGenerator) Deployment() *resource.Template[*appsv1.Deployment]
- func (gen *EnvGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
- func (gen *EnvGenerator) Labels() map[string]string
- func (gen *EnvGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
- func (gen *EnvGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
- func (gen *EnvGenerator) PublishingStrategies() ([]service.ServiceDescriptor, error)
- func (gen *EnvGenerator) SendTraffic() bool
- func (gen *EnvGenerator) TrafficSelector() map[string]string
- type Generator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvGenerator ¶
type EnvGenerator struct { generators.BaseOptionsV2 Spec saasv1alpha1.ApicastEnvironmentSpec Options pod.Options Traffic bool }
EnvGenerator has methods to generate resources for an Apicast environment
func (*EnvGenerator) Deployment ¶
func (gen *EnvGenerator) Deployment() *resource.Template[*appsv1.Deployment]
func (*EnvGenerator) HPASpec ¶
func (gen *EnvGenerator) HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
func (*EnvGenerator) Labels ¶
func (gen *EnvGenerator) Labels() map[string]string
func (*EnvGenerator) MonitoredEndpoints ¶
func (gen *EnvGenerator) MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
func (*EnvGenerator) PDBSpec ¶
func (gen *EnvGenerator) PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
func (*EnvGenerator) PublishingStrategies ¶ added in v0.25.0
func (gen *EnvGenerator) PublishingStrategies() ([]service.ServiceDescriptor, error)
func (*EnvGenerator) SendTraffic ¶
func (gen *EnvGenerator) SendTraffic() bool
func (*EnvGenerator) TrafficSelector ¶
func (gen *EnvGenerator) TrafficSelector() map[string]string
type Generator ¶
type Generator struct { generators.BaseOptionsV2 Staging EnvGenerator CanaryStaging *EnvGenerator Production EnvGenerator CanaryProduction *EnvGenerator LoadBalancerSpec saasv1alpha1.ElasticLoadBalancerSpec GrafanaDashboardSpec saasv1alpha1.GrafanaDashboardSpec }
Generator configures the generators for Apicast
func NewGenerator ¶
func NewGenerator(instance, namespace string, spec saasv1alpha1.ApicastSpec) (Generator, error)
NewGenerator returns a new Options struct
Click to show internal directories.
Click to hide internal directories.