From c1e63cba7d618b3c39ad3766012ff5e9e6a0b770 Mon Sep 17 00:00:00 2001 From: Eric Haberkorn Date: Wed, 26 Apr 2023 10:00:18 -0400 Subject: [PATCH] add sameness intentions in api package (#17096) --- api/config_entry_intentions.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/api/config_entry_intentions.go b/api/config_entry_intentions.go index d26fddda65..3f03b0875b 100644 --- a/api/config_entry_intentions.go +++ b/api/config_entry_intentions.go @@ -21,15 +21,16 @@ type ServiceIntentionsConfigEntry struct { } type SourceIntention struct { - Name string - Peer string `json:",omitempty"` - Partition string `json:",omitempty"` - Namespace string `json:",omitempty"` - Action IntentionAction `json:",omitempty"` - Permissions []*IntentionPermission `json:",omitempty"` - Precedence int - Type IntentionSourceType - Description string `json:",omitempty"` + Name string + Peer string `json:",omitempty"` + Partition string `json:",omitempty"` + Namespace string `json:",omitempty"` + SamenessGroup string `json:",omitempty" alias:"sameness_group"` + Action IntentionAction `json:",omitempty"` + Permissions []*IntentionPermission `json:",omitempty"` + Precedence int + Type IntentionSourceType + Description string `json:",omitempty"` LegacyID string `json:",omitempty" alias:"legacy_id"` LegacyMeta map[string]string `json:",omitempty" alias:"legacy_meta"`