Skip to content

Commit

Permalink
Reduce details on message.
Browse files Browse the repository at this point in the history
  • Loading branch information
cici37 committed Nov 19, 2021
1 parent 90109b3 commit 5295628
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,7 @@ The CronTab "my-new-cron-object" is invalid:

The `rule` under `x-kubernetes-validations` represents the expression which will be evaluated by CEL.

The `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}".
In above example, if message is unset, the response would be:
The `message` represents the message displayed when validation fails. If message is unset, the above response would be:
```
The CronTab "my-new-cron-object" is invalid:
* spec: Invalid value: map[string]interface {}{"maxReplicas":10, "minReplicas":0, "replicas":20}: failed rule: self.replicas <= self.maxReplicas
Expand Down

0 comments on commit 5295628

Please sign in to comment.