feat: add KymaInstanceMapping for cross-cluster instance mapping#14
Open
maximilianbraun wants to merge 6 commits intomainfrom
Open
feat: add KymaInstanceMapping for cross-cluster instance mapping#14maximilianbraun wants to merge 6 commits intomainfrom
maximilianbraun wants to merge 6 commits intomainfrom
Conversation
Implemented KymaInstanceMapping CRD to enable mapping HANA Cloud instances to Kubernetes namespaces in both single-cluster and cross-cluster deployments. Key Features: - Extract HANA instance ID, admin API credentials, and cluster ID from Kyma cluster resources (ServiceInstance, ServiceBinding, ConfigMap) - Optional kymaConnectionRef for deployment flexibility: - Omit for single-cluster (uses local client) - Provide kubeconfig secret for cross-cluster access - Per-reconcile HANA Cloud client for credential isolation - Support BTP Service Operator resource patterns Architecture: - Controller reads ServiceInstance (instanceID), ServiceBinding (admin creds), and ConfigMap (clusterID) from target cluster - Creates instance mapping via HANA Cloud Admin API - Status tracks both Kyma resources and HANA Cloud mapping state - Never stores admin API credentials in ProviderConfig or CR status Changes: - New inventory.hana.orchestrate.cloud.sap/v1alpha1 API group - KymaInstanceMapping CRD with optional cross-cluster support - HANA Cloud Admin API client (OAuth2 + REST) - Remote cluster client for kubeconfig-based access - Instance mapping client for CRUD operations - Comprehensive documentation and examples for both patterns - ADR documenting architecture and data flow Examples: - examples/instancemapping/kymainstancemapping-local.yaml (single-cluster) - examples/instancemapping/kymainstancemapping-example.yaml (cross-cluster) - examples/instancemapping/KYMA_README.md (detailed guide) Documentation: - README.md updated with provider overview and installation guide - docs/ADR/20260218-kyma-instance-mapping-architecture.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Maximilian Braun (SAP) <maximilian.braun@sap.com>
Signed-off-by: Maximilian Braun (SAP) <maximilian.braun@sap.com>
6deb260 to
1154516
Compare
Signed-off-by: Maximilian Braun (SAP) <maximilian.braun@sap.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented KymaInstanceMapping CRD to enable mapping HANA Cloud instances to Kubernetes namespaces in both single-cluster and cross-cluster deployments.
Key Features:
Architecture:
Changes:
Examples:
Documentation: