Skip to content

Commit 07cdf59

Browse files
authored
test(smoke): Apply Secret before HiveCluster to prevent a second ControllerRevision (#793)
* test(smoke): Apply Secret before HiveCluster to prevent a second ControllerRevision * Revert "test(smoke): Apply Secret before HiveCluster to prevent a second ControllerRevision" This reverts commit de1b772. * test(smoke): Move HiveCluster to the end
1 parent 0692568 commit 07cdf59

1 file changed

Lines changed: 47 additions & 47 deletions

File tree

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
11
---
2+
apiVersion: s3.stackable.tech/v1alpha1
3+
kind: S3Connection
4+
metadata:
5+
name: minio
6+
spec:
7+
host: minio
8+
port: 9000
9+
accessStyle: Path
10+
credentials:
11+
secretClass: test-hive-s3-secret-class
12+
{% if test_scenario['values']['s3-use-tls'] == 'true' %}
13+
tls:
14+
verification:
15+
server:
16+
caCert:
17+
secretClass: minio-tls-certificates
18+
{% endif %}
19+
---
20+
apiVersion: secrets.stackable.tech/v1alpha1
21+
kind: SecretClass
22+
metadata:
23+
name: test-hive-s3-secret-class
24+
spec:
25+
backend:
26+
k8sSearch:
27+
searchNamespace:
28+
pod: {}
29+
---
30+
apiVersion: v1
31+
kind: Secret
32+
metadata:
33+
name: test-hive-s3-secret
34+
labels:
35+
secrets.stackable.tech/class: test-hive-s3-secret-class
36+
stringData:
37+
accessKey: hive
38+
secretKey: hivehive
39+
---
40+
apiVersion: v1
41+
kind: Secret
42+
metadata:
43+
name: hive-credentials
44+
type: Opaque
45+
stringData:
46+
username: hive
47+
password: hive
48+
---
249
apiVersion: hive.stackable.tech/v1alpha1
350
kind: HiveCluster
451
metadata:
@@ -49,50 +96,3 @@ spec:
4996
hive-site.xml:
5097
common-var: group-value
5198
group-var: group-value
52-
---
53-
apiVersion: s3.stackable.tech/v1alpha1
54-
kind: S3Connection
55-
metadata:
56-
name: minio
57-
spec:
58-
host: minio
59-
port: 9000
60-
accessStyle: Path
61-
credentials:
62-
secretClass: test-hive-s3-secret-class
63-
{% if test_scenario['values']['s3-use-tls'] == 'true' %}
64-
tls:
65-
verification:
66-
server:
67-
caCert:
68-
secretClass: minio-tls-certificates
69-
{% endif %}
70-
---
71-
apiVersion: secrets.stackable.tech/v1alpha1
72-
kind: SecretClass
73-
metadata:
74-
name: test-hive-s3-secret-class
75-
spec:
76-
backend:
77-
k8sSearch:
78-
searchNamespace:
79-
pod: {}
80-
---
81-
apiVersion: v1
82-
kind: Secret
83-
metadata:
84-
name: test-hive-s3-secret
85-
labels:
86-
secrets.stackable.tech/class: test-hive-s3-secret-class
87-
stringData:
88-
accessKey: hive
89-
secretKey: hivehive
90-
---
91-
apiVersion: v1
92-
kind: Secret
93-
metadata:
94-
name: hive-credentials
95-
type: Opaque
96-
stringData:
97-
username: hive
98-
password: hive

0 commit comments

Comments
 (0)