Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove feature gate CombinedServices #4743

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
test: postgres
- name: feature-gates
test: dbless
feature_gates: "GatewayAlpha=true,CombinedRoutes=false,CombinedServices=false"
feature_gates: "GatewayAlpha=true,CombinedRoutes=false"
- name: dbless-knative
test: dbless.knative
- name: postgres-knative
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ Adding a new version? You'll need three changes:

## Unreleased

### Breaking changes

- Removed feature gate `CombinedServices`. The feature is enabled and it can't be changed.
[#4743](https://github.com/Kong/kubernetes-ingress-controller/pull/4743)

### Fixed

- No more "log.SetLogger(...) was never called..." log entry during shutdown of KIC
Expand Down
4 changes: 2 additions & 2 deletions FEATURE_GATES.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Features that reach GA and over time become stable will be removed from this tab
| CombinedRoutes | `true` | Beta | 2.8.0 | TBD |
| GatewayAlpha | `false` | Alpha | 2.6.0 | TBD |
| ExpressionRoutes | `false` | Alpha | 2.10.0 | TBD |
| CombinedServices | `false` | Alpha | 2.10.0 | TBD |
| CombinedServices | `true` | Beta | 2.11.0 | TBD |
| CombinedServices | `false` | Alpha | 2.10.0 | 3.0.0 |
| CombinedServices | `true` | Beta | 2.11.0 | 3.0.0 |
| FillIDs | `false` | Alpha | 2.10.0 | 3.0.0 |
| RewriteURIs | `false` | Alpha | 2.12.0 | TBD |

Expand Down
1 change: 0 additions & 1 deletion internal/dataplane/parser/golden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ var (

// Feature flags that are directly propagated from the feature gates get their defaults.
CombinedServiceRoutes: featuregates.GetFeatureGatesDefaults()[featuregates.CombinedRoutesFeature],
CombinedServices: featuregates.GetFeatureGatesDefaults()[featuregates.CombinedServicesFeature],
ExpressionRoutes: featuregates.GetFeatureGatesDefaults()[featuregates.ExpressionRoutesFeature],
FillIDs: featuregates.GetFeatureGatesDefaults()[featuregates.FillIDsFeature],

Expand Down
5 changes: 0 additions & 5 deletions internal/dataplane/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ type FeatureFlags struct {
// ExpressionRoutes indicates whether to translate Kubernetes objects to expression based Kong Routes.
ExpressionRoutes bool

// CombinedServices enables parser to create a single Kong Service when a Kubernetes Service is referenced
// by multiple Ingresses. This is effective only when EnableCombinedServiceRoutes is enabled.
CombinedServices bool

// FillIDs enables the parser to fill in the IDs fields of Kong entities - Services, Routes, and Consumers - based
// on their names. It ensures that IDs remain stable across restarts of the controller.
FillIDs bool
Expand Down Expand Up @@ -103,7 +99,6 @@ func NewFeatureFlags(
CombinedServiceRoutes: combinedRoutesEnabled,
RegexPathPrefix: kongVersion.GTE(versions.ExplicitRegexPathVersionCutoff),
ExpressionRoutes: expressionRoutesEnabled,
CombinedServices: combinedRoutesEnabled && featureGates.Enabled(featuregates.CombinedServicesFeature),
FillIDs: featureGates.Enabled(featuregates.FillIDsFeature),
RewriteURIs: featureGates.Enabled(featuregates.RewriteURIsFeature),
}
Expand Down
12 changes: 4 additions & 8 deletions internal/dataplane/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5062,25 +5062,21 @@ func TestNewFeatureFlags(t *testing.T) {
},
},
{
name: "combined services and routes enabled",
name: "combined routes enabled",
featureGates: map[string]bool{
featuregates.CombinedRoutesFeature: true,
featuregates.CombinedServicesFeature: true,
featuregates.CombinedRoutesFeature: true,
},
expectedFeatureFlags: FeatureFlags{
CombinedServiceRoutes: true,
CombinedServices: true,
},
},
{
name: "combined services enabled, but routes disabled",
name: "combined routes disabled",
featureGates: map[string]bool{
featuregates.CombinedRoutesFeature: false,
featuregates.CombinedServicesFeature: true,
featuregates.CombinedRoutesFeature: false,
},
expectedFeatureFlags: FeatureFlags{
CombinedServiceRoutes: false,
CombinedServices: false,
},
},
{
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading