zh:reference-templates-checknothing (#2578)

This commit is contained in:
Vincent 2018-09-11 17:25:42 +08:00 committed by istio-bot
parent 8a0a3f84b4
commit 72d2005706
1 changed files with 18 additions and 1 deletions

View File

@ -2,4 +2,21 @@
title: Check Nothing title: Check Nothing
description: 该模板不包含任何数据,用于测试。 description: 该模板不包含任何数据,用于测试。
weight: 40 weight: 40
--- ---
`checknothing` 模板是一个空的数据块,在不同的测试场景中都可应用。
配置样例:
{{< text yaml >}}
apiVersion: "config.istio.io/v1alpha2"
kind: checknothing
metadata:
name: denyrequest
namespace: istio-system
spec:
{{< /text >}}
## 模板
`checknothing` 适用于不需要任何输入参数的前置检查类的适配器。这一模板主要用于测试。