这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Trigger on a Broker backed by the deprecated v1alpha1 KafkaChannel repeatedly re-creates Subscription #624

@matzew

Description

@matzew

Describe the bug

having a Broker backed by the deprecated v1alpha1 KafkaChannel:

apiVersion: v1
kind: ConfigMap
metadata:
  name: broker
data:
  channelTemplateSpec: |-
    apiVersion: messaging.knative.dev/v1alpha1
    kind: KafkaChannel
    spec:
        numPartitions: 8
        replicationFactor: 3
---
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
  name: broker
spec:
  config:
    apiVersion: v1
    kind: ConfigMap
    name: broker

Creating a Trigger,

apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
  name: trigger1
spec:
  broker: broker
  subscriber:
    ref:
      apiVersion: serving.knative.dev/v1
      kind: Service
      name: event-display-broker

repeatedly re-creates the Subscription several times per second. (Along with the updates to the Trigger and Channels, this also creates several Events per each Subscription re-created, causing a significant strain on the API server).

Knative release version
0.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions