Documentation
¶
Index ¶
- Variables
- func New(main DeploymentWorkload, canary DeploymentWorkload) ([]resource.TemplateInterface, error)
- type DeploymentWorkload
- type WithCanary
- type WithHorizontalPodAutoscaler
- type WithKey
- type WithLabels
- type WithMarin3rSidecar
- type WithMonitoring
- type WithPodDisruptionBadget
- type WithPublishingStrategies
- type WithSelector
- type WithWorkloadMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyKey types.NamespacedName = types.NamespacedName{} EmptyLabel map[string]string = map[string]string{} EmptySelector map[string]string = map[string]string{} )
Functions ¶
func New ¶
func New(main DeploymentWorkload, canary DeploymentWorkload) ([]resource.TemplateInterface, error)
Types ¶
type DeploymentWorkload ¶
type DeploymentWorkload interface {
WithWorkloadMeta
WithMonitoring
WithHorizontalPodAutoscaler
WithPodDisruptionBadget
Deployment() *resource.Template[*appsv1.Deployment]
}
type WithCanary ¶
type WithCanary interface {
WithWorkloadMeta
WithSelector
SendTraffic() bool
TrafficSelector() map[string]string
}
type WithHorizontalPodAutoscaler ¶
type WithHorizontalPodAutoscaler interface {
HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
}
type WithKey ¶
type WithKey interface {
GetKey() types.NamespacedName
}
type WithLabels ¶
type WithMarin3rSidecar ¶
type WithMarin3rSidecar interface {
WithWorkloadMeta
EnvoyDynamicConfigurations() []descriptor.EnvoyDynamicConfigDescriptor
}
type WithMonitoring ¶
type WithMonitoring interface {
MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
}
type WithPodDisruptionBadget ¶
type WithPodDisruptionBadget interface {
PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
}
type WithPublishingStrategies ¶
type WithPublishingStrategies interface {
WithWorkloadMeta
WithSelector
WithCanary
PublishingStrategies() ([]service.ServiceDescriptor, error)
}
type WithSelector ¶
type WithWorkloadMeta ¶
type WithWorkloadMeta interface {
WithKey
WithLabels
WithSelector
}
Click to show internal directories.
Click to hide internal directories.