Skip to content

Conversation

Diaphteiros
Copy link
Contributor

What this PR does / why we need it:
Finishes the implementation of the controller that reconciles Cluster resources and deploys external-dns on them if their purposes match.

Which issue(s) this PR fixes:
Main part of openmcp-project/backlog#95

Special notes for your reviewer:

Release note:

The PlatformService DNS now reconciles `Cluster` resources. If a cluster's purposes match one of the mappings provided in the controller's configuration (provided via the `DNSServiceConfig` resource), [`external-dns`](https://github.com/kubernetes-sigs/external-dns) is deployed onto the cluster, with its configuration determined by the aforementioned mapping.

The label selector is incompatible with the current implementation that loads the config
on-demand during each reconciliation.
We would either need to load it once during startup, which would mean that the controller
needs to be restarted for changes to take effect,
or we would need a more complicated setup with an own controller for the config.

Since clusters can already be filtered by their purposes, there is probably no need for
a label selector anyway, at least not for now.
@Diaphteiros Diaphteiros marked this pull request as ready for review September 23, 2025 12:02
@Diaphteiros Diaphteiros marked this pull request as draft September 23, 2025 13:43
@Diaphteiros Diaphteiros marked this pull request as ready for review September 24, 2025 12:04
Copy link

@reshnm reshnm left a comment

Choose a reason for hiding this comment

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

Looks good to me. Only minor nits.

@Diaphteiros Diaphteiros requested a review from reshnm September 24, 2025 14:10
@maximiliantech maximiliantech merged commit 7606af7 into main Sep 25, 2025
3 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.

3 participants