Skip to content

Commit eb33859

Browse files
committed
Adapt to breaking hive changes (#364)
# Description Adapted docs, examples and tests to breaking Hive changes in stackabletech/hive-operator#291 Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
1 parent ffa3c6a commit eb33859

10 files changed

Lines changed: 65 additions & 63 deletions

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ All notable changes to this project will be documented in this file.
1313
### Changed
1414

1515
- Updated stackable image versions ([#340]).
16-
- `operator-rs` `0.25.0` -> `0.30.1` ([#344], [#360]).
16+
- `operator-rs` `0.25.0` -> `0.30.2` ([#344], [#360], [#364]).
1717
- LDAP integration tests create all resources in their namespace and not some in the default namespace ([#344]).
1818
- Don't run init container as root and avoid chmod and chowning ([#353]).
1919
- [BREAKING]: Use Product image selection instead of version. `spec.version` has been replaced by `spec.image` ([#356]).
2020
- [BREAKING]: Removed tools image for init container and replaced with Trino product image. This means the latest stackable version has to be used in the product image selection ([#357])
2121
- [BREAKING]: Use `user` and `password` Secret keys for LDAP bind credentials Secrets, instead of env var names ([#362])
22+
- Adapted examples and tests to Hive CRD changes ([#364]).
2223

2324
### Fixed
2425

@@ -36,6 +37,7 @@ All notable changes to this project will be documented in this file.
3637
[#358]: https://github.com/stackabletech/trino-operator/pull/358
3738
[#360]: https://github.com/stackabletech/trino-operator/pull/360
3839
[#362]: https://github.com/stackabletech/trino-operator/pull/362
40+
[#364]: https://github.com/stackabletech/trino-operator/pull/364
3941

4042
## [0.8.0] - 2022-11-07
4143

docs/modules/usage_guide/examples/code/trino-insecure.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ spec:
3939
image:
4040
productVersion: 3.1.3
4141
stackableVersion: 0.2.0
42+
clusterConfig:
43+
database:
44+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
45+
user: APP
46+
password: mine
47+
dbType: derby
4248
metastore:
4349
roleGroups:
4450
default:
4551
replicas: 1
46-
config:
47-
database:
48-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
49-
user: APP
50-
password: mine
51-
dbType: derby

docs/modules/usage_guide/examples/code/trino-secure-internal-tls.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ spec:
6969
image:
7070
productVersion: 3.1.3
7171
stackableVersion: 0.2.0
72+
clusterConfig:
73+
database:
74+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
75+
user: APP
76+
password: mine
77+
dbType: derby
7278
metastore:
7379
roleGroups:
7480
default:
7581
replicas: 1
76-
config:
77-
database:
78-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
79-
user: APP
80-
password: mine
81-
dbType: derby

docs/modules/usage_guide/examples/code/trino-secure-tls-only.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ spec:
5555
image:
5656
productVersion: 3.1.3
5757
stackableVersion: 0.2.0
58+
clusterConfig:
59+
database:
60+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
61+
user: APP
62+
password: mine
63+
dbType: derby
5864
metastore:
5965
roleGroups:
6066
default:
6167
replicas: 1
62-
config:
63-
database:
64-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
65-
user: APP
66-
password: mine
67-
dbType: derby

docs/modules/usage_guide/examples/code/trino-secure-tls.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ spec:
6969
image:
7070
productVersion: 3.1.3
7171
stackableVersion: 0.2.0
72+
clusterConfig:
73+
database:
74+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
75+
user: APP
76+
password: mine
77+
dbType: derby
7278
metastore:
7379
roleGroups:
7480
default:
7581
replicas: 1
76-
config:
77-
database:
78-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
79-
user: APP
80-
password: mine
81-
dbType: derby

examples/simple-trino-cluster-authentication-opa-authorization-s3.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ spec:
107107
image:
108108
productVersion: 3.1.3
109109
stackableVersion: 0.2.0
110+
clusterConfig:
111+
database:
112+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
113+
user: APP
114+
password: mine
115+
dbType: derby
110116
metastore:
111117
roleGroups:
112118
default:
113119
replicas: 1
114-
config:
115-
database:
116-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
117-
user: APP
118-
password: mine
119-
dbType: derby

examples/simple-trino-cluster-hive-ha-s3.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ spec:
4545
image:
4646
productVersion: 3.1.3
4747
stackableVersion: 0.2.0
48+
clusterConfig:
49+
database:
50+
connString: jdbc:postgresql://hive-postgresql:5432/hive
51+
user: hive
52+
password: hive
53+
dbType: postgres
54+
s3:
55+
reference: minio
4856
metastore:
4957
roleGroups:
5058
default:
5159
replicas: 2
52-
config:
53-
database:
54-
connString: jdbc:postgresql://hive-postgresql:5432/hive
55-
user: hive
56-
password: hive
57-
dbType: postgres
58-
s3:
59-
reference: minio
6060
---
6161
apiVersion: s3.stackable.tech/v1alpha1
6262
kind: S3Connection

examples/simple-trino-cluster-s3.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ spec:
4343
image:
4444
productVersion: 3.1.3
4545
stackableVersion: 0.2.0
46+
clusterConfig:
47+
database:
48+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
49+
user: APP
50+
password: mine
51+
dbType: derby
52+
s3:
53+
reference: minio
4654
metastore:
4755
roleGroups:
4856
default:
4957
replicas: 1
50-
config:
51-
database:
52-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
53-
user: APP
54-
password: mine
55-
dbType: derby
56-
s3:
57-
reference: minio
5858
---
5959
apiVersion: s3.stackable.tech/v1alpha1
6060
kind: S3Connection

examples/simple-trino-cluster.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ spec:
3939
image:
4040
productVersion: 3.1.3
4141
stackableVersion: 0.2.0
42+
clusterConfig:
43+
database:
44+
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
45+
user: APP
46+
password: mine
47+
dbType: derby
4248
metastore:
4349
roleGroups:
4450
default:
4551
replicas: 1
46-
config:
47-
database:
48-
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
49-
user: APP
50-
password: mine
51-
dbType: derby

tests/templates/kuttl/smoke/07-install-hive.yaml.j2

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ spec:
2727
image:
2828
productVersion: "{{ test_scenario['values']['hive'].split('-stackable')[0] }}"
2929
stackableVersion: "{{ test_scenario['values']['hive'].split('-stackable')[1] }}"
30+
clusterConfig:
31+
database:
32+
connString: jdbc:postgresql://postgresql:5432/hive
33+
user: hive
34+
password: hive
35+
dbType: postgres
36+
hdfs:
37+
configMap: hdfs
38+
s3:
39+
reference: minio
3040
metastore:
3141
roleGroups:
3242
default:
3343
replicas: 2
34-
config:
35-
database:
36-
connString: jdbc:postgresql://postgresql:5432/hive
37-
user: hive
38-
password: hive
39-
dbType: postgres
40-
s3:
41-
reference: minio
42-
hdfs:
43-
configMap: hdfs

0 commit comments

Comments
 (0)