# [RFC/POC] Evaluate work required to add KIC standalone support for v1alpha1 Kong Gateway entity CRDs#3656
Open
mcarbonneaux wants to merge 1 commit intoKong:mainfrom
Open
# [RFC/POC] Evaluate work required to add KIC standalone support for v1alpha1 Kong Gateway entity CRDs#3656mcarbonneaux wants to merge 1 commit intoKong:mainfrom
mcarbonneaux wants to merge 1 commit intoKong:mainfrom
Conversation
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.
🎯 Purpose of this PR
This is a proof-of-concept submission to evaluate the real work required to implement the feature requested in #3259.
This PR is not intended for merge but rather to:
Status:
📈 Code Statistics
Lines of Code:
Breakdown by component:
Background - Issue #3259
The issue requests removing artificial restrictions that prevent native Kong Gateway CRDs (
KongService,KongRoute,KongUpstream, etc.) from functioning in KIC standalone mode. Currently blocked by validation rule:self.controlPlaneRef.type != 'kic'.Work Assessment Summary
Based on this exploratory implementation, enabling this feature would require:
📊 Scope of Changes
Total actual changes: +2,270 lines added, -9 lines removed across 19 files
🔧 Key Implementation Areas
1. Remove CRD Validation Restrictions (Simple)
self.controlPlaneRef.type != 'kic'from 8 CRD specsmake manifeststo regenerate CRDs2. Store Layer (Medium Complexity)
3. Controller Reconcilers (High Complexity)
4. Translation Layer (Highest Complexity)
sdk-konnect-go/componentstypes andgo-kongtypes5. Dependency Graph (Medium Complexity)
6. Testing (Not Implemented - Would Be Required)
🤔 Technical Challenges Identified
Type Conversion: Need to bridge
sdk-konnect-goandgo-kongtypesServiceless Routes: Routes without
serviceRefrequire placeholder service0.0.0.0:1placeholderFeature Gate: Disabled by default to avoid breaking changes
KongKey/KongKeySet: Not implemented (no native go-kong support)
Proposed Architecture
Key Design Decision: Both pipelines remain independent. Konnect path untouched.
Feature Gate (Opt-in)
This feature is disabled by default and controlled by the
KongServiceV1Alpha1feature gate:Supported CRDs
KongServiceKongRouteKongServiceKongUpstreamKongTargetKongUpstreamKongCertificateSecretKongCACertificateSecretKongSNIKongCertificateKongPluginBindingKongPlugin/KongClusterPluginNote:
KongKeyandKongKeySetare not supported in this implementation (no native field in standard go-kong KongState).Usage Example
Files Changed (Detailed Statistics)
Click to expand detailed file statistics
Complete Change Statistics
KIC_STANDALONE_V1ALPHA1.mdingress-controller/internal/controllers/configuration/zz_generated.controllers.goingress-controller/internal/dataplane/kongstate/kongservices_v1alpha1.goingress-controller/internal/manager/controllerdef.goingress-controller/internal/store/store.goingress-controller/internal/dataplane/fallback/graph_dependencies.goingress-controller/internal/store/zz_generated.cache_stores.goingress-controller/internal/store/fake_store.gohack/generators/cache-stores/spec.goingress-controller/internal/dataplane/translator/translator.goingress-controller/pkg/manager/config/feature_gates_keys.goapi/configuration/v1alpha1/kongcacertificate_types.goapi/configuration/v1alpha1/kongcertificate_types.goapi/configuration/v1alpha1/kongdataplaneclientcertificate_types.goapi/configuration/v1alpha1/kongkey_types.goapi/configuration/v1alpha1/kongkeyset_types.goapi/configuration/v1alpha1/kongroute_types.goapi/configuration/v1alpha1/kongservice_types.goapi/configuration/v1alpha1/kongupstream_types.goFiles Changed (High-Level)
Click to expand categorized file list
API Definitions:
api/configuration/v1alpha1/kongservice_types.goapi/configuration/v1alpha1/kongroute_types.goapi/configuration/v1alpha1/kongupstream_types.goapi/configuration/v1alpha1/kongtarget_types.goapi/configuration/v1alpha1/kongcertificate_types.goapi/configuration/v1alpha1/kongcacertificate_types.goapi/configuration/v1alpha1/kongsni_types.goapi/configuration/v1alpha1/kongpluginbinding_types.goapi/configuration/v1alpha1/kongdataplaneclientcertificate_types.goapi/configuration/v1alpha1/kongkey_types.goapi/configuration/v1alpha1/kongkeyset_types.goStore & Cache:
hack/generators/cache-stores/spec.goingress-controller/internal/store/store.goingress-controller/internal/store/fake_store.goingress-controller/internal/store/zz_generated.cache_stores.goControllers:
ingress-controller/internal/controllers/configuration/zz_generated.controllers.goingress-controller/internal/manager/controllerdef.goTranslation:
ingress-controller/internal/dataplane/kongstate/kongservices_v1alpha1.goingress-controller/internal/dataplane/translator/translator.goDependency Resolution:
ingress-controller/internal/dataplane/fallback/graph_dependencies.goFeature Gates:
ingress-controller/pkg/manager/config/feature_gates_keys.goDocumentation:
KIC_STANDALONE_V1ALPHA1.md(detailed technical documentation)What Was NOT Changed
controller/konnect/) - completely untouchedEstimated Real Work Required
Based on this exploration:
Development Time Estimate
Testing Requirements
Documentation Requirements
Questions for Maintainers
Is this architectural approach acceptable?
Type conversion strategy:
Generated code:
KongCustomEntitypatternScope:
Testing:
Timeline:
Next Steps (If Approach Approved)
Certificate Sourcing
Both
KongCertificateandKongCACertificatesupport two source types:inline: Certificate data provided directly in CR specsecretRef: Certificate data read from Kubernetes SecretDocumentation
A comprehensive technical document has been added:
KIC_STANDALONE_V1ALPHA1.mdThis document details:
Breaking Changes
None. This is an opt-in feature controlled by a feature gate (disabled by default).
Related Issues
Addresses #3259
This PR demonstrates that the requested feature is technically feasible but requires significant effort across multiple layers of the codebase. Feedback from maintainers will help determine if this approach is worth pursuing.