Skip to content

chore: remove the Kubernetes plugin feature gate - #199

Merged
liamcervante merged 1 commit into
mainfrom
remove-k8s-feature-gate
Aug 3, 2026
Merged

chore: remove the Kubernetes plugin feature gate#199
liamcervante merged 1 commit into
mainfrom
remove-k8s-feature-gate

Conversation

@liamcervante

Copy link
Copy Markdown
Collaborator

The Kubernetes parser and provider plugins are now active for everyone, so the enableK8sPlugins run-parameter gate can go.

Changes

  • pkg/plugins/config.go — drop the EnableK8sPlugins field and the SkipPluginExecution method. ProviderPlugins no longer filters and just returns what the manager loads.
  • pkg/plugins/required.go — drop the RequiresK8sPlugins marker on requiredPlugin and the gatedPluginNames() helper. The two kubernetes entries stay in requiredPlugins; they were always downloaded regardless, since the gate only ever affected execution.
  • pkg/scanner/scan.go — drop the branch that returned nil, nil to skip projects handled by a gated parser. ScanProject no longer has a nil-success path, so the corresponding projectResult == nil check in the caller goes too.
  • internal/scanner/scanner.go — remove Scanner.applyFeatureFlags and both call sites (ListPolicies, Scan).
  • internal/api/dashboard/client.go — with the gate gone nothing read RunParameters.FeatureFlags, so the field and its featureFlags GraphQL selection are removed.

Net: 156 lines deleted, 24 added. No behaviour change for orgs that already had the flag on; orgs that didn't now get Kubernetes scanning.

The Kubernetes parser and provider plugins are now active for everyone, so
the enableK8sPlugins run-parameter gate can go.

Removes EnableK8sPlugins and SkipPluginExecution from plugins.Config, the
RequiresK8sPlugins marker and gatedPluginNames helper, the project-skip
branch in ScanProject, and Scanner.applyFeatureFlags along with both call
sites. Nothing else read the run parameters' featureFlags blob, so the
field and its GraphQL selection are dropped too.
@liamcervante
liamcervante requested a review from a team July 31, 2026 14:40
@liamcervante
liamcervante merged commit fb49cb1 into main Aug 3, 2026
5 checks passed
@liamcervante
liamcervante deleted the remove-k8s-feature-gate branch August 3, 2026 06: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.

2 participants