Skip to content

Commit b703b78

Browse files
authored
Update export-to-cluster-logging-lokistack to detect storageclass (#3357)
1 parent 97c8d51 commit b703b78

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tests/e2e-openshift/export-to-cluster-logging-lokistack/chainsaw-test.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ spec:
2020
file: install-minio-assert.yaml
2121
- name: Create the LokiStack instance
2222
try:
23+
- command:
24+
entrypoint: oc
25+
args:
26+
- get
27+
- storageclass
28+
- -o
29+
- jsonpath={.items[0].metadata.name}
30+
outputs:
31+
- name: STORAGE_CLASS_NAME
32+
value: ($stdout)
2333
- apply:
2434
file: install-loki.yaml
2535
- assert:

tests/e2e-openshift/export-to-cluster-logging-lokistack/install-loki.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ spec:
1212
secret:
1313
name: logging-loki-s3
1414
type: s3
15-
storageClassName: gp2-csi
15+
storageClassName: ($STORAGE_CLASS_NAME)
1616
tenants:
1717
mode: openshift-logging

0 commit comments

Comments
 (0)