open-consul/ui/packages/consul-ui/app/components/consul/service-identity/template/index.hbs

63 lines
1.0 KiB
Handlebars
Raw Normal View History

{{#if (can "use partitions")}}
partition "{{or @partition 'default'}}" {
{{#if (can 'use nspaces')}}
namespace "{{or @nspace 'default'}}" {
service "{{@name}}" {
policy = "write"
}
service "{{@name}}-sidecar-proxy" {
policy = "write"
}
service_prefix "" {
policy = "read"
}
node_prefix "" {
policy = "read"
}
}
{{else}}
service "{{@name}}" {
policy = "write"
}
service "{{@name}}-sidecar-proxy" {
policy = "write"
}
service_prefix "" {
policy = "read"
}
node_prefix "" {
policy = "read"
}
{{/if}}
}
{{else}}
{{#if (can 'use nspaces')}}
namespace "{{or @nspace 'default'}}" {
2020-11-30 18:42:59 +00:00
service "{{@name}}" {
policy = "write"
}
2020-11-30 18:42:59 +00:00
service "{{@name}}-sidecar-proxy" {
policy = "write"
}
service_prefix "" {
policy = "read"
}
node_prefix "" {
policy = "read"
}
}
{{else}}
2020-11-30 18:42:59 +00:00
service "{{@name}}" {
policy = "write"
}
2020-11-30 18:42:59 +00:00
service "{{@name}}-sidecar-proxy" {
policy = "write"
}
service_prefix "" {
policy = "read"
}
node_prefix "" {
policy = "read"
}
{{/if}}
{{/if}}