Skip to content

Commit a248c47

Browse files
committed
chore: Merge branch 'main' into chore/add-crd-versioning
2 parents 5f40302 + e970ac6 commit a248c47

File tree

8 files changed

+51
-52
lines changed

8 files changed

+51
-52
lines changed

Cargo.lock

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

crates/stackable-operator/CHANGELOG.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

9-
- Add more granular telemetry related arguments to `ProductOperatorRun` ([#977]).
10-
- `--no-console-output`: Disables output of `tracing` events to the console (stdout)
11-
- `--rolling-logs`: Enables output `tracing` events to a rolling log file
12-
- `--rolling-logs-period`: Sets the time period after which log files are rolled over
13-
- `--otlp-traces`: Enables exporting of traces via OTLP
14-
- `--otlp-logs`: Enables exporting of logs via OTLP
9+
- BREAKING: Inject vector aggregator address into vector config file using an environment variable ([#1000]).
1510

1611
### Changed
1712

@@ -21,14 +16,35 @@ All notable changes to this project will be documented in this file.
2116
- The `static` authentication provider must now be imported using `r#static`.
2217
- Import are now more granular in general.
2318

19+
[#968]: https://github.com/stackabletech/operator-rs/pull/968
20+
[#1000]: https://github.com/stackabletech/operator-rs/pull/1000
21+
22+
## [0.89.1] - 2025-04-02
23+
24+
### Changed
25+
26+
- Make fields of `TelemetryArguments` public ([#998]).
27+
28+
[#998]: https://github.com/stackabletech/operator-rs/pull/998
29+
30+
## [0.89.0] - 2025-04-02
31+
32+
### Added
33+
34+
- Add more granular telemetry related arguments to `ProductOperatorRun` ([#977]).
35+
- `--no-console-output`: Disables output of `tracing` events to the console (stdout)
36+
- `--rolling-logs`: Enables output `tracing` events to a rolling log file
37+
- `--rolling-logs-period`: Sets the time period after which log files are rolled over
38+
- `--otlp-traces`: Enables exporting of traces via OTLP
39+
- `--otlp-logs`: Enables exporting of logs via OTLP
40+
2441
### Removed
2542

2643
- BREAKING: Remove `--tracing-target` argument and field from `ProductOperatorRun`.
2744
Use the new, more granular arguments instead ([#977]).
2845
- BREAKING: Remove `initialize_logging` helper function from `stackable_operator::logging` ([#977]).
2946
- Remove `opentelemetry-jaeger` dependency ([#977]).
3047

31-
[#968]: https://github.com/stackabletech/operator-rs/pull/968
3248
[#977]: https://github.com/stackabletech/operator-rs/pull/977
3349

3450
## [0.88.0] - 2025-04-02

crates/stackable-operator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "stackable-operator"
33
description = "Stackable Operator Framework"
4-
version = "0.88.0"
4+
version = "0.89.1"
55
authors.workspace = true
66
license.workspace = true
77
edition.workspace = true

crates/stackable-operator/src/cli.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,23 +284,23 @@ impl ProductConfigPath {
284284
pub struct TelemetryArguments {
285285
/// Disable console output.
286286
#[arg(long, env)]
287-
no_console_output: bool,
287+
pub no_console_output: bool,
288288

289289
/// Enable logging to rolling files located in the specified DIRECTORY.
290290
#[arg(long, env, value_name = "DIRECTORY", group = "rolling_logs_group")]
291-
rolling_logs: Option<PathBuf>,
291+
pub rolling_logs: Option<PathBuf>,
292292

293293
/// Time PERIOD after which log files are rolled over.
294294
#[arg(long, env, value_name = "PERIOD", requires = "rolling_logs_group")]
295-
rolling_logs_period: Option<RollingPeriod>,
295+
pub rolling_logs_period: Option<RollingPeriod>,
296296

297297
/// Enable exporting traces via OTLP.
298298
#[arg(long, env)]
299-
otlp_traces: bool,
299+
pub otlp_traces: bool,
300300

301301
/// Enable exporting logs via OTLP.
302302
#[arg(long, env)]
303-
otlp_logs: bool,
303+
pub otlp_logs: bool,
304304
}
305305

306306
#[derive(Clone, Debug, PartialEq, Eq, strum::Display, strum::EnumString, clap::ValueEnum)]

crates/stackable-operator/src/product_logging/framework.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const SHUTDOWN_FILE: &str = "shutdown";
3131

3232
/// File name of the Vector config file
3333
pub const VECTOR_CONFIG_FILE: &str = "vector.yaml";
34+
/// Key in the discovery ConfigMap that holds the vector aggregator address
35+
const VECTOR_AGGREGATOR_CM_KEY: &str = "ADDRESS";
36+
/// Name of the env var in the vector container that holds the vector aggregator address
37+
const VECTOR_AGGREGATOR_ENV_NAME: &str = "VECTOR_AGGREGATOR_ADDRESS";
3438

3539
#[derive(Debug, Snafu)]
3640
pub enum LoggingError {
@@ -678,7 +682,6 @@ pub fn create_logback_config(
678682
/// # }
679683
/// #
680684
/// # let logging = fragment::validate::<Logging<Container>>(default_logging()).unwrap();
681-
/// # let vector_aggregator_address = "vector-aggregator:6000";
682685
/// # let role_group = RoleGroupRef {
683686
/// # cluster: ObjectRef::<Pod>::new("test-cluster"),
684687
/// # role: "role".into(),
@@ -702,7 +705,6 @@ pub fn create_logback_config(
702705
/// product_logging::framework::VECTOR_CONFIG_FILE,
703706
/// product_logging::framework::create_vector_config(
704707
/// &role_group,
705-
/// vector_aggregator_address,
706708
/// vector_log_config,
707709
/// ),
708710
/// );
@@ -712,7 +714,6 @@ pub fn create_logback_config(
712714
/// ```
713715
pub fn create_vector_config<T>(
714716
role_group: &RoleGroupRef<T>,
715-
vector_aggregator_address: &str,
716717
config: Option<&AutomaticContainerLogConfig>,
717718
) -> String
718719
where
@@ -1330,7 +1331,7 @@ sinks:
13301331
inputs:
13311332
- extended_logs
13321333
type: vector
1333-
address: {vector_aggregator_address}
1334+
address: ${VECTOR_AGGREGATOR_ENV_NAME}
13341335
"#,
13351336
namespace = role_group.cluster.namespace.clone().unwrap_or_default(),
13361337
cluster_name = role_group.cluster.name,
@@ -1386,6 +1387,7 @@ sinks:
13861387
/// # image_pull_policy: "Always".into(),
13871388
/// # pull_secrets: None,
13881389
/// # };
1390+
/// # let vector_aggregator_config_map_name = "vector-aggregator-discovery";
13891391
///
13901392
/// let mut pod_builder = PodBuilder::new();
13911393
/// pod_builder.metadata(ObjectMetaBuilder::default().build());
@@ -1425,6 +1427,7 @@ sinks:
14251427
/// "log",
14261428
/// logging.containers.get(&Container::Vector),
14271429
/// resources,
1430+
/// vector_aggregator_config_map_name,
14281431
/// ).unwrap());
14291432
/// }
14301433
///
@@ -1436,6 +1439,7 @@ pub fn vector_container(
14361439
log_volume_name: &str,
14371440
log_config: Option<&ContainerLogConfig>,
14381441
resources: ResourceRequirements,
1442+
vector_aggregator_config_map_name: &str,
14391443
) -> Result<Container, LoggingError> {
14401444
let log_level = if let Some(ContainerLogConfig {
14411445
choice: Some(ContainerLogConfigChoice::Automatic(automatic_log_config)),
@@ -1473,6 +1477,11 @@ kill $vector_pid
14731477
"
14741478
)])
14751479
.add_env_var("VECTOR_LOG", log_level.to_vector_literal())
1480+
.add_env_var_from_config_map(
1481+
VECTOR_AGGREGATOR_ENV_NAME,
1482+
vector_aggregator_config_map_name,
1483+
VECTOR_AGGREGATOR_CM_KEY,
1484+
)
14761485
.add_volume_mount(config_volume_name, STACKABLE_CONFIG_DIR)
14771486
.context(AddVolumeMountsSnafu)?
14781487
.add_volume_mount(log_volume_name, STACKABLE_LOG_DIR)

crates/stackable-telemetry/CHANGELOG.md

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

55
## [Unreleased]
66

7+
## [0.4.0] - 2025-04-02
8+
79
### Added
810

911
- BREAKING: Allow customization of the rolling file appender [#995].

crates/stackable-telemetry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stackable-telemetry"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors.workspace = true
55
license.workspace = true
66
edition.workspace = true

deny.toml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,6 @@ ignore = [
2020
# TODO: Remove after https://github.com/RustCrypto/RSA/pull/394 is merged and v0.10.0 is released
2121
"RUSTSEC-2023-0071",
2222

23-
# https://rustsec.org/advisories/RUSTSEC-2024-0384
24-
# "instant" is unmaintained
25-
#
26-
# The upstream "kube" crate also silenced this in https://github.com/kube-rs/kube/commit/4f1e889f265da8f19f03f60683569cae1a154fda
27-
# They/we are actively working on migrating kube from backoff to backon, which removes the transitive dependency on
28-
# instant, in https://github.com/kube-rs/kube/pull/1653.
29-
#
30-
# TODO: Remove after https://github.com/kube-rs/kube/pull/1653 is released
31-
"RUSTSEC-2024-0384",
32-
33-
# Advisory: https://rustsec.org/advisories/RUSTSEC-2025-0012
34-
# The [backoff](https://crates.io/crates/backoff) crate is no longer actively maintained. For exponential backoffs/retrying, you can use the [backon](https://crates.io/crates/backon) crate.
35-
# Announcement: https://github.com/ihrwein/backoff/issues/66
36-
#
37-
# TODO: Remove after https://github.com/kube-rs/kube/pull/1653 is released
38-
"RUSTSEC-2025-0012",
39-
40-
# Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0436
41-
# The creator of the crate `paste` has stated in the [`README.md`](https://github.com/dtolnay/paste/blob/master/README.md)
42-
# that this project is not longer maintained as well as archived the repository
43-
# Announcement: https://github.com/dtolnay/paste
44-
#
45-
# This comes in via aws-lc-rs. There is a PR open to migrate from `paste` to `concat-idents`.
46-
# https://github.com/aws/aws-lc-rs/pull/723
47-
#
48-
# TODO: Remove after the migration is done and aws-lc-rs doesn't use paste anymore.
49-
"RUSTSEC-2024-0436",
50-
5123
]
5224

5325
[bans]

0 commit comments

Comments
 (0)