Skip to content

Commit bf0b62e

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/experimental-entra-backend
2 parents d7b088c + bd9464f commit bf0b62e

File tree

11 files changed

+61
-78
lines changed

11 files changed

+61
-78
lines changed

CHANGELOG.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,31 @@ 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
- Support experimental user-info-fetcher Entra backend to fetch user groups ([#712]).
1115

1216
### Changed
1317

14-
- BREAKING: Replace stackable-operator `initialize_logging` with stackable-telemetry `Tracing` ([#703], [#710]).
18+
- BREAKING: Replace stackable-operator `initialize_logging` with stackable-telemetry `Tracing` ([#703], [#710], [#715]).
1519
- operator-binary:
16-
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG`.
17-
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG`.
20+
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG_LEVEL`.
21+
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG_LEVEL`.
1822
- The file log directory was set by `OPA_OPERATOR_LOG_DIRECTORY`, and is now set
19-
by `ROLLING_LOGS_DIR` (or via `--rolling-logs <DIRECTORY>`).
23+
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
2024
- bundle-builder:
21-
- The console log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `CONSOLE_LOG`.
22-
- The file log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `FILE_LOG`.
25+
- The console log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `CONSOLE_LOG_LEVEL`.
26+
- The file log level was set by `OPA_BUNDLE_BUILDER_LOG`, and is now set by `FILE_LOG_LEVEL`.
2327
- The file log directory was set by `OPA_BUNDLE_BUILDER_LOG_DIRECTORY`, and is now set
24-
by `ROLLING_LOGS_DIR` (or via `--rolling-logs <DIRECTORY>`).
28+
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
2529
- user-info-fetcher:
26-
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG`.
27-
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG`.
30+
- The console log level was set by `OPA_OPERATOR_LOG`, and is now set by `CONSOLE_LOG_LEVEL`.
31+
- The file log level was set by `OPA_OPERATOR_LOG`, and is now set by `FILE_LOG_LEVEL`.
2832
- The file log directory was set by `OPA_OPERATOR_LOG_DIRECTORY`, and is now set
29-
by `ROLLING_LOGS_DIR` (or via `--rolling-logs <DIRECTORY>`).
33+
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
3034
- Replace stackable-operator `print_startup_string` with `tracing::info!` with fields.
3135
- BREAKING: Inject the vector aggregator address into the vector config using the env var `VECTOR_AGGREGATOR_ADDRESS` instead
3236
of having the operator write it to the vector config ([#707]).
@@ -40,6 +44,7 @@ All notable changes to this project will be documented in this file.
4044
[#709]: https://github.com/stackabletech/opa-operator/pull/709
4145
[#710]: https://github.com/stackabletech/opa-operator/pull/710
4246
[#712]: https://github.com/stackabletech/opa-operator/pull/712
47+
[#715]: https://github.com/stackabletech/opa-operator/pull/715
4348

4449
## [25.3.0] - 2025-03-21
4550

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.

docs/modules/opa/examples/getting_started/getting_started.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,9 @@ fi
1919

2020
case "$1" in
2121
"helm")
22-
echo "Adding 'stackable-dev' Helm Chart repository"
23-
# tag::helm-add-repo[]
24-
helm repo add stackable-dev https://repo.stackable.tech/repository/helm-dev/
25-
# end::helm-add-repo[]
26-
echo "Updating Helm repo"
27-
helm repo update
28-
2922
echo "Installing operators with Helm"
3023
# tag::helm-install-operators[]
31-
helm install --wait opa-operator stackable-dev/opa-operator --version 0.0.0-dev
24+
helm install --wait opa-operator oci://oci.stackable.tech/sdp-charts/opa-operator --version 0.0.0-dev
3225
# end::helm-install-operators[]
3326
;;
3427
"stackablectl")

docs/modules/opa/examples/getting_started/getting_started.sh.j2

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,9 @@ fi
1919

2020
case "$1" in
2121
"helm")
22-
echo "Adding 'stackable-dev' Helm Chart repository"
23-
# tag::helm-add-repo[]
24-
helm repo add {{ helm.repo_name }} {{ helm.repo_url }}
25-
# end::helm-add-repo[]
26-
echo "Updating Helm repo"
27-
helm repo update
28-
2922
echo "Installing operators with Helm"
3023
# tag::helm-install-operators[]
31-
helm install --wait opa-operator {{ helm.repo_name }}/opa-operator --version {{ versions.opa }}
24+
helm install --wait opa-operator oci://{{ helm.repo_url }}/{{ helm.repo_name }}/opa-operator --version {{ versions.opa }}
3225
# end::helm-install-operators[]
3326
;;
3427
"stackablectl")

docs/modules/opa/pages/getting_started/installation.adoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@ Helm::
3434
+
3535
--
3636
You can also use Helm to install the operator.
37-
Add the Stackable Helm repository:
3837
39-
[source,shell]
40-
----
41-
include::example$getting_started/getting_started.sh[tag=helm-add-repo]
42-
----
38+
NOTE: `helm repo` subcommands are not supported for OCI registries. The operators are installed directly, without adding the Helm Chart repository first.
4339
44-
Then install the Stackable OPA operator:
40+
Install the Stackable OPA operator:
4541
4642
[source,shell]
4743
----

docs/templating_vars.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
helm:
3-
repo_name: stackable-dev
4-
repo_url: https://repo.stackable.tech/repository/helm-dev/
3+
repo_name: sdp-charts
4+
repo_url: oci.stackable.tech
55
versions:
66
opa: 0.0.0-dev

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)
@@ -1203,11 +1203,7 @@ fn build_opa_start_command(merged_config: &v1alpha1::OpaConfig, container_name:
12031203
// See https://stackoverflow.com/a/8048493
12041204

12051205
let logging_redirects = format!(
1206-
"&> >(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)",
1207-
file = file_log_level,
1208-
console = console_log_level,
1209-
decision = decision_log_level,
1210-
server = server_log_level
1206+
"&> >(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)"
12111207
);
12121208

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

0 commit comments

Comments
 (0)