Skip to content

Commit 4e46788

Browse files
committed
set lb name in manifests and set lb nodeset name to uuid[:5] if name was not provided
1 parent 6e96eba commit 4e46788

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

exordos/manifests/core.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ resources:
192192
# Core LB
193193
$core.network.lb:
194194
core_lb:
195+
name: core_lb
195196
project_id: "12345678-c625-4fee-81d5-f691897b8142"
196197
type:
197198
kind: core_agent

exordos/manifests/examples/load_balancer.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ resources:
107107

108108
$core.network.lb:
109109
example_lb:
110+
name: example_lb
110111
project_id: "12345678-c625-4fee-81d5-f691897b8142"
111112
# You may set LB type with some params, for ex. more RAM:
112113
# type:

exordos_core/network/lb/builders/iaas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def create_infra(
5353

5454
node_set = models.TargetNodeSet(
5555
uuid=instance.uuid,
56-
name=f"{self._name_prefix}-{instance.name}",
56+
name=f"{self._name_prefix}-{instance.name or instance.uuid[:4]}",
5757
cores=instance.type.cpu,
5858
ram=instance.type.ram,
5959
replicas=instance.type.nodes_number,

0 commit comments

Comments
 (0)