provisioning-catalog/components/longhorn/nickel/defaults.ncl

47 lines
1.9 KiB
Text
Raw Normal View History

let _presets = (import "schemas/lib/concerns_presets.ncl").presets in
{
longhorn | default = {
mode | default = 'taskserv,
version | default = "1.11.1",
namespace | default = "longhorn-system",
storage_class_name | default = "longhorn",
is_default_class | default = true,
reclaim_policy | default = 'Retain,
allow_volume_expansion | default = true,
demote_default_class | default = "hcloud-volumes",
replica_count | default = 2,
default_data_path | default = "/var/lib/longhorn",
storage_network_interface | default = "",
storage_nodes | default = [],
node_selector | default = {},
taint_toleration | default = "",
ui_enabled | default = true,
ui_ingress_enabled | default = false,
ui_ingress_host | default = "",
ui_ingress_class | default = "cilium",
ui_ingress_tls_secret | default = "",
ui_ingress_annotations | default = {},
private_gateway_name | default = "",
private_gateway_namespace | default = "kube-system",
private_gateway_hostname | default = "",
operations | default = {
install = true,
reinstall = true,
delete = true,
health = true,
},
live_check | default = {
strategy = 'k8s_pods,
scope = 'cp_only,
namespace = "longhorn-system",
selector = "longhorn-manager",
},
# ServiceConcerns default — Longhorn storage backend; infra_storage_managed with custom backup reason.
concerns | default = _presets.infra_storage_managed & {
backup | force = { kind = 'disabled, reason = "engine state captured by SystemBackupDef.longhorn_engine; per-PV data is captured by per-component BackupPolicies" },
},
},
}