When kind-mount-root is set in spec.yml, emit a single extraMount
mapping the root to /mnt instead of per-volume mounts. This allows
adding new volumes without recreating the kind cluster.
Volumes whose host path is under the root are skipped for individual
extraMounts and their PV paths resolve to /mnt/{relative_path}.
Volumes outside the root keep individual extraMounts as before.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
49 lines
1.7 KiB
Python
49 lines
1.7 KiB
Python
# Copyright © 2023 Vulcanize
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
|
|
|
cluster_name_prefix = "laconic-"
|
|
stack_file_name = "stack.yml"
|
|
spec_file_name = "spec.yml"
|
|
config_file_name = "config.env"
|
|
deployment_file_name = "deployment.yml"
|
|
compose_dir_name = "compose"
|
|
compose_deploy_type = "compose"
|
|
k8s_kind_deploy_type = "k8s-kind"
|
|
k8s_deploy_type = "k8s"
|
|
cluster_id_key = "cluster-id"
|
|
kube_config_key = "kube-config"
|
|
deploy_to_key = "deploy-to"
|
|
network_key = "network"
|
|
http_proxy_key = "http-proxy"
|
|
image_registry_key = "image-registry"
|
|
configmaps_key = "configmaps"
|
|
resources_key = "resources"
|
|
volumes_key = "volumes"
|
|
security_key = "security"
|
|
annotations_key = "annotations"
|
|
labels_key = "labels"
|
|
replicas_key = "replicas"
|
|
node_affinities_key = "node-affinities"
|
|
node_tolerations_key = "node-tolerations"
|
|
kind_config_filename = "kind-config.yml"
|
|
kube_config_filename = "kubeconfig.yml"
|
|
cri_base_filename = "cri-base.json"
|
|
unlimited_memlock_key = "unlimited-memlock"
|
|
runtime_class_key = "runtime-class"
|
|
high_memlock_runtime = "high-memlock"
|
|
high_memlock_spec_filename = "high-memlock-spec.json"
|
|
acme_email_key = "acme-email"
|
|
kind_mount_root_key = "kind-mount-root"
|