Skip to content

[pqc] Watch ConfigMap with global defaults produced by openstack-operator - #1320

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
fmount:tlsprofile
Nov 23, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
fmount:tlsprofile

Conversation

@fmount

@fmount fmount commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

As part of the TLSProfile inheritance effort, this patch implements the consumer side of the feature. The openstack-operator reads the cluster TLSSecurityProfile and publishes it in a well-known ConfigMap that lib-common merges into the ConfigOptions of every rendered Template through ApplyTemplateDefaults. A watcher on that ConfigMap is registered through the generic interface lib-common provides, so the operator re-renders its configuration whenever the cluster-wide TLS defaults change.

Jira: https://redhat.atlassian.net/browse/OSPRH-41044

As part of the TLSProfile inheritance effort, this patch implements the
"consumer" side of the feature in nova-operator. The openstack-operator
reads the cluster TLSSecurityProfile and publishes it in a well-known
ConfigMap that lib-common merges into the ConfigOptions of every
rendered Template through ApplyTemplateDefaults. A watcher on that
ConfigMap is registered through the generic interface lib-common
provides, so nova re-renders its configuration whenever the cluster-wide
TLS defaults change.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@openshift-ci
openshift-ci Bot requested review from auniyal61 and kk7ds November 22, 2026 21:52
@fmount
fmount requested a review from stuggi November 22, 2026 21:52
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Changes to the shared TLS profile configuration now trigger updates for Cyborg, Nova, Nova Metadata, and Placement APIs, helping keep their rendered configurations in sync.

Four controllers now watch ConfigMap changes selected by util.WatchDefaultTemplateConfigMap. Matching changes enqueue reconciliation for CyborgAPI, NovaAPI, NovaMetadata, and PlacementAPI resources.

Changes: Default template ConfigMap watches

Layer / File(s) Summary
Add controller ConfigMap watches
internal/controller/cyborg/cyborgapi_controller.go, internal/controller/nova/novaapi_controller.go, internal/controller/nova/novametadata_controller.go, internal/controller/placement/api_controller.go
Each controller's SetupWithManager adds a ConfigMap watch using util.WatchDefaultTemplateConfigMap. Matching ConfigMap changes enqueue reconciliation for that controller's resource type.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · up to acbf3

Four controllers now re-reconcile when the cluster-wide TLS defaults ConfigMap changes, so rendered configuration follows the cluster TLS profile. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description check Passed The description explains the purpose of the change. It states that the consumer side of TLSProfile inheritance is implemented, that openstack-operator publishes the TLS profile in a well-known ConfigM…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title "[pqc] Watch ConfigMap with global defaults produced by openstack-operator" matches the main change. All four controllers (CyborgAPI, NovaAPI, NovaMetadata, PlacementAPI) now watch the well-…
Full details: Description check

Explanation

The description explains the purpose of the change. It states that the consumer side of TLSProfile inheritance is implemented, that openstack-operator publishes the TLS profile in a well-known ConfigMap, and that a watcher re-renders configuration when cluster-wide TLS defaults change. This matches the summarized changes.

Full details: Title check

Explanation

The title "[pqc] Watch ConfigMap with global defaults produced by openstack-operator" matches the main change. All four controllers (CyborgAPI, NovaAPI, NovaMetadata, PlacementAPI) now watch the well-known ConfigMap through util.WatchDefaultTemplateConfigMap, so TLS default changes trigger reconciliation. The title names the ConfigMap watch and its source, which is the primary change. The "[pqc]" prefix is a tag, not noise, and the title is one sentence of 9 words.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 946ab1e3-efc1-481c-a88e-2fdb4c3684db
Commits

Reviewing files that changed from the base of the PR and between d68a19d and acbf35c.

Files selected for processing: 4

  • internal/controller/cyborg/cyborgapi_controller.go
  • internal/controller/nova/novaapi_controller.go
  • internal/controller/nova/novametadata_controller.go
  • internal/controller/placement/api_controller.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@fmount fmount changed the title Watch ConfigMap with global defaults produced by openstack-operator [pqc] Watch ConfigMap with global defaults produced by openstack-operator Nov 22, 2026
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build succeeded (check pipeline).
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/46befaf587634f9db932706a4e080378

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 36m 58s
✔️ workloads-s2i-content-provider SUCCESS in 3h 37m 18s
✔️ nova-operator-kuttl SUCCESS in 51m 36s
✔️ nova-operator-kuttl-placement SUCCESS in 36m 35s
✔️ nova-operator-tempest-multinode SUCCESS in 2h 04m 52s
✔️ nova-operator-tempest-multinode-ceph SUCCESS in 2h 14m 39s
❌ nova-operator-cyborg-tempest-multinode FAILURE in 52m 02s (non-voting)

Warning:
File .ssh/config found in build home directory during playbook github.com/openstack-k8s-operators/s2i-openstack-containers/playbooks/container-ci/zuul/pre.yaml for job workloads-s2i-content-provider. Add to preserve-home-paths if safe, or otherwise remove.

@stuggi stuggi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci

openshift-ci Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit ce157c4 into openstack-k8s-operators:main Nov 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants