api: ensure new partition fields are omit empty for back compat (#11585)
This commit is contained in:
parent
573670e8f7
commit
9793e1c1cd
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
api: ensure new partition fields are omit empty for compatibility with older versions of consul
|
||||||
|
```
|
|
@ -32,8 +32,8 @@ type Intention struct {
|
||||||
|
|
||||||
// SourcePartition and DestinationPartition cannot be wildcards "*" and
|
// SourcePartition and DestinationPartition cannot be wildcards "*" and
|
||||||
// are not compatible with legacy intentions.
|
// are not compatible with legacy intentions.
|
||||||
SourcePartition string
|
SourcePartition string `json:",omitempty"`
|
||||||
DestinationPartition string
|
DestinationPartition string `json:",omitempty"`
|
||||||
|
|
||||||
// SourceType is the type of the value for the source.
|
// SourceType is the type of the value for the source.
|
||||||
SourceType IntentionSourceType
|
SourceType IntentionSourceType
|
||||||
|
|
Loading…
Reference in New Issue