Skip to content

Commit

Permalink
use v3 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Nov 19, 2024
1 parent 7c77bed commit b171046
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/go/kubernetes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func main() {
Farm_ids: pulumi.IntArray{
pulumi.Int(1),
},
Ygg: pulumi.Bool(true),
}, pulumi.Provider(tfProvider))
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions examples/go/network/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func main() {
Farm_ids: pulumi.IntArray{
pulumi.Int(1),
},
Ygg: pulumi.Bool(true),
}, pulumi.Provider(tfProvider))
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions examples/go/virtual_machine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func main() {
Farm_ids: pulumi.IntArray{
pulumi.Int(1),
},
Ygg: pulumi.Bool(true),
}, pulumi.Provider(tfProvider))
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions examples/go/zdb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func main() {
Farm_ids: pulumi.IntArray{
pulumi.Int(1),
},
Ygg: pulumi.Bool(true),
}, pulumi.Provider(tfProvider))
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions examples/nodejs/kubernetes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const scheduler = new threefold.Scheduler("scheduler", {
mru: 6,
sru: 6,
farm_ids: [1],
ygg: true,
}, {
provider: provider,
});
Expand Down
3 changes: 2 additions & 1 deletion examples/nodejs/network/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const network = new threefold.Network("network", {
description: "test network",
nodes: [scheduler.nodes[0]],
ip_range: "10.1.0.0/16",
mycelium: true
mycelium: true,
ygg: true,
}, {
provider: provider,
dependsOn: [scheduler],
Expand Down
1 change: 1 addition & 0 deletions examples/nodejs/virtual_machine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const scheduler = new threefold.Scheduler("scheduler", {
mru: 0.25,
sru: 2,
farm_ids: [1],
ygg: true,
}, {
provider: provider,
});
Expand Down
1 change: 1 addition & 0 deletions examples/nodejs/zdb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const scheduler = new threefold.Scheduler("scheduler", {
mru: 0.25,
sru: 2,
farm_ids: [1],
ygg: true,
}, {
provider: provider,
});
Expand Down
1 change: 1 addition & 0 deletions examples/python/kubernetes/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
mru=6,
sru=6,
farm_ids=[1],
ygg=True,
opts = pulumi.ResourceOptions(provider=provider))
network = threefold.Network("network",
name=f"net_{rand_str}",
Expand Down
1 change: 1 addition & 0 deletions examples/python/network/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
nodes=[scheduler.nodes[0]],
ip_range="10.1.0.0/16",
mycelium=True,
ygg=True,
opts=pulumi.ResourceOptions(provider=provider,
depends_on=[scheduler]))
pulumi.export("node_deployment_id", network.node_deployment_id)
Expand Down
1 change: 1 addition & 0 deletions examples/python/virtual_machine/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
nodes=[scheduler.nodes[0]],
ip_range="10.1.0.0/16",
mycelium=True,
ygg=True,
opts=pulumi.ResourceOptions(provider=provider,
depends_on=[scheduler]))

Expand Down
1 change: 1 addition & 0 deletions examples/python/zdb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
mru=0.25,
sru=2,
farm_ids=[1],
ygg=True,
opts = pulumi.ResourceOptions(provider=provider))
deployment = threefold.Deployment("deployment",
node_id=scheduler.nodes[0],
Expand Down
1 change: 1 addition & 0 deletions examples/yaml/kubernetes/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ resources:
mru: 6
sru: 6
farm_ids: [1]
ygg: true

network:
type: threefold:Network
Expand Down
1 change: 1 addition & 0 deletions examples/yaml/network/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources:
provider: ${provider}
properties:
farm_ids: [1]
ygg: true

network:
type: threefold:Network
Expand Down
1 change: 1 addition & 0 deletions examples/yaml/virtual_machine/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ resources:
- ${scheduler.nodes[0]}
ip_range: 10.1.0.0/16
mycelium: true
ygg: true
# mycelium_keys:
# manual_nodeID: 9751c596c7c951aedad1a5f78f18b59515064adf660e0d55abead65e6fbbd627 # hex encoded 32 bytes [example]

Expand Down
1 change: 1 addition & 0 deletions examples/yaml/zdb/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resources:
mru: 0.25 # 256 megabytes
sru: 2
farm_ids: [1]
ygg: true

deployment:
type: threefold:Deployment
Expand Down
1 change: 1 addition & 0 deletions tests/examples/kubernetes/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resources:
mru: 6
sru: 6
farm_ids: [1]
ygg: true

network:
type: threefold:Network
Expand Down
1 change: 1 addition & 0 deletions tests/examples/network/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ resources:
provider: ${provider}
properties:
farm_ids: [1]
ygg: true

network:
type: threefold:Network
Expand Down
1 change: 1 addition & 0 deletions tests/examples/virtual_machine/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resources:
mru: 0.25 # 256 megabytes
sru: 2
farm_ids: [1]
ygg: true

network:
type: threefold:Network
Expand Down
1 change: 1 addition & 0 deletions tests/examples/zdb/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resources:
mru: 0.25 # 256 megabytes
sru: 2
farm_ids: [1]
ygg: true

deployment:
type: threefold:Deployment
Expand Down

0 comments on commit b171046

Please sign in to comment.