open-consul/ui/packages/consul-ui/app/components/consul/service-identity/template
John Cowen a90a65c9d8
ui: Adds partition support to Service and Node Identity templates (#11696)
2021-12-06 10:33:44 +00:00
..
README.mdx ui: Adds partition support to Service and Node Identity templates (#11696) 2021-12-06 10:33:44 +00:00
index.hbs ui: Adds partition support to Service and Node Identity templates (#11696) 2021-12-06 10:33:44 +00:00

README.mdx

# Consul::ServiceIdentity::Template

The component is a text-only template that represents what a NodeIdentity
policy looks like. The policy generated here is **not** what is sent back to
the backend, instead its just a visual representation of what happens in the
backend when you save a NodeIdentity.

```hbs preview-template
<pre><code><Consul::ServiceIdentity::Template
  @nspace={{'default-est'}}
  @partition={{'default-ier'}}
  @name={{"Policy-Name"}}
/></code></pre>
```

## Arguments

| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `nspace` | `string` | `default` | The name of the current namespace  |
| `partition` | `string` | `default` | The name of the current partition  |
| `name` | `string` |  | The name of the policy the will be used to
interpolate the various policy names  |

## See

- [Template Source Code](./index.hbs)

---