Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
littlejo committed Jul 2, 2024
1 parent 88756d9 commit dc9d260
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kind-clustermesh-optimization/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ def combi_optimization(connections_list):
command = []

for connections in connections_list:
command += [local.Command(f"test-{l}", create=f"ls", opts=pulumi.ResourceOptions(depends_on=[c[0]['cmesh'], c[1]['cmesh'], c[2]['cmesh']] + command))]
command += [local.Command(f"test-{l}", create=f"ls", opts=pulumi.ResourceOptions(depends_on=[a['cmesh'] for a in c] + command))]
for conn in connections:
i = conn[0]
j = conn[1]
depends_on = [c[j-1]['cmesh']]
cmesh_connect += [cilium.ClustermeshConnection(f"cmeshConnect-{i}-{j}", destination_context=f"kind-cmesh{i}", opts=pulumi.ResourceOptions(parent=command[l], depends_on=depends_on, providers=[c[j-1]['provider']]))]
k += 1
depends_on += cmesh_connect
depends_on += cmesh_connect + command
l += 1

0 comments on commit dc9d260

Please sign in to comment.