Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Component For Sarama Config Component = "eventing-kafka-channel-controller" // Kafka Admin Type Types KafkaAdminTypeValueKafka = "kafka" KafkaAdminTypeValueAzure = "azure" KafkaAdminTypeValueCustom = "custom" // The Controller's Component Name (Needs To Be DNS Safe!) ControllerComponentName = "eventing-kafka-channel-controller" // Knative Duck Versions SubscribableDuckVersionAnnotationV1 = "v1" // CRD Kinds SecretKind = "Secret" ConfigMapKind = "ConfigMap" ServiceKind = "Service" DeploymentKind = "Deployment" KnativeSubscriptionKind = "Subscription" KafkaChannelKind = "KafkaChannel" // HTTP Port HttpPortName = "http" // IMPORTANT: HttpServicePort is the inbound port of the service resource. It must be 80 because the // Channel resource's url doesn't currently have a port set. Therefore, any client using just the url // will send to port 80 by default. HttpServicePortNumber = 80 // IMPORTANT: HttpContainerPortNumber must be 8080 due to dependency issues in the channel. This variable // is necessary in order to reconcile the channel resources (service, deployment, etc) correctly. // Refer to: https://knative.dev/eventing-kafka/blob/master/cmd/channel/main.go HttpContainerPortNumber = 8080 // Prometheus MetricsPort MetricsPortName = "metrics" // Reconciliation Error Messages ReconciliationFailedError = "reconciliation failed" FinalizationFailedError = "finalization failed" // Eventing-Kafka Finalizers Prefix EventingKafkaFinalizerPrefix = "eventing-kafka/" KafkaChannelFinalizerSuffix = "kafkachannels.messaging.knative.dev" // Matches default value in client/injection/reconciler/messaging/v1beta1/kafkachannel // Container Names DispatcherContainerName = "kafkachannel-dispatcher" ReceiverContainerName = "kafkachannel-receiver" // Labels AppLabel = "app" KafkaChannelNameLabel = "kafkachannel-name" KafkaChannelNamespaceLabel = "kafkachannel-namespace" KafkaChannelReceiverLabel = "kafkachannel-receiver" // Receiver Label - Used To Mark Deployment As Receiver KafkaChannelDispatcherLabel = "kafkachannel-dispatcher" // Dispatcher Label - Used To Mark Deployment As Dispatcher KafkaTopicLabel = "kafkaTopic" // Topic Label - Indicates The Kafka Topic Of The KnativeChannel // Prometheus ServiceMonitor Selector Labels / Values K8sAppChannelSelectorLabel = "k8s-app" K8sAppChannelSelectorValue = "eventing-kafka-channels" K8sAppDispatcherSelectorLabel = "k8s-app" K8sAppDispatcherSelectorValue = "eventing-kafka-dispatchers" // Health Configuration // Note that many of these are the default values for a corev1 "Probe" struct, // but we explicitly set them here so that the difference between "0, therefore default" // and a specific value doesn't cause CheckDeploymentChanged to create spurious distinctions HealthPort = 8082 ChannelLivenessDelay = 30 ChannelLivenessPeriod = 5 ChannelLivenessTimeout = 10 ChannelLivenessSuccessThreshold = 1 ChannelLivenessFailureThreshold = 3 ChannelReadinessDelay = 30 ChannelReadinessPeriod = 5 ChannelReadinessTimeout = 10 ChannelReadinessSuccessThreshold = 1 ChannelReadinessFailureThreshold = 3 DispatcherLivenessDelay = 30 DispatcherLivenessPeriod = 5 DispatcherLivenessTimeout = 10 DispatcherLivenessSuccessThreshold = 1 DispatcherLivenessFailureThreshold = 3 DispatcherReadinessDelay = 30 DispatcherReadinessPeriod = 5 DispatcherReadinessTimeout = 10 DispatcherReadinessSuccessThreshold = 1 DispatcherReadinessFailureThreshold = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.