Skip to content

feat: Make containerdebug configurable - #794

Open
Maleware wants to merge 2 commits into
mainfrom
feat/containerdebug-config
Open

Maleware wants to merge 2 commits into
mainfrom
feat/containerdebug-config

Conversation

@Maleware

Copy link
Copy Markdown
Member

Description

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

Adds the containerdebug config (enabled, interval) from stackable-operator 0.122.0 to the metastore config and starts containerdebug from the validated, merged role group config.
@Maleware Maleware self-assigned this Nov 11, 2026
@Maleware
Maleware marked this pull request as ready for review November 11, 2026 08:16
@Maleware Maleware moved this to Development: Waiting for Review in Stackable Engineering Nov 11, 2026
@adwk67
adwk67 self-requested a review November 13, 2026 10:42
@adwk67 adwk67 moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Nov 13, 2026

@adwk67 adwk67 left a comment

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. Some of the comments made in the trino PR and this one probably apply to the other PRs too.

Comment thread CHANGELOG.md
- The logs of the `containerdebug` process are now collected by the Vector agent and forwarded to
the Vector aggregator ([#790]).
- The metastore now has a default affinity to the OPA Pods when OPA authorization is configured ([#772]).
- Add `containerdebug` config CRD ([#794]).

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.

#[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. There is no containerdebug test in validate.rs, and the new statefulset.rs test passes an already-validated value, so there is no test for what happens up until that point.

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