Skip to content

Commit 27d0a1f

Browse files
chore!: Bump stackable-operator to 0.92.0 (#715)
* chore: Bump stackable-operator to 0.92.0 * chore: Adjust env var for bundle builder container * chore: Update changelog * chore: Adjust bundle builder file log level env var * chore: Add CONSOLE_LOG_LEVEL env var to bundle builder container * chore: Adjust changelog * chore: Apply suggestion Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com> --------- Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent 79368d8 commit 27d0a1f

File tree

6 files changed

+54
-53
lines changed

6 files changed

+54
-53
lines changed

CHANGELOG.md

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

77
### Added
88

9+
- Adds new telemetry CLI arguments and environment variables ([#715]).
10+
- Use `--file-log-max-files` (or `FILE_LOG_MAX_FILES`) to limit the number of log files kept.
11+
- Use `--file-log-rotation-period` (or `FILE_LOG_ROTATION_PERIOD`) to configure the frequency of rotation.
12+
- Use `--console-log-format` (or `CONSOLE_LOG_FORMAT`) to set the format to `plain` (default) or `json`.
913
- Log the startup event for bundle-builder and user-info-fetcher ([#703]).
1014

1115
### Changed
1216

13-
- BREAKING: Replace stackable-operator `initialize_logging` with stackable-telemetry `Tracing` ([#703], [#710]).
17+
- BREAKING: Replace stackable-operator `initialize_logging` with stackable-telemetry `Tracing` ([#703], [#710], [#715]).
1418
- operator-binary:
15-
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG`.
16-
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG`.
19+
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG_LEVEL`.
20+
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG_LEVEL`.
1721
- The file log directory was set by `OPA_OPERATOR_LOG_DIRECTORY`, and is now set
18-
by `ROLLING_LOGS_DIR` (or via `--rolling-logs <DIRECTORY>`).
22+
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
1923
- bundle-builder:
20-
- The console log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `CONSOLE_LOG`.
21-
- The file log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `FILE_LOG`.
24+
- The console log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `CONSOLE_LOG_LEVEL`.
25+
- The file log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `FILE_LOG_LEVEL`.
2226
- The file log directory was set by `OPA_BUNDLE_BUILDER_LOG_DIRECTORY`, and is now set
23-
by `ROLLING_LOGS_DIR` (or via `--rolling-logs <DIRECTORY>`).
27+
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
2428
- user-info-fetcher:
25-
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG`.
26-
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG`.
29+
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG_LEVEL`.
30+
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG_LEVEL`.
2731
- The file log directory was set by `OPA_OPERATOR_LOG_DIRECTORY`, and is now set
28-
by `ROLLING_LOGS_DIR` (or via `--rolling-logs <DIRECTORY>`).
32+
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
2933
- Replace stackable-operator `print_startup_string` with `tracing::info!` with fields.
3034
- BREAKING: Inject the vector aggregator address into the vector config using the env var `VECTOR_AGGREGATOR_ADDRESS` instead
3135
of having the operator write it to the vector config ([#707]).
@@ -38,6 +42,7 @@ All notable changes to this project will be documented in this file.
3842
[#707]: https://github.com/stackabletech/opa-operator/pull/707
3943
[#709]: https://github.com/stackabletech/opa-operator/pull/709
4044
[#710]: https://github.com/stackabletech/opa-operator/pull/710
45+
[#715]: https://github.com/stackabletech/opa-operator/pull/715
4146

4247
## [25.3.0] - 2025-03-21
4348

Cargo.lock

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

Cargo.nix

Lines changed: 16 additions & 16 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
@@ -11,7 +11,7 @@ repository = "https://github.com/stackabletech/opa-operator"
1111

1212
[workspace.dependencies]
1313
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.7.0" }
14-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.91.1" }
14+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned"], tag = "stackable-operator-0.92.0" }
1515

1616
anyhow = "1.0"
1717
axum = "0.8"

crate-hashes.json

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

rust/operator-binary/src/controller.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,8 @@ fn build_server_rolegroup_daemonset(
782782
.context(AddVolumeMountSnafu)?
783783
.resources(merged_config.resources.to_owned().into());
784784

785+
let console_and_file_log_level = bundle_builder_log_level(merged_config);
786+
785787
cb_bundle_builder
786788
.image_from_product_image(resolved_product_image) // inherit the pull policy and pull secrets, and then...
787789
.image(opa_bundle_builder_image) // ...override the image
@@ -797,12 +799,10 @@ fn build_server_rolegroup_daemonset(
797799
&bundle_builder_container_name,
798800
)])
799801
.add_env_var_from_field_path("WATCH_NAMESPACE", FieldPathEnvVar::Namespace)
802+
.add_env_var("CONSOLE_LOG_LEVEL", console_and_file_log_level.to_string())
803+
.add_env_var("FILE_LOG_LEVEL", console_and_file_log_level.to_string())
800804
.add_env_var(
801-
"CONSOLE_LOG",
802-
bundle_builder_log_level(merged_config).to_string(),
803-
)
804-
.add_env_var(
805-
"ROLLING_LOGS_DIR",
805+
"FILE_LOG_DIRECTORY",
806806
format!("{STACKABLE_LOG_DIR}/{bundle_builder_container_name}"),
807807
)
808808
.add_volume_mount(BUNDLES_VOLUME_NAME, BUNDLES_DIR)
@@ -1180,11 +1180,7 @@ fn build_opa_start_command(merged_config: &v1alpha1::OpaConfig, container_name:
11801180
// See https://stackoverflow.com/a/8048493
11811181

11821182
let logging_redirects = format!(
1183-
"&> >(CONSOLE_LEVEL={console} FILE_LEVEL={file} DECISION_LEVEL={decision} SERVER_LEVEL={server} OPA_ROLLING_LOG_FILE_SIZE_BYTES={OPA_ROLLING_LOG_FILE_SIZE_BYTES} OPA_ROLLING_LOG_FILES={OPA_ROLLING_LOG_FILES} STACKABLE_LOG_DIR={STACKABLE_LOG_DIR} CONTAINER_NAME={container_name} process-logs)",
1184-
file = file_log_level,
1185-
console = console_log_level,
1186-
decision = decision_log_level,
1187-
server = server_log_level
1183+
"&> >(CONSOLE_LEVEL={console_log_level} FILE_LEVEL={file_log_level} DECISION_LEVEL={decision_log_level} SERVER_LEVEL={server_log_level} OPA_ROLLING_LOG_FILE_SIZE_BYTES={OPA_ROLLING_LOG_FILE_SIZE_BYTES} OPA_ROLLING_LOG_FILES={OPA_ROLLING_LOG_FILES} STACKABLE_LOG_DIR={STACKABLE_LOG_DIR} CONTAINER_NAME={container_name} process-logs)"
11881184
);
11891185

11901186
// TODO: Think about adding --shutdown-wait-period, as suggested by https://github.com/open-policy-agent/opa/issues/2764

0 commit comments

Comments
 (0)