From 8db96b87f6f5e0a3765bf3d1ab519cf332004b28 Mon Sep 17 00:00:00 2001 From: Siegfried Weber Date: Thu, 19 Nov 2026 09:28:31 +0000 Subject: [PATCH] test(orphaned-resources): Assert datanode readiness and cap the grace periods (#862) --- .../templates/kuttl/orphaned-resources/02-install-hdfs.yaml.j2 | 3 +++ tests/templates/kuttl/orphaned-resources/04-assert.yaml | 3 +++ .../orphaned-resources/04-change-datanode-rolegroup.yaml.j2 | 1 + 3 files changed, 7 insertions(+) diff --git a/tests/templates/kuttl/orphaned-resources/02-install-hdfs.yaml.j2 b/tests/templates/kuttl/orphaned-resources/02-install-hdfs.yaml.j2 index a362f908..268716ac 100644 --- a/tests/templates/kuttl/orphaned-resources/02-install-hdfs.yaml.j2 +++ b/tests/templates/kuttl/orphaned-resources/02-install-hdfs.yaml.j2 @@ -20,6 +20,7 @@ spec: {% endif %} nameNodes: config: + gracefulShutdownTimeout: 1m logging: enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: @@ -27,6 +28,7 @@ spec: replicas: 2 dataNodes: config: + gracefulShutdownTimeout: 1m logging: enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: @@ -36,6 +38,7 @@ spec: replicas: 1 journalNodes: config: + gracefulShutdownTimeout: 1m logging: enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: diff --git a/tests/templates/kuttl/orphaned-resources/04-assert.yaml b/tests/templates/kuttl/orphaned-resources/04-assert.yaml index 2ec7d018..61ad0237 100644 --- a/tests/templates/kuttl/orphaned-resources/04-assert.yaml +++ b/tests/templates/kuttl/orphaned-resources/04-assert.yaml @@ -7,6 +7,9 @@ apiVersion: apps/v1 kind: StatefulSet metadata: name: test-hdfs-datanode-newrolegroup +status: + readyReplicas: 1 + replicas: 1 --- apiVersion: v1 kind: Pod diff --git a/tests/templates/kuttl/orphaned-resources/04-change-datanode-rolegroup.yaml.j2 b/tests/templates/kuttl/orphaned-resources/04-change-datanode-rolegroup.yaml.j2 index bd1de80e..f03dd3de 100644 --- a/tests/templates/kuttl/orphaned-resources/04-change-datanode-rolegroup.yaml.j2 +++ b/tests/templates/kuttl/orphaned-resources/04-change-datanode-rolegroup.yaml.j2 @@ -14,6 +14,7 @@ spec: pullPolicy: IfNotPresent dataNodes: config: + gracefulShutdownTimeout: 1m logging: enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }} roleGroups: