From 61ad5aa4a9c9479da0fadc89e269e27050820f4c 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 d26fddda6..3f03b0875 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"`