Skip to content

Add Cluster Inventory API ClusterProfileRef support#1391

Draft
kahirokunn wants to merge 1 commit intok0sproject:v1beta2-api-versionfrom
kahirokunn:feature/cluster-inventory-api-support
Draft

Add Cluster Inventory API ClusterProfileRef support#1391
kahirokunn wants to merge 1 commit intok0sproject:v1beta2-api-versionfrom
kahirokunn:feature/cluster-inventory-api-support

Conversation

@kahirokunn
Copy link
Contributor

Summary

  • Add ClusterProfileRef as an alternative to KubeconfigRef for specifying hosting cluster connectivity using the Cluster Inventory API
  • Support ClusterProfileRef in k0smotron cluster, control plane, and bootstrap controllers
  • Add conversion logic to silently drop ClusterProfileRef when converting from v1beta2 to v1beta1 (v1beta2-only feature)
  • Add utility function GetKubeconfigFromClusterProfile to resolve kubeconfig from ClusterProfile resources
  • Add unit tests for conversion and kubeconfig resolution

Context

The Cluster Inventory API is gaining adoption across the ecosystem:

  • Kueue (MultiKueue): ClusterProfile support has already been merged
  • Argo CD: ClusterProfile integration is in progress
  • Official kubeconfig SecretReader plugin: A v0.1.0 release is being planned, which will provide a standard way to read kubeconfig from ClusterProfile resources

Test plan

  • Unit tests for v1beta1 <-> v1beta2 conversion with ClusterProfileRef
  • Unit tests for GetKubeconfigFromClusterProfile utility

Add ClusterProfileRef as an alternative to KubeconfigRef for specifying
hosting cluster connectivity using the Cluster Inventory API.

Signed-off-by: kahirokunn <okinakahiro@gmail.com>
@kahirokunn kahirokunn requested a review from a team as a code owner March 7, 2026 05:49
volumes:
- name: credential-plugin
image:
reference: ghcr.io/labthrust/kubeconfig-secretreader-plugin:v0.0.1-linux-arm64
Copy link
Contributor Author

Choose a reason for hiding this comment

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

kubernetes-sigs/cluster-inventory-api#45
Once this is released, I plan to replace it with the official OCI image.

@kahirokunn kahirokunn marked this pull request as draft March 7, 2026 05:52
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.

1 participant