Documentation ¶
Index ¶
- Constants
- func CommonLabels(brokerCellName string) map[string]string
- func Labels(brokerCellName, componentName string) map[string]string
- func MakeFanoutDeployment(args FanoutArgs) *appsv1.Deployment
- func MakeHorizontalPodAutoscaler(deployment *appsv1.Deployment, args AutoscalingArgs) *hpav2beta2.HorizontalPodAutoscaler
- func MakeIngressDeployment(args IngressArgs) *appsv1.Deployment
- func MakeIngressService(args IngressArgs) *corev1.Service
- func MakeRetryDeployment(args RetryArgs) *appsv1.Deployment
- func MakeTargetsConfig(bc *intv1alpha1.BrokerCell, brokerTargets config.Targets) (*corev1.ConfigMap, error)
- func Name(brokerCellName, componentName string) string
- func TargetsConfigMapEqual(cm1, cm2 *corev1.ConfigMap) bool
- type Args
- type AutoscalingArgs
- type FanoutArgs
- type IngressArgs
- type RetryArgs
Constants ¶
const ( // IngressName is the name used for the ingress container. IngressName = "ingress" // FanoutName is the name used for the fanout container. FanoutName = "fanout" // RetryName is the name used for the retry container. RetryName = "retry" BrokerCellLabelKey = "brokerCell" )
Variables ¶
This section is empty.
Functions ¶
func CommonLabels ¶ added in v0.16.0
func Labels ¶
Labels generates the labels present on all resources representing the component of the given BrokerCell.
func MakeFanoutDeployment ¶
func MakeFanoutDeployment(args FanoutArgs) *appsv1.Deployment
MakeFanoutDeployment creates the fanout Deployment object.
func MakeHorizontalPodAutoscaler ¶ added in v0.16.0
func MakeHorizontalPodAutoscaler(deployment *appsv1.Deployment, args AutoscalingArgs) *hpav2beta2.HorizontalPodAutoscaler
MakeHorizontalPodAutoscaler makes an HPA for the given arguments.
func MakeIngressDeployment ¶
func MakeIngressDeployment(args IngressArgs) *appsv1.Deployment
MakeIngressDeployment creates the ingress Deployment object.
func MakeIngressService ¶
func MakeIngressService(args IngressArgs) *corev1.Service
MakeIngressService creates the ingress Service.
func MakeRetryDeployment ¶
func MakeRetryDeployment(args RetryArgs) *appsv1.Deployment
MakeRetryDeployment creates the retry Deployment object.
func MakeTargetsConfig ¶ added in v0.16.0
func MakeTargetsConfig(bc *intv1alpha1.BrokerCell, brokerTargets config.Targets) (*corev1.ConfigMap, error)
func TargetsConfigMapEqual ¶ added in v0.16.2
TargetsConfigMapEqual compares the binary data contained in two TargetsConfig ConfigMaps and returns true if and only if the inputs are valid and the unmarshaled binary data are equal.
Types ¶
type Args ¶
type Args struct { ComponentName string BrokerCell *intv1alpha1.BrokerCell Image string ServiceAccountName string MetricsPort int AllowIstioSidecar bool CPURequest string CPULimit string MemoryRequest string MemoryLimit string }
Args are the common arguments to create a Broker's data plane Deployment.
type AutoscalingArgs ¶ added in v0.16.0
type AutoscalingArgs struct { ComponentName string BrokerCell *intv1alpha1.BrokerCell AvgCPUUtilization int32 AvgMemoryUsage string MaxReplicas int32 MinReplicas int32 }
AutoscalingArgs are the arguments to create HPA for deployments.
type FanoutArgs ¶
type FanoutArgs struct {
Args
}
FanoutArgs are the arguments to create a Broker's fanout Deployment.
type IngressArgs ¶
IngressArgs are the arguments to create a Broker's ingress Deployment.