2021-12-06 10:33:44 +00:00
|
|
|
{{#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}}" {
|
2020-06-23 16:58:43 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
2020-11-30 18:42:59 +00:00
|
|
|
service "{{@name}}-sidecar-proxy" {
|
2020-06-23 16:58:43 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
node_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{else}}
|
2020-11-30 18:42:59 +00:00
|
|
|
service "{{@name}}" {
|
2019-05-01 18:09:29 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
2020-11-30 18:42:59 +00:00
|
|
|
service "{{@name}}-sidecar-proxy" {
|
2019-05-01 18:09:29 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
node_prefix "" {
|
|
|
|
policy = "read"
|
2020-06-23 16:58:43 +00:00
|
|
|
}
|
2021-12-06 10:33:44 +00:00
|
|
|
{{/if}}
|
2020-06-23 16:58:43 +00:00
|
|
|
{{/if}}
|