Skip to content

feat: Make containerdebug configurable - #967

Open
Maleware wants to merge 8 commits into
mainfrom
spike/containerdebug-switch
Open

Maleware wants to merge 8 commits into
mainfrom
spike/containerdebug-switch

Conversation

@Maleware

@Maleware Maleware commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Description

Spike for stackabletech/operator-rs#1308

part of stackabletech/issues#884

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • CRD documentation for all fields, following the style guide.
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible
  • Links to generated (nightly) docs added
  • Release note snippet added

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

Maleware and others added 4 commits October 30, 2026 15:54
…switch

# Conflicts:
#	Cargo.lock
#	Cargo.nix
#	Cargo.toml
#	crate-hashes.json
#	rust/operator-binary/src/controller/build/command.rs
#	rust/operator-binary/src/crd/mod.rs
@Maleware
Maleware marked this pull request as ready for review November 10, 2026 15:15
@Maleware Maleware self-assigned this Nov 10, 2026
@Maleware Maleware moved this to Development: Waiting for Review in Stackable Engineering Nov 10, 2026
@Maleware Maleware changed the title spike: containerdebug CRD feat: containerdebug CRD Nov 11, 2026
@Maleware Maleware changed the title feat: containerdebug CRD feat: Make containerdebug configurable Nov 11, 2026
@adwk67
adwk67 self-requested a review November 13, 2026 09:17
@adwk67 adwk67 moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Nov 13, 2026
/// [`TrinoRoleGroupConfig`] consumed by the build steps.
fn into_role_group_config(
merged: RoleGroup<v1alpha1::TrinoConfig, JavaCommonConfig, v1alpha1::TrinoConfigOverrides>,
role_group_name: &RoleGroupName,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are passing the role_group_name just for the error, which does not indicate the role. It would be better to catch the error at the call site in validate_role_groups so that both role and role_group can be reported with the error.

pub fn container_trino_args(
authentication_config: &TrinoAuthenticationConfig,
catalogs: &BTreeMap<TrinoCatalogName, CatalogConfig>,
merged_config: &ValidatedTrinoConfig,

@adwk67 adwk67 Nov 13, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We pass this only to use containerdebug. Passing just that field makes the dependency explicit and probably simplifies the tests.

Comment thread CHANGELOG.md
using OAuth2 client credentials or a bearer token ([#950], [#972]).
- The logs of the `containerdebug` process are now collected by the Vector agent and forwarded to
the Vector aggregator ([#970]).
- Add `containerdebug` config CRD ([#967]).

@adwk67 adwk67 Nov 13, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather refer to the addition of the config.containerdebug field on roles and role groups. Also, the default interval has (silently) changed from 1m to 30m so this should be mentioned. (ignore that bit: my op-rs branch was out of date)

#[fragment_attrs(serde(default))]
pub affinity: StackableAffinity,

#[fragment_attrs(serde(default))]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this attribute was dropped for some reason, no test would catch it. We also don't test that e.g. interval: 0s produces an error.

#[case::enabled(ValidatedContainerdebugConfig::Enabled {
interval: Duration::from_minutes_unchecked(10)
})]
#[case::disabled(ValidatedContainerdebugConfig::Disabled)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should mention in the docs that containerdebug can be turned off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

2 participants