Skip to content

Commit

Permalink
Fix HCL (#18513)
Browse files Browse the repository at this point in the history
* Fix HCL

* Update create-sameness-groups.mdx
  • Loading branch information
lkysow authored Aug 17, 2023
1 parent b80c525 commit c533a51
Showing 1 changed file with 37 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,53 +224,59 @@ The following example demonstrates how to format three different `service-intent

<CodeTabs tabs={[ "dc1-partition-1", "dc1-partition-2", "dc2-partition-1" ]}>

<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-9">
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-11">


```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"
}
]
```

</CodeBlockConfig>

<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-9">
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-11">

```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"
}
]
```

</CodeBlockConfig>

<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-9">
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-11">

```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"
}
]
```

Expand Down Expand Up @@ -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)
- [Failover overview](/consul/docs/connect/failover)

0 comments on commit c533a51

Please sign in to comment.