Skip to content

Add dynamic CRD creation#4

Open
mikeshootzz wants to merge 2 commits into
mainfrom
feat/crd-creation
Open

Add dynamic CRD creation#4
mikeshootzz wants to merge 2 commits into
mainfrom
feat/crd-creation

Conversation

@mikeshootzz

@mikeshootzz mikeshootzz commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

This dynamically creates a claim CRD based on an XRD created in the appslap.io API group. The claim CRD has an owner reference towards the XRD and gets garbage collected automatically once it's removed.

Checklist

  • Update tests.
  • Link this PR to related issues.

This automatically creates a CRD based on XRDs under the appslap.io API
group
@mikeshootzz mikeshootzz requested review from a team, Kidswiss, TheBigLee, bastjan, mdnix and zugao and removed request for a team June 19, 2026 09:29
xrd := &unstructured.Unstructured{}
xrd.SetGroupVersionKind(xrdGVK)
return ctrl.NewControllerManagedBy(mgr).
For(xrd).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We could already filter here for the claimGroup via a predicate.

But in reality won't probably matter, since the amount of XRDs is probably pretty small per cluster.

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.

2 participants