Skip to content

Migrate NodeCertificateController Certificate creation to SSA - #345

Merged
fwiesel merged 1 commit into
mainfrom
ssa-node-certificate
Oct 29, 2026
Merged

fwiesel merged 1 commit into
mainfrom
ssa-node-certificate

Conversation

@fwiesel

@fwiesel fwiesel commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Replace CreateOrUpdate + SetOwnerReference with Apply for the cert-manager Certificate CR. The owner reference is set in the apply configuration metadata. The retry-on-conflict loop is no longer needed since SSA handles concurrent updates correctly. The controller now applies the full certificate spec on every reconcile so IP/DNS changes are picked up immediately.

Depends on #335 (ssa-conditions-helpers).

@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 14878b52-9b63-45b3-a032-6b2796fea1c5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ssa-node-certificate

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fwiesel

fwiesel commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from bb954a0 to 864094f Compare July 13, 2026 14:52
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from 864094f to 8db3520 Compare July 13, 2026 19:59
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from 8db3520 to c815a72 Compare July 16, 2026 10:12
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from c815a72 to e0b1c9d Compare July 16, 2026 10:23
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 45 days with no activity.

@github-actions github-actions Bot added the stale label Aug 31, 2026
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch 3 times, most recently from 7c916ae to 0c25252 Compare September 17, 2026 12:55
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from 0c25252 to a16ecef Compare September 17, 2026 13:20
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from a16ecef to 2e64590 Compare September 17, 2026 13:27
Base automatically changed from ssa-conditions-helpers to main September 21, 2026 07:28
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from 2e64590 to d084b57 Compare September 21, 2026 08:56
@fwiesel fwiesel removed the stale label Oct 8, 2026
@fwiesel
fwiesel added this pull request to stack #372 October 28, 2026 11:58
Replace CreateOrUpdate + SetOwnerReference with Apply for the
cert-manager Certificate CR. The owner reference is set in the apply
configuration metadata. The retry-on-conflict loop is no longer needed
since SSA handles concurrent updates correctly. The controller now
applies the full certificate spec on every reconcile so IP/DNS changes
are picked up immediately.

Signed-off-by: Fabian Wiesel <fabian.wiesel@sap.com>
@fwiesel
fwiesel force-pushed the ssa-node-certificate branch from d084b57 to 7b0d8b5 Compare October 28, 2026 12:10
@github-actions

Copy link
Copy Markdown

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 74.51% (-0.09%) 👎
Coverage details

Compared to commit f91fef7 (run #40683718670)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/node_certificate_controller.go 80.95% (-0.68%) 42 (-7) 34 (-6) 8 (-1) 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@joker-at-work joker-at-work left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No collusion visible.

@fwiesel
fwiesel merged commit cbd917d into main Oct 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants