Skip to content

Commit aa21bd7

Browse files
committed
fix(tests): reduce resources and logging rolegroup length (<16)
1 parent 3f40bae commit aa21bd7

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

tests/templates/kuttl/logging/04-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ timeout: 600
66
apiVersion: apps/v1
77
kind: StatefulSet
88
metadata:
9-
name: test-nifi-node-automatic-log-config
9+
name: test-nifi-node-automatic-log
1010
status:
1111
readyReplicas: 1
1212
replicas: 1
1313
---
1414
apiVersion: apps/v1
1515
kind: StatefulSet
1616
metadata:
17-
name: test-nifi-node-custom-log-config
17+
name: test-nifi-node-custom-log
1818
status:
1919
readyReplicas: 1
2020
replicas: 1

tests/templates/kuttl/logging/04-install-nifi.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ spec:
110110
# Quicker startup, and we only have a single node
111111
"nifi.cluster.flow.election.max.wait.time": "10 secs"
112112
roleGroups:
113-
automatic-log-config:
113+
automatic-log:
114114
replicas: 1
115115
config:
116116
logging:
@@ -151,7 +151,7 @@ spec:
151151
- name: prepared-logs
152152
configMap:
153153
name: prepared-logs
154-
custom-log-config:
154+
custom-log:
155155
replicas: 1
156156
config:
157157
logging:

tests/templates/kuttl/logging/nifi-vector-aggregator-values.yaml.j2

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,37 @@ customConfig:
2828
type: filter
2929
inputs: [validEvents]
3030
condition: >-
31-
.pod == "test-nifi-node-automatic-log-config-0" &&
31+
.pod == "test-nifi-node-automatic-log-0" &&
3232
.container == "nifi"
3333
filteredAutomaticLogConfigNodeGitSync:
3434
type: filter
3535
inputs: [validEvents]
3636
condition: >-
37-
.pod == "test-nifi-node-automatic-log-config-0" &&
37+
.pod == "test-nifi-node-automatic-log-0" &&
3838
.container == "git-sync-0"
3939
filteredAutomaticLogConfigNodeGitSyncInit:
4040
type: filter
4141
inputs: [validEvents]
4242
condition: >-
43-
.pod == "test-nifi-node-automatic-log-config-0" &&
43+
.pod == "test-nifi-node-automatic-log-0" &&
4444
.container == "git-sync-0-init"
4545
filteredAutomaticLogConfigNodeVector:
4646
type: filter
4747
inputs: [validEvents]
4848
condition: >-
49-
.pod == "test-nifi-node-automatic-log-config-0" &&
49+
.pod == "test-nifi-node-automatic-log-0" &&
5050
.container == "vector"
5151
filteredCustomLogConfigNodeNifi:
5252
type: filter
5353
inputs: [validEvents]
5454
condition: >-
55-
.pod == "test-nifi-node-custom-log-config-0" &&
55+
.pod == "test-nifi-node-custom-log-0" &&
5656
.container == "nifi"
5757
filteredCustomLogConfigNodeVector:
5858
type: filter
5959
inputs: [validEvents]
6060
condition: >-
61-
.pod == "test-nifi-node-custom-log-config-0" &&
61+
.pod == "test-nifi-node-custom-log-0" &&
6262
.container == "vector"
6363
filteredInvalidEvents:
6464
type: filter

tests/templates/kuttl/resources/02-assert.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ timeout: 1800
77
apiVersion: apps/v1
88
kind: StatefulSet
99
metadata:
10-
name: test-nifi-node-resources-from-role
10+
name: test-nifi-node-from-role
1111
spec:
1212
template:
1313
spec:
@@ -30,7 +30,7 @@ status:
3030
apiVersion: apps/v1
3131
kind: StatefulSet
3232
metadata:
33-
name: test-nifi-node-resources-from-role-group
33+
name: test-nifi-node-from-role-group
3434
spec:
3535
template:
3636
spec:
@@ -53,7 +53,7 @@ status:
5353
apiVersion: apps/v1
5454
kind: StatefulSet
5555
metadata:
56-
name: test-nifi-node-resources-from-pod-overrides
56+
name: test-nifi-node-pod-overrides
5757
spec:
5858
template:
5959
spec:

tests/templates/kuttl/resources/02-install-nifi.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ spec:
7373
# Quicker startup, and we only have a single node
7474
"nifi.cluster.flow.election.max.wait.time": "10 secs"
7575
roleGroups:
76-
resources-from-role:
76+
from-role:
7777
replicas: 1
78-
resources-from-role-group:
78+
from-role-group:
7979
config:
8080
resources:
8181
cpu:
@@ -84,7 +84,7 @@ spec:
8484
memory:
8585
limit: 3Gi
8686
replicas: 1
87-
resources-from-pod-overrides:
87+
pod-overrides:
8888
podOverrides:
8989
spec:
9090
containers:

tests/templates/kuttl/resources/03-assert.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ metadata:
55
name: check-jvm-heap-args
66
timeout: 600
77
commands:
8-
- script: kubectl get cm -n $NAMESPACE test-nifi-node-resources-from-role -o yaml | grep -E 'java.arg..=-Xmx1638m' | xargs test ! -z
8+
- script: kubectl get cm -n $NAMESPACE test-nifi-node-from-role -o yaml | grep -E 'java.arg..=-Xmx1638m' | xargs test ! -z
99
---
1010
apiVersion: kuttl.dev/v1beta1
1111
kind: TestAssert
1212
metadata:
1313
name: check-jvm-heap-args
1414
timeout: 600
1515
commands:
16-
- script: kubectl get cm -n $NAMESPACE test-nifi-node-resources-from-role-group -o yaml | grep -E 'java.arg..=-Xms2457m' | xargs test ! -z
16+
- script: kubectl get cm -n $NAMESPACE test-nifi-node-from-role-group -o yaml | grep -E 'java.arg..=-Xms2457m' | xargs test ! -z

0 commit comments

Comments
 (0)