前语
针对 Knative Eventing v0.14.0 版别对这些新功能特性进行解读,让你快速对 v0.14.0 版别有所了解。
新特性
新增 APIServerSource 和 ContainerSource
ContainerSource 从头回归到 eventing 中,别的新增了 APIServerSource
新增 namespace controller
新增 namespace controller,支撑在每个 namespace 中创立 broker
Broker 支撑多租
Knative供给了运用channel 进行事情路由的多租户Broker完成。能够挑选 Channel 进行布置,例如InMemoryChannel(开发测验场景),Kafka,Nats等。多租Broker创立示例:
apiVersion: eventing.knative.dev/v1beta1
kind: Broker
metadata:
name: my-other-broker
namespace: my-namespace
annotations:
eventing.knative.dev/broker.class: MTChannelBasedBroker
spec:
config:
apiVersion: v1
kind: ConfigMap
name: my-kafka-channel
namespace: my-namespace
其它要害信息
- 更新 sdk-go 到 v2.0.0-RC1
- 重命名 Trigger condition Subscribed 为 SubscriptionReady
- 运用 In-Memory Channel v1beta1 API 作为默许 channel.
- 晋级 ContainerSources 到最新的 v1alpha2 版别,而且删去原有的 CRD: containersources.sources.eventing.knative.dev。
- 以下资源在新版别中被移除去: CronJobSource/sources.eventing.knative.dev,
ApiServerSource/sources.eventing.knative.dev, SinkBinding/sources.eventing.knative.dev,
ContainerSource/sources.eventing.knative.dev。
总结
本次 Knative Eventing v0.14.0 版别开端支撑 Broker 多租的完成,满意了用户关于事情处理多租场景的支撑。欢迎对 Knative 有爱好的一同沟通。