Skip to content

Commit 19b0319

Browse files
authored
chore(e2e): add explicit enable flag for manager in test config (#80)
Adds `enable: true` to the manager configuration in the e2e test dragonfly config to make the manager enablement explicit. Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent b43e0ac commit 19b0319

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

test/e2e/config/dragonfly.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,60 @@
11
manager:
2+
enable: true
23
image:
34
repository: dragonflyoss/manager
45
tag: latest
6+
replicas: 1
7+
resources:
8+
requests:
9+
cpu: '0'
10+
memory: '0'
11+
limits:
12+
cpu: '1'
13+
memory: '2Gi'
514
metrics:
615
enable: true
716

817
scheduler:
918
image:
1019
repository: dragonflyoss/scheduler
1120
tag: latest
21+
replicas: 1
22+
resources:
23+
requests:
24+
cpu: '0'
25+
memory: '0'
26+
limits:
27+
cpu: '2'
28+
memory: '4Gi'
1229
metrics:
1330
enable: true
1431

1532
seedClient:
1633
image:
1734
repository: dragonflyoss/client
1835
tag: latest
36+
replicas: 1
37+
resources:
38+
requests:
39+
cpu: '0'
40+
memory: '0'
41+
limits:
42+
cpu: '2'
43+
memory: '4Gi'
1944
metrics:
2045
enable: true
2146

2247
client:
2348
image:
2449
repository: dragonflyoss/client
2550
tag: latest
51+
resources:
52+
requests:
53+
cpu: '0'
54+
memory: '0'
55+
limits:
56+
cpu: '2'
57+
memory: '4Gi'
2658
metrics:
2759
enable: true
2860
dfinit:
@@ -38,3 +70,9 @@ client:
3870
- hostNamespace: docker.io
3971
serverAddr: https://index.docker.io
4072
capabilities: ['pull', 'resolve']
73+
74+
mysql:
75+
enable: true
76+
77+
redis:
78+
enable: true

test/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func InstallDragonfly(configFile string) error {
270270
}
271271

272272
// Install Dragonfly with configuration
273-
cmd = exec.Command("helm", "install", "--wait", "--create-namespace",
273+
cmd = exec.Command("helm", "install", "--wait", "--timeout", "15m", "--create-namespace",
274274
"--namespace", "dragonfly-system", "dragonfly", "dragonfly/dragonfly", "-f", configFile)
275275
_, err := Run(cmd)
276276
return err

0 commit comments

Comments
 (0)