Documentation ¶
Index ¶
- Variables
- func New(main DeploymentWorkload, canary DeploymentWorkload) ([]resource.TemplateInterface, error)
- type DeploymentWorkload
- type WithEnvoySidecar
- type WithHorizontalPodAutoscaler
- type WithKey
- type WithLabels
- type WithMonitoring
- type WithPodDisruptionBadget
- type WithSelector
- type WithTraffic
- 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 WithEnvoySidecar ¶
type WithEnvoySidecar interface { WithWorkloadMeta EnvoyDynamicConfigurations() []descriptor.EnvoyDynamicConfigDescriptor }
type WithHorizontalPodAutoscaler ¶
type WithHorizontalPodAutoscaler interface {
HPASpec() *saasv1alpha1.HorizontalPodAutoscalerSpec
}
type WithKey ¶
type WithKey interface {
GetKey() types.NamespacedName
}
type WithLabels ¶
type WithMonitoring ¶
type WithMonitoring interface {
MonitoredEndpoints() []monitoringv1.PodMetricsEndpoint
}
type WithPodDisruptionBadget ¶
type WithPodDisruptionBadget interface {
PDBSpec() *saasv1alpha1.PodDisruptionBudgetSpec
}
type WithSelector ¶
type WithTraffic ¶
type WithTraffic interface { WithWorkloadMeta WithSelector SendTraffic() bool TrafficSelector() map[string]string Services() []*resource.Template[*corev1.Service] }
type WithWorkloadMeta ¶
type WithWorkloadMeta interface { WithKey WithLabels WithSelector }
Click to show internal directories.
Click to hide internal directories.