Skip to content

Commit 02cfc94

Browse files
committed
Merge remote-tracking branch 'origin/main' into new-versions-3.4.1-3.5.0
2 parents e432370 + 53af467 commit 02cfc94

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ jobs:
339339
steps:
340340
- name: Install preflight
341341
run: |
342-
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64
342+
wget https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/1.6.11/preflight-linux-amd64
343343
chmod +x preflight-linux-amd64
344344
- name: Check container
345345
run: ./preflight-linux-amd64 check container "$IMAGE_TAG" > preflight.out

.readme/partials/borrowed/footer.md.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## About The Stackable Data Platform
22

3-
This operator is written and maintained by [Stackable](https://www.stackable.tech) and it is part of a larger data platform.
3+
This operator is written and maintained by [Stackable](https://stackable.tech) and it is part of a larger data platform.
44

55
![Stackable Data Platform Overview](./.readme/static/borrowed/sdp_overview.png)
66

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
It is part of the Stackable Data Platform, a curated selection of the best open source data apps like Kafka, Druid, Trino or Spark, [all](#other-operators) working together seamlessly. Based on Kubernetes, it runs everywhere – [on prem or in the cloud](#supported-platforms).
1+
It is part of the Stackable Data Platform, a curated selection of the best open source data apps like Apache Kafka, Apache Druid, Trino or Apache Spark, [all](#our-operators) working together seamlessly. Based on Kubernetes, it runs everywhere – [on prem or in the cloud](#supported-platforms).

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
This is a Kubernetes operator to manage [Apache Spark](https://spark.apache.org/) jobs.
1515

16-
It is part of the Stackable Data Platform, a curated selection of the best open source data apps like Kafka, Druid, Trino or Spark, [all](#other-operators) working together seamlessly. Based on Kubernetes, it runs everywhere – [on prem or in the cloud](#supported-platforms).
16+
It is part of the Stackable Data Platform, a curated selection of the best open source data apps like Apache Kafka, Apache Druid, Trino or Apache Spark, [all](#our-operators) working together seamlessly. Based on Kubernetes, it runs everywhere – [on prem or in the cloud](#supported-platforms).
1717

1818
## Installation
1919

@@ -37,7 +37,7 @@ If you have a question about the Stackable Data Platform contact us via our [hom
3737

3838
## About The Stackable Data Platform
3939

40-
This operator is written and maintained by [Stackable](https://www.stackable.tech) and it is part of a larger data platform.
40+
This operator is written and maintained by [Stackable](https://stackable.tech) and it is part of a larger data platform.
4141

4242
![Stackable Data Platform Overview](./.readme/static/borrowed/sdp_overview.png)
4343

rust/operator-binary/src/history/history_controller.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use stackable_operator::{
55
builder::{ConfigMapBuilder, ContainerBuilder, ObjectMetaBuilder, PodBuilder, VolumeBuilder},
66
cluster_resources::{ClusterResourceApplyStrategy, ClusterResources},
77
commons::product_image_selection::ResolvedProductImage,
8+
duration::Duration,
89
k8s_openapi::{
910
api::{
1011
apps::v1::{StatefulSet, StatefulSetSpec},
@@ -45,8 +46,8 @@ use stackable_spark_k8s_crd::{
4546
s3logdir::S3LogDir,
4647
tlscerts,
4748
};
49+
use std::collections::HashMap;
4850
use std::{collections::BTreeMap, sync::Arc};
49-
use std::{collections::HashMap, time::Duration};
5051

5152
use snafu::{OptionExt, ResultExt, Snafu};
5253
use stackable_operator::builder::resources::ResourceRequirementsBuilder;
@@ -285,7 +286,7 @@ pub async fn reconcile(shs: Arc<SparkHistoryServer>, ctx: Arc<Ctx>) -> Result<Ac
285286
}
286287

287288
pub fn error_policy(_obj: Arc<SparkHistoryServer>, _error: &Error, _ctx: Arc<Ctx>) -> Action {
288-
Action::requeue(Duration::from_secs(5))
289+
Action::requeue(*Duration::from_secs(5))
289290
}
290291

291292
fn build_config_map(

rust/operator-binary/src/pod_driver_controller.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use stackable_operator::{
2-
client::Client, k8s_openapi::api::core::v1::Pod, kube::runtime::controller::Action,
2+
client::Client, duration::Duration, k8s_openapi::api::core::v1::Pod,
3+
kube::runtime::controller::Action,
34
};
45
use stackable_spark_k8s_crd::{
56
constants::POD_DRIVER_CONTROLLER_NAME, SparkApplication, SparkApplicationStatus,
67
};
78
use std::sync::Arc;
8-
use std::time::Duration;
99

1010
use snafu::{OptionExt, ResultExt, Snafu};
1111
use stackable_operator::logging::controller::ReconcilerError;
@@ -95,5 +95,5 @@ pub async fn reconcile(pod: Arc<Pod>, client: Arc<Client>) -> Result<Action> {
9595
}
9696

9797
pub fn error_policy(_obj: Arc<Pod>, _error: &Error, _ctx: Arc<Client>) -> Action {
98-
Action::requeue(Duration::from_secs(5))
98+
Action::requeue(*Duration::from_secs(5))
9999
}

rust/operator-binary/src/spark_k8s_controller.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ use crate::Ctx;
33
use std::{
44
collections::{BTreeMap, HashMap},
55
sync::Arc,
6-
time::Duration,
76
vec,
87
};
98

10-
use stackable_operator::product_config::writer::to_java_properties_string;
9+
use stackable_operator::{duration::Duration, product_config::writer::to_java_properties_string};
1110
use stackable_spark_k8s_crd::{
1211
constants::*, s3logdir::S3LogDir, tlscerts, RoleConfig, SparkApplication, SparkApplicationRole,
1312
SparkContainer, SubmitConfig,
@@ -863,5 +862,5 @@ fn security_context() -> PodSecurityContext {
863862
}
864863

865864
pub fn error_policy(_obj: Arc<SparkApplication>, _error: &Error, _ctx: Arc<Ctx>) -> Action {
866-
Action::requeue(Duration::from_secs(5))
865+
Action::requeue(*Duration::from_secs(5))
867866
}

0 commit comments

Comments
 (0)