provisioning-catalog/components/formbricks/nickel/contracts.ncl

70 lines
2.1 KiB
Text
Raw Normal View History

let _concerns_lib = import "schemas/lib/concerns.ncl" in
let _context_lib = import "schemas/catalog/context.ncl" in
{
Formbricks = {
context | _context_lib.ComponentContext | optional,
name | String,
namespace | String,
catalog_ref | String | optional,
image | String | default = "ghcr.io/formbricks/formbricks",
image_tag | String | default = "latest",
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",
storage_class | String | default = "longhorn-retain",
storage_size | String | default = "2Gi",
db_host | String,
db_port | Number | default = 5432,
db_name | String | default = "formbricks",
db_user | String | default = "formbricks",
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,
..
},
}