63 lines
1.0 KiB
Handlebars
63 lines
1.0 KiB
Handlebars
{{#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'}}" {
|
|
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}}
|
|
{{/if}} |