Skip to content

feat: automatic cluster detection #1068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 3, 2025
Merged

feat: automatic cluster detection #1068

merged 13 commits into from
Jul 3, 2025

Conversation

razvan
Copy link
Member

@razvan razvan commented Jul 1, 2025

Description

Fixes stackabletech/issues#662

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.
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible

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

@razvan razvan self-assigned this Jul 1, 2025
@razvan razvan marked this pull request as ready for review July 1, 2025 15:25
@razvan razvan requested a review from a team July 1, 2025 15:26
@razvan razvan moved this to Development: Waiting for Review in Stackable Engineering Jul 1, 2025
@sbernauer sbernauer self-requested a review July 2, 2025 13:29
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Jul 2, 2025
@sbernauer
Copy link
Member

That was a quick implementation, didn't expect that! :)

@razvan razvan requested a review from sbernauer July 2, 2025 14:34
sbernauer
sbernauer previously approved these changes Jul 3, 2025
Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

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

Thanks! Only one thing about error message left

sbernauer
sbernauer previously approved these changes Jul 3, 2025
Copy link
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

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

Thanks!

@sbernauer sbernauer disabled auto-merge July 3, 2025 07:56
sbernauer
sbernauer previously approved these changes Jul 3, 2025
sbernauer
sbernauer previously approved these changes Jul 3, 2025
@razvan razvan disabled auto-merge July 3, 2025 08:23
@razvan razvan added this pull request to the merge queue Jul 3, 2025
Merged via the queue into main with commit 903249c Jul 3, 2025
8 checks passed
@razvan razvan deleted the feat/issues/662 branch July 3, 2025 08:37
@sbernauer sbernauer moved this from Development: In Review to Development: Done in Stackable Engineering Jul 3, 2025
Comment on lines +54 to +60
let api: Api<Node> = Api::all(client.clone());
let nodes = api
.list(&ListParams::default())
.await
.context(ListNodesSnafu)?;
let node = nodes.iter().next().context(EmptyKubernetesNodesListSnafu)?;
let node_name = node.name_any();
Copy link
Member

Choose a reason for hiding this comment

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

We can inject this through the downwards API instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

slick! forgot about that :(

Copy link
Member

Choose a reason for hiding this comment

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

I'll do a followup PR.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks, good idea!

Copy link
Member

Choose a reason for hiding this comment

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

@lfrancke lfrancke moved this from Development: Done to Acceptance: In Progress in Stackable Engineering Jul 4, 2025
@lfrancke lfrancke moved this from Acceptance: In Progress to Done in Stackable Engineering Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Automatic cluster domain detection
3 participants