Skip to content

Commit

Permalink
Bump operator-rs to 0.55.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi committed Oct 16, 2023
1 parent 6a17374 commit 83fd303
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 23 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.7"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.54.0" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.55.0" }
strum = { version = "0.25", features = ["derive"] }
tokio = { version = "1.29", features = ["full"] }
tracing = "0.1"
Expand Down
22 changes: 22 additions & 0 deletions deploy/helm/superset-operator/configs/properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,25 @@ properties:
required: false
asOfVersion: "0.0.0"
description: "Row limit when requesting chart data. Corresponds to ROW_LIMIT"
- property: &webserverTimeout
propertyNames:
- name: "SUPERSET_WEBSERVER_TIMEOUT"
kind:
type: "file"
file: "superset_config.py"
datatype:
type: "integer"
defaultValues:
- fromVersion: "0.0.0"
value: "60" # 1 min
recommendedValues:
# The default timeout of Superset is 60s which is way to low when querying "big data" systems.
# Especially Trino queries often take longer.
# see [the Superset docs](https://superset.apache.org/docs/frequently-asked-questions#why-are-my-queries-timing-out).
- fromVersion: "0.0.0"
value: "300" # 5 min
roles:
- name: "node"
required: true
asOfVersion: "0.0.0"
description: "Maximum number of seconds a Superset request can take before timing out. This settings effect the maximum duration a query to an underlying datasource can take. If you get timeout errors before your query returns the result you can need to increase this timeout. Corresponds to SUPERSET_WEBSERVER_TIMEOUT"
40 changes: 30 additions & 10 deletions deploy/helm/superset-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -633,20 +633,22 @@ spec:
default:
enableVectorAgent: null
containers: {}
description: Logging configuration
properties:
containers:
additionalProperties:
anyOf:
- required:
- custom
- {}
description: Fragment derived from `ContainerLogConfigChoice`
description: Log configuration of the container
properties:
console:
description: Configuration for the console appender
nullable: true
properties:
level:
description: Log levels
description: The log level threshold. Log events with a lower log level are discarded.
enum:
- TRACE
- DEBUG
Expand All @@ -662,14 +664,16 @@ spec:
description: Custom log configuration provided in a ConfigMap
properties:
configMap:
description: ConfigMap containing the log configuration files
nullable: true
type: string
type: object
file:
description: Configuration for the file appender
nullable: true
properties:
level:
description: Log levels
description: The log level threshold. Log events with a lower log level are discarded.
enum:
- TRACE
- DEBUG
Expand All @@ -683,9 +687,10 @@ spec:
type: object
loggers:
additionalProperties:
description: Configuration of a logger
properties:
level:
description: Log levels
description: The log level threshold. Log events with a lower log level are discarded.
enum:
- TRACE
- DEBUG
Expand All @@ -698,10 +703,13 @@ spec:
type: string
type: object
default: {}
description: Configuration per logger
type: object
type: object
description: Log configuration per container
type: object
enableVectorAgent:
description: Wether or not to deploy a container with the Vector log agent
nullable: true
type: boolean
type: object
Expand All @@ -714,6 +722,7 @@ spec:
min: null
max: null
storage: {}
description: CPU and memory limits for Superset pods
properties:
cpu:
default:
Expand Down Expand Up @@ -742,11 +751,12 @@ spec:
type: object
type: object
rowLimit:
description: Row limit when requesting chart data. Corresponds to ROW_LIMIT.
format: int32
nullable: true
type: integer
webserverTimeout:
description: Maximum number of seconds a Superset request can take before timing out. See https://docs.stackable.tech/home/nightly/concepts/duration for more information on the duration format
description: Maximum time period a Superset request can take before timing out. This setting affects the maximum duration a query to an underlying datasource can take. If you get timeout errors before your query returns the result you may need to increase this timeout. Corresponds to SUPERSET_WEBSERVER_TIMEOUT. See https://docs.stackable.tech/home/nightly/concepts/duration for more information on the duration format.
nullable: true
type: string
type: object
Expand Down Expand Up @@ -4071,20 +4081,22 @@ spec:
default:
enableVectorAgent: null
containers: {}
description: Logging configuration
properties:
containers:
additionalProperties:
anyOf:
- required:
- custom
- {}
description: Fragment derived from `ContainerLogConfigChoice`
description: Log configuration of the container
properties:
console:
description: Configuration for the console appender
nullable: true
properties:
level:
description: Log levels
description: The log level threshold. Log events with a lower log level are discarded.
enum:
- TRACE
- DEBUG
Expand All @@ -4100,14 +4112,16 @@ spec:
description: Custom log configuration provided in a ConfigMap
properties:
configMap:
description: ConfigMap containing the log configuration files
nullable: true
type: string
type: object
file:
description: Configuration for the file appender
nullable: true
properties:
level:
description: Log levels
description: The log level threshold. Log events with a lower log level are discarded.
enum:
- TRACE
- DEBUG
Expand All @@ -4121,9 +4135,10 @@ spec:
type: object
loggers:
additionalProperties:
description: Configuration of a logger
properties:
level:
description: Log levels
description: The log level threshold. Log events with a lower log level are discarded.
enum:
- TRACE
- DEBUG
Expand All @@ -4136,10 +4151,13 @@ spec:
type: string
type: object
default: {}
description: Configuration per logger
type: object
type: object
description: Log configuration per container
type: object
enableVectorAgent:
description: Wether or not to deploy a container with the Vector log agent
nullable: true
type: boolean
type: object
Expand All @@ -4152,6 +4170,7 @@ spec:
min: null
max: null
storage: {}
description: CPU and memory limits for Superset pods
properties:
cpu:
default:
Expand Down Expand Up @@ -4180,11 +4199,12 @@ spec:
type: object
type: object
rowLimit:
description: Row limit when requesting chart data. Corresponds to ROW_LIMIT.
format: int32
nullable: true
type: integer
webserverTimeout:
description: Maximum number of seconds a Superset request can take before timing out. See https://docs.stackable.tech/home/nightly/concepts/duration for more information on the duration format
description: Maximum time period a Superset request can take before timing out. This setting affects the maximum duration a query to an underlying datasource can take. If you get timeout errors before your query returns the result you may need to increase this timeout. Corresponds to SUPERSET_WEBSERVER_TIMEOUT. See https://docs.stackable.tech/home/nightly/concepts/duration for more information on the duration format.
nullable: true
type: string
type: object
Expand Down
10 changes: 4 additions & 6 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use stackable_operator::{
},
},
config::{fragment, fragment::Fragment, fragment::ValidationError, merge::Merge},
duration::Duration,
k8s_openapi::apimachinery::pkg::api::resource::Quantity,
kube::{runtime::reflector::ObjectRef, CustomResource, ResourceExt},
memory::{BinaryMultiple, MemoryQuantity},
Expand All @@ -27,6 +26,7 @@ use stackable_operator::{
role_utils::{GenericRoleConfig, Role, RoleGroup, RoleGroupRef},
schemars::{self, JsonSchema},
status::condition::{ClusterCondition, HasStatusCondition},
time::Duration,
};
use std::collections::BTreeMap;
use strum::{Display, EnumIter, EnumString, IntoEnumIterator};
Expand Down Expand Up @@ -299,11 +299,9 @@ pub struct SupersetConfig {
/// Maximum time period a Superset request can take before timing out. This
/// setting affects the maximum duration a query to an underlying datasource
/// can take. If you get timeout errors before your query returns the result
/// you may need to increase this timeout. Corresponds to
/// SUPERSET_WEBSERVER_TIMEOUT.
#[fragment_attrs(schemars(
description = "Maximum time period a Superset request can take before timing out. See https://docs.stackable.tech/home/nightly/concepts/duration for more information on the duration format"
))]
/// you may need to increase this timeout. Corresponds to SUPERSET_WEBSERVER_TIMEOUT.
/// See https://docs.stackable.tech/home/nightly/concepts/duration for more
/// information on the duration format.
pub webserver_timeout: Option<Duration>,

/// CPU and memory limits for Superset pods
Expand Down
2 changes: 1 addition & 1 deletion rust/operator-binary/src/druid_connection_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use stackable_operator::{
builder::{ContainerBuilder, ObjectMetaBuilder, PodSecurityContextBuilder},
client::Client,
commons::product_image_selection::ResolvedProductImage,
duration::Duration,
k8s_openapi::api::{
batch::v1::{Job, JobSpec},
core::v1::{ConfigMap, PodSpec, PodTemplateSpec},
Expand All @@ -18,6 +17,7 @@ use stackable_operator::{
},
logging::controller::ReconcilerError,
status::condition::{ClusterConditionStatus, ClusterConditionType},
time::Duration,
};
use stackable_superset_crd::{
druidconnection::{DruidConnection, DruidConnectionStatus, DruidConnectionStatusCondition},
Expand Down
2 changes: 1 addition & 1 deletion rust/operator-binary/src/superset_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use stackable_operator::{
authentication::AuthenticationClassProvider, product_image_selection::ResolvedProductImage,
rbac::build_rbac_resources,
},
duration::Duration,
k8s_openapi::{
api::{
apps::v1::{StatefulSet, StatefulSetSpec},
Expand All @@ -47,6 +46,7 @@ use stackable_operator::{
compute_conditions, operations::ClusterOperationsConditionBuilder,
statefulset::StatefulSetConditionBuilder,
},
time::Duration,
};
use stackable_superset_crd::{
authentication::SuperSetAuthenticationConfigResolved, Container, SupersetCluster,
Expand Down

0 comments on commit 83fd303

Please sign in to comment.