Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HCL #18513

Merged
merged 2 commits into from
Aug 17, 2023
Merged

Fix HCL #18513

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)