From 029e98c5e30dce06ac749a817a27e3b9f85e9ced Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Thu, 17 Aug 2023 19:14:01 +0000 Subject: [PATCH 1/2] backport of commit b47758dac2a9b7ce2142953cae03372332eb45a3 --- .../usage/create-sameness-groups.mdx | 66 ++++++++++--------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx b/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx index 4cc584b443c..c812c123303 100644 --- a/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx +++ b/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx @@ -224,36 +224,40 @@ The following example demonstrates how to format three different `service-intent - + ```hcl -Kind = "service-intentions" -Name = "api" -Namespace= "store" -Partition="partition-1" -Sources = [ - Name = "api" - Action = "allow" - Namespace = "store" - SamenessGroup = "sameness-group-a" +Kind = "service-intentions" +Name = "api" +Namespace = "store" +Partition = "partition-1" +Sources = [ + { + Name = "api" + Action = "allow" + Namespace = "store" + SamenessGroup = "sameness-group-a" + } ] ``` - + ```hcl -Kind = "service-intentions" -Name = "api" -Namespace= "store" -Partition= "partition-2" -Sources = [ - Name = "api" - Action = "allow" - Namespace = "store" - SamenessGroup = "sameness-group-a" +Kind = "service-intentions" +Name = "api" +Namespace = "store" +Partition = "partition-2" +Sources = [ + { + Name = "api" + Action = "allow" + Namespace = "store" + SamenessGroup = "sameness-group-a" + } ] ``` @@ -262,15 +266,17 @@ Sources = [ ```hcl -Kind = "service-intentions" -Name = "api" -Namespace= "store" -Partition= "partition-1" -Sources = [ - Name = "api" - Action = "allow" - Namespace = "store" - SamenessGroup = "sameness-group-a" +Kind = "service-intentions" +Name = "api" +Namespace = "store" +Partition = "partition-1" +Sources = [ + { + Name = "api" + Action = "allow" + Namespace = "store" + SamenessGroup = "sameness-group-a" + } ] ``` @@ -298,4 +304,4 @@ After creating a sameness group, you can use them with static Consul DNS lookups - [Static Consul DNS lookups](/consul/docs/services/discovery/dns-static-lookups) - [Dynamic Consul DNS lookups](/consul/docs/services/discovery/dns-dynamic-lookups) -- [Failover overview](/consul/docs/connect/failover) \ No newline at end of file +- [Failover overview](/consul/docs/connect/failover) From 5c8a484f3459a1c432dec4f9b5232dd30980f7d5 Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Thu, 17 Aug 2023 19:16:18 +0000 Subject: [PATCH 2/2] backport of commit 7befe3e7e505b876496e9d02684222119631d6a7 --- .../connect/cluster-peering/usage/create-sameness-groups.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx b/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx index c812c123303..1afae3a9c94 100644 --- a/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx +++ b/website/content/docs/connect/cluster-peering/usage/create-sameness-groups.mdx @@ -263,7 +263,7 @@ Sources = [ - + ```hcl Kind = "service-intentions"