Skip to content

feat(vault-config): crossplane v2 namespaced XRD#69

Merged
patrick-hermann-sva merged 1 commit intomainfrom
feat/vault-config-v2-namespaced
Apr 14, 2026
Merged

feat(vault-config): crossplane v2 namespaced XRD#69
patrick-hermann-sva merged 1 commit intomainfrom
feat/vault-config-v2-namespaced

Conversation

@patrick-hermann-sva
Copy link
Copy Markdown
Contributor

Summary

Rework the vault-config bootstrap configuration to match the v2 namespaced pattern established in vault-auth, and consume xplane-vault-config:0.4.0.

  • XRDapiextensions.crossplane.io/v2, scope: Namespaced, drops claimNames. Composite kind renamed from XVaultConfig to VaultConfig to match the existing example files and the sibling vault-auth style.
  • XRD spec: add providerConfigName + namespace fields; drop the connectionSecret block (not wired into the KCL module).
  • Composition: target new VaultConfig kind, use KCLInput (not deprecated KCLRun), bump source to xplane-vault-config:0.4.0, add the function-auto-ready step.
  • Examples: drop connectionSecret / writeConnectionSecretToRef, align ESO chart to 0.11.3, refresh claim.yaml with providerConfigName + realistic k8sAuths.
  • functions.yaml: bump function-kcl to v0.12.1 and add function-auto-ready:v0.4.0.

Test plan

  • crossplane render examples/claim.yaml apis/composition.yaml examples/functions.yaml — every composed Release / Object lands in the XR's metadata.namespace and providerConfigRef.name honors spec.providerConfigName
  • Apply XRD + composition against a k3s cluster with function-kcl:v0.12.1
  • Apply examples/claim.yaml as a namespaced VaultConfig and confirm Synced=True, Ready=True

Generated with Claude Code

Rework the vault-config configuration to match the v2 namespaced
pattern established in vault-auth, and bump to xplane-vault-config
0.4.0 on the KCL module side.

- XRD: apiextensions.crossplane.io/v2, scope: Namespaced, drop
  claimNames (v2 XRs are namespaced directly). Composite kind
  renamed from XVaultConfig to VaultConfig to match the existing
  example files and the sibling vault-auth style.
- XRD: add providerConfigName + namespace spec fields; drop the
  connectionSecret block (not wired into the KCL module).
- Composition: target new VaultConfig kind, use KCLInput (not the
  deprecated KCLRun), bump source to xplane-vault-config:0.4.0,
  and add the auto-ready step that vault-auth uses.
- Examples: drop connectionSecret / writeConnectionSecretToRef (no
  longer in the schema), align ESO chart version to 0.11.3, refresh
  claim.yaml with providerConfigName + realistic k8sAuths.
- functions.yaml: bump function-kcl to v0.12.1 (verified on k3s in
  the earlier vault-auth migration) and add function-auto-ready.

Verified with `crossplane render examples/claim.yaml apis/composition.yaml
examples/functions.yaml` — every composed Release/Object now lands in
the XR's metadata.namespace with providerConfigRef.name honoring
spec.providerConfigName.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@patrick-hermann-sva patrick-hermann-sva merged commit 811e958 into main Apr 14, 2026
@patrick-hermann-sva patrick-hermann-sva deleted the feat/vault-config-v2-namespaced branch April 14, 2026 06:15
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