Skip to content

refactor: extract dereference and validate steps into controller modules#783

Merged
adwk67 merged 11 commits into
mainfrom
refactor/reconcile-dereference-validate
May 21, 2026
Merged

refactor: extract dereference and validate steps into controller modules#783
adwk67 merged 11 commits into
mainfrom
refactor/reconcile-dereference-validate

Conversation

@adwk67
Copy link
Copy Markdown
Member

@adwk67 adwk67 commented May 18, 2026

Summary

  • Extract the first two pipeline stages (dereference and validate) from the monolithic hdfs_controller.rs into controller/dereference.rs and controller/validate.rs
  • Merge dereferenced fields (hdfs_opa_config) into ValidatedCluster, matching the pattern established in hive (#707) and hbase (#757)
  • Replace image_base_name / pkg_version parameters with compile-time constants inside validate_cluster()

Test plan

  • cargo clippy --all-targets — zero warnings
  • cargo test — all 63 tests pass
  • kuttl smoke tests

🤖 Generated with Claude Code

adwk67 and others added 2 commits May 18, 2026 17:24
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adwk67 adwk67 marked this pull request as ready for review May 20, 2026 08:35
@siegfriedweber siegfriedweber self-requested a review May 20, 2026 08:48
@siegfriedweber siegfriedweber moved this to Development: In Review in Stackable Engineering May 20, 2026
Comment thread tests/templates/kuttl/smoke/30-assert.yaml.j2
Comment thread tests/templates/kuttl/smoke/31-assert.yaml.j2 Outdated
Comment thread tests/templates/kuttl/smoke/31-assert.yaml.j2 Outdated
adwk67 added 5 commits May 21, 2026 10:20
  30-assert now includes args, imagePullPolicy, defaultMode, and all
  container specs for the three HDFS StatefulSets. 31-assert is refactored
  to diff ConfigMap data against external snapshot files using envsubst and
  yq normalisation, replacing the previous inline envOverrides checks.

  Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  Replaces variable-based comparison with pipe-to-file approach. Both
  sides are normalised via jq (collapsing trailing \n+ to \n) so YAML
  block scalar style differences (|, |+) don't cause false failures.
  Temp files use $NAMESPACE prefix for concurrent test safety.

  Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adwk67 adwk67 added this pull request to the merge queue May 21, 2026
Merged via the queue into main with commit a2408a4 May 21, 2026
12 checks passed
@adwk67 adwk67 deleted the refactor/reconcile-dereference-validate branch May 21, 2026 20:25
@adwk67 adwk67 moved this from Development: In Review to Development: Done in Stackable Engineering May 22, 2026
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering May 28, 2026
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.

3 participants