add ability to specify local_path_provisioner data dir for PersistentVolumes

This commit is contained in:
2024-12-29 12:32:25 +03:00
parent 46e057e41b
commit c819d4f51f
15 changed files with 30 additions and 227 deletions

View File

@@ -52,6 +52,7 @@ type Additional struct {
LocalPathProvisioner struct {
StorageClassName string `yaml:"storage_class_name" env-default:"local-path"`
ReclaimPolicy string `yaml:"reclaim_policy" env-default:"Delete"`
DataDir string `yaml:"data_dir" env-default:"/opt/local-path-provisioner/"`
} `yaml:"local_path_provisioner"`
Longhorn struct {
ChartRef string `yaml:"chart_ref" env-default:"kube-forge/longhorn"`