Merge "etcd_volume_size from cluster not CT"
This commit is contained in:
commit
a143ffdef1
@ -159,7 +159,7 @@ class CoreOSK8sTemplateDefinition(k8s_template_def.K8sTemplateDefinition):
|
|||||||
|
|
||||||
template_def.add_priv_net_env_file(env_files, cluster_template,
|
template_def.add_priv_net_env_file(env_files, cluster_template,
|
||||||
cluster)
|
cluster)
|
||||||
template_def.add_etcd_volume_env_file(env_files, cluster_template)
|
template_def.add_etcd_volume_env_file(env_files, cluster)
|
||||||
template_def.add_volume_env_file(env_files, cluster)
|
template_def.add_volume_env_file(env_files, cluster)
|
||||||
template_def.add_lb_env_file(env_files, cluster_template)
|
template_def.add_lb_env_file(env_files, cluster_template)
|
||||||
template_def.add_fip_env_file(env_files, cluster_template, cluster)
|
template_def.add_fip_env_file(env_files, cluster_template, cluster)
|
||||||
|
@ -219,7 +219,7 @@ class K8sFedoraTemplateDefinition(k8s_template_def.K8sTemplateDefinition):
|
|||||||
|
|
||||||
template_def.add_priv_net_env_file(env_files, cluster_template,
|
template_def.add_priv_net_env_file(env_files, cluster_template,
|
||||||
cluster)
|
cluster)
|
||||||
template_def.add_etcd_volume_env_file(env_files, cluster_template)
|
template_def.add_etcd_volume_env_file(env_files, cluster)
|
||||||
template_def.add_volume_env_file(env_files, cluster)
|
template_def.add_volume_env_file(env_files, cluster)
|
||||||
template_def.add_lb_env_file(env_files, cluster_template)
|
template_def.add_lb_env_file(env_files, cluster_template)
|
||||||
template_def.add_fip_env_file(env_files, cluster_template, cluster)
|
template_def.add_fip_env_file(env_files, cluster_template, cluster)
|
||||||
|
@ -500,8 +500,8 @@ def add_volume_env_file(env_files, cluster):
|
|||||||
env_files.append(COMMON_ENV_PATH + 'with_volume.yaml')
|
env_files.append(COMMON_ENV_PATH + 'with_volume.yaml')
|
||||||
|
|
||||||
|
|
||||||
def add_etcd_volume_env_file(env_files, cluster_template):
|
def add_etcd_volume_env_file(env_files, cluster):
|
||||||
if int(cluster_template.labels.get('etcd_volume_size', 0)) < 1:
|
if int(cluster.labels.get('etcd_volume_size', 0)) < 1:
|
||||||
env_files.append(COMMON_ENV_PATH + 'no_etcd_volume.yaml')
|
env_files.append(COMMON_ENV_PATH + 'no_etcd_volume.yaml')
|
||||||
else:
|
else:
|
||||||
env_files.append(COMMON_ENV_PATH + 'with_etcd_volume.yaml')
|
env_files.append(COMMON_ENV_PATH + 'with_etcd_volume.yaml')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user