This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.10.4.7. トリガーを使用したイベントのフィルター
以下のトリガーの例では、type: dev.knative.samples.helloworld
属性のあるイベントのみがイベントコンシューマーに到達します。
$ kn trigger create foo --broker default --filter type=dev.knative.samples.helloworld --sink svc:mysvc
複数の属性を使用してイベントをフィルターすることもできます。以下の例は、type、source、および extension 属性を使用してイベントをフィルターする方法を示しています。
$ kn trigger create foo --broker default --sink svc:mysvc \ --filter type=dev.knative.samples.helloworld \ --filter source=dev.knative.samples/helloworldsource \ --filter myextension=my-extension-value