You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:
842
846
-->
843
-
x-kubernetes-map-type 注解一个对象以进一步描述其拓扑。此扩展只能在 type 为 object 时使用,并且可能有 2 个可能的值:
847
+
x-kubernetes-map-type 注解一个对象以进一步描述其拓扑。此扩展只能在 type 为 object 时使用,并且可能有 2 个可能的值:
Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual \<= self.spec.maxDesired"}
902
+
Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec.
903
+
The Rule is scoped to the location of the x-kubernetes-validations extension in the schema.
904
+
The `self` variable in the CEL expression is bound to the scoped value.
905
+
Example: - Rule scoped to the root of a resource with a status subresource: {"rule": "self.status.actual \<= self.spec.maxDesired"}
899
906
-->
900
907
901
908
rule 表示将由 CEL 评估的表达式。参考: https://github.com/google/cel-spec。
Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host"
1021
+
Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks.
1022
+
The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host"
MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")"
1031
+
MessageExpression declares a CEL expression that evaluates to the validation failure message that
1032
+
is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string.
1033
+
If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails.
1034
+
If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is
1035
+
produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string
1036
+
with only spaces, or a string that contains line breaks, then the validation failure message will also be produced
1037
+
as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string
1038
+
with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule;
1039
+
the only difference is the return type. Example: "x must be less than max ("+string(self.max)+")"
1000
1040
-->
1041
+
1001
1042
messageExpression 声明一个 CEL 表达式,其计算结果是此规则失败时返回的验证失败消息。
listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
1067
1126
-->
1068
1127
1069
-
listKind 是此资源列表的序列化类型。默认为 "`<kind>List`"。
1128
+
listKind 是此资源列表的序列化类型。默认为 "`<kind>List`"。
1070
1129
1071
1130
-**acceptedNames.shortNames** ([]string)
1072
1131
1073
1132
<!--
1074
1133
shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get \<shortname>`. It must be all lowercase.
1075
1134
-->
1076
1135
1077
-
shortNames 是资源的短名称,在 API 发现文档中公开,并支持客户端调用,如 `kubectl get <shortname>`。必须全部小写。
1136
+
shortNames 是资源的短名称,在 API 发现文档中公开,并支持客户端调用,如 `kubectl get <shortname>`。必须全部小写。
0 commit comments