mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Fix the usage doc and code desc
Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
This commit is contained in:
parent
cd52785427
commit
c9f2954021
2 changed files with 2 additions and 2 deletions
|
@ -306,7 +306,7 @@ type MatchExpression struct {
|
|||
IsMatch bool `json:"-"`
|
||||
}
|
||||
|
||||
// Override MarshalJSON to hide the IsMatch field,
|
||||
// MarshalJSON to hide the IsMatch field,
|
||||
// preventing users from accessing it and avoiding potential API confusion.
|
||||
// This field is returned only after rule processing to indicate if the expression matched the host.
|
||||
func (m *MatchExpression) MarshalJSON() ([]byte, error) {
|
||||
|
|
|
@ -54,7 +54,7 @@ the host.
|
|||
- **description** - *string*
|
||||
This OPTIONAL property provides a brief description of a compatibility set.
|
||||
|
||||
### Example
|
||||
#### Example
|
||||
|
||||
```yaml
|
||||
version: v1alpha1
|
||||
|
|
Loading…
Reference in a new issue