Skip to content

Commit 9d24f34

Browse files
committed
adapt to op-rs 0.79.0
1 parent 45c1e7a commit 9d24f34

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file.
88

99
- Make spark-env.sh configurable via `configOverrides` ([#473]).
1010
- The Spark history server can now service logs from HDFS compatible systems ([#479]).
11+
- The operator can now run on Kubernetes clusters using a non-default cluster domain. It should automatically detect the
12+
correct domain to use, but you can also use the env var `KUBERNETES_CLUSTER_DOMAIN` to set the domain explicitly
13+
or use the helm-chart property `kubernetesClusterDomain` ([#xxx]).
1114

1215
### Changed
1316

@@ -35,6 +38,7 @@ All notable changes to this project will be documented in this file.
3538
[#472]: https://github.com/stackabletech/spark-k8s-operator/pull/472
3639
[#473]: https://github.com/stackabletech/spark-k8s-operator/pull/473
3740
[#479]: https://github.com/stackabletech/spark-k8s-operator/pull/479
41+
[#xxx]: https://github.com/stackabletech/spark-k8s-operator/pull/xxx
3842

3943
## [24.7.0] - 2024-07-24
4044

Cargo.lock

Lines changed: 16 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ serde = { version = "1.0", features = ["derive"] }
2121
serde_json = "1.0"
2222
serde_yaml = "0.9"
2323
snafu = "0.8"
24-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.78.0" }
24+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.79.0" }
2525
strum = { version = "0.26", features = ["derive"] }
2626
tokio = { version = "1.39", features = ["full"] }
2727
tracing = "0.1"

deploy/helm/spark-k8s-operator/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ nodeSelector: {}
4141
tolerations: []
4242

4343
affinity: {}
44+
45+
# When running on a non-default Kubernetes cluster domain and the auto detection is not working correctly,
46+
# you can set your custom cluster domain here.
47+
# See the https://docs.stackable.tech/home/stable/guides/kubernetes-cluster-domain guide for details
48+
# kubernetesClusterDomain: my-cluster.local

rust/operator-binary/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ async fn main() -> anyhow::Result<()> {
7272
);
7373

7474
let client =
75-
stackable_operator::client::create_client(Some(OPERATOR_NAME.to_string())).await?;
75+
stackable_operator::client::initialize_operator(Some(OPERATOR_NAME.to_string()))
76+
.await?;
7677

7778
let ctx = Ctx {
7879
client: client.clone(),

0 commit comments

Comments
 (0)