61 lines
1.8 KiB
Text
61 lines
1.8 KiB
Text
let _concerns_lib = import "schemas/lib/concerns.ncl" in
|
|
let _context_lib = import "schemas/catalog/context.ncl" in
|
|
|
|
{
|
|
Cap = {
|
|
context | _context_lib.ComponentContext | optional,
|
|
|
|
name | String,
|
|
namespace | String,
|
|
catalog_ref | String | optional,
|
|
|
|
image | String | default = "tiago2/cap",
|
|
image_tag | String | default = "3.1.2",
|
|
http_port | Number | default = 3000,
|
|
|
|
domain | String,
|
|
dns_zone | String,
|
|
acme_email | String,
|
|
cluster_issuer | String,
|
|
|
|
gateway_fip | String,
|
|
gateway_name | String | default = "libre-wuji",
|
|
gateway_ns | String | default = "kube-system",
|
|
|
|
valkey_image | String | default = "valkey/valkey",
|
|
valkey_image_tag | String | default = "9-alpine",
|
|
valkey_storage_class | String | default = "longhorn-retain",
|
|
valkey_storage_size | String | default = "500Mi",
|
|
|
|
requires | {
|
|
storage | { size | String, persistent | Bool } | optional,
|
|
ports | Array {
|
|
port | Number,
|
|
exposure | [| 'public, 'private, 'internal |] | default = 'public,
|
|
} | default = [],
|
|
credentials | Array String | default = [],
|
|
} | default = {},
|
|
|
|
provides | {
|
|
service | String | optional,
|
|
port | Number | optional,
|
|
endpoints | Array String | default = [],
|
|
} | default = {},
|
|
|
|
operations | {
|
|
install | Bool | default = true,
|
|
update | Bool | default = true,
|
|
delete | Bool | default = true,
|
|
health | Bool | default = true,
|
|
} | default = {},
|
|
|
|
live_check | {
|
|
strategy | [| 'k8s_pods, 'http_get |] | default = 'k8s_pods,
|
|
scope | [| 'cp_only, 'all_nodes |] | default = 'cp_only,
|
|
} | default = {},
|
|
|
|
concerns | _concerns_lib.ServiceConcerns | optional,
|
|
|
|
..
|
|
},
|
|
}
|