Skip to content

Commit 81f44d9

Browse files
committed
test: add shutdown timeout
1 parent 1042dd1 commit 81f44d9

18 files changed

+40
-0
lines changed

tests/templates/kuttl/cluster-operation/10-install-zk.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
{% endif %}
1414
servers:
1515
config:
16+
gracefulShutdownTimeout: 1m
1617
logging:
1718
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
1819
roleGroups:

tests/templates/kuttl/cluster-operation/20-install-hdfs.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ spec:
2727
reconciliationPaused: false
2828
nameNodes:
2929
config:
30+
gracefulShutdownTimeout: 1m
3031
logging:
3132
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3233
roleGroups:
3334
default:
3435
replicas: 2
3536
dataNodes:
3637
config:
38+
gracefulShutdownTimeout: 1m
3739
logging:
3840
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3941
roleGroups:
4042
default:
4143
replicas: 1
4244
journalNodes:
4345
config:
46+
gracefulShutdownTimeout: 1m
4447
logging:
4548
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4649
roleGroups:

tests/templates/kuttl/cluster-operation/30-stop-hdfs.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ spec:
2727
reconciliationPaused: false
2828
nameNodes:
2929
config:
30+
gracefulShutdownTimeout: 1m
3031
logging:
3132
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3233
roleGroups:
3334
default:
3435
replicas: 2
3536
dataNodes:
3637
config:
38+
gracefulShutdownTimeout: 1m
3739
logging:
3840
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3941
roleGroups:
4042
default:
4143
replicas: 1
4244
journalNodes:
4345
config:
46+
gracefulShutdownTimeout: 1m
4447
logging:
4548
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4649
roleGroups:

tests/templates/kuttl/cluster-operation/40-pause-hdfs.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ spec:
2727
reconciliationPaused: true
2828
nameNodes:
2929
config:
30+
gracefulShutdownTimeout: 1m
3031
logging:
3132
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3233
roleGroups:
3334
default:
3435
replicas: 2
3536
dataNodes:
3637
config:
38+
gracefulShutdownTimeout: 1m
3739
logging:
3840
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3941
roleGroups:
4042
default:
4143
replicas: 1
4244
journalNodes:
4345
config:
46+
gracefulShutdownTimeout: 1m
4447
logging:
4548
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4649
roleGroups:

tests/templates/kuttl/cluster-operation/50-restart-hdfs.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@ spec:
2727
reconciliationPaused: false
2828
nameNodes:
2929
config:
30+
gracefulShutdownTimeout: 1m
3031
logging:
3132
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3233
roleGroups:
3334
default:
3435
replicas: 2
3536
dataNodes:
3637
config:
38+
gracefulShutdownTimeout: 1m
3739
logging:
3840
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3941
roleGroups:
4042
default:
4143
replicas: 1
4244
journalNodes:
4345
config:
46+
gracefulShutdownTimeout: 1m
4447
logging:
4548
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4649
roleGroups:

tests/templates/kuttl/external-access/20-install-zk.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
{% endif %}
1414
servers:
1515
config:
16+
gracefulShutdownTimeout: 1m
1617
logging:
1718
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
1819
roleGroups:

tests/templates/kuttl/external-access/30-install-hdfs.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ spec:
2626
{% endif %}
2727
nameNodes:
2828
config:
29+
gracefulShutdownTimeout: 1m
2930
listenerClass: external-stable
3031
logging:
3132
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
@@ -34,6 +35,7 @@ spec:
3435
replicas: 2
3536
dataNodes:
3637
config:
38+
gracefulShutdownTimeout: 1m
3739
listenerClass: external-unstable
3840
logging:
3941
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
@@ -42,6 +44,7 @@ spec:
4244
replicas: 1
4345
journalNodes:
4446
config:
47+
gracefulShutdownTimeout: 1m
4548
logging:
4649
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4750
roleGroups:

tests/templates/kuttl/kerberos/10-install-zk.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
{% endif %}
1414
servers:
1515
config:
16+
gracefulShutdownTimeout: 1m
1617
logging:
1718
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
1819
roleGroups:

tests/templates/kuttl/kerberos/20-install-hdfs.txt.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
{% endif %}
2929
nameNodes:
3030
config:
31+
gracefulShutdownTimeout: 1m
3132
logging:
3233
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3334
containers:
@@ -44,13 +45,15 @@ spec:
4445
replicas: 2
4546
dataNodes:
4647
config:
48+
gracefulShutdownTimeout: 1m
4749
logging:
4850
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
4951
roleGroups:
5052
default:
5153
replicas: 2
5254
journalNodes:
5355
config:
56+
gracefulShutdownTimeout: 1m
5457
logging:
5558
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
5659
roleGroups:

tests/templates/kuttl/logging/02-install-zookeeper.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ spec:
1313
{% endif %}
1414
servers:
1515
config:
16+
gracefulShutdownTimeout: 1m
1617
logging:
1718
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
1819
roleGroups:

0 commit comments

Comments
 (0)