mirror of https://github.com/status-im/consul.git
api: ensure new partition fields are omit empty for back compat (#11585)
This commit is contained in:
parent
9db6645352
commit
e6956893fb
|
@ -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