Skip to content

Commit

Permalink
feat: extract Control Plane compatible with OSS version (#5957)
Browse files Browse the repository at this point in the history
* feat: create basic OSS Control Plane

* chore: delete usages without control plane (exception: legacy tests)

* chore: delete dummy Pro values for standalone agent

* chore: reorder bootstrap a bit

* fix: use direct artifact storage for deprecated API in standalone agent

* chore: add Pro edition only comment

* chore: reorder a bit

* chore: reorder a bit

* feat: isolate deprecated system

* chore: rename environment variable

* chore: update dependencies

* fixup

* fixup linting

* feat: add environment variable to disable deprecated tests

* fix: don't check ProContext for OSS

* feat: add flag to disable webhooks

* chore: make const
  • Loading branch information
rangoo94 authored Oct 25, 2024
1 parent 38733d5 commit 3b83571
Show file tree
Hide file tree
Showing 41 changed files with 1,527 additions and 689 deletions.
2 changes: 1 addition & 1 deletion cmd/api-server/commons/commons.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func ReadProContext(ctx context.Context, cfg *config.Config, grpcClient cloud.Te
DashboardURI: cfg.TestkubeDashboardURI,
}

if grpcClient == nil {
if cfg.TestkubeProAPIKey == "" || grpcClient == nil {
return proContext
}

Expand Down
1 change: 1 addition & 0 deletions cmd/api-server/commons/deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (d *deprecatedClients) Templates() templatesclientv1.Interface {
return d.templates
}

// TODO: Move Templates() out of Deprecation, as it's used by Webhook Payload (?)
func CreateDeprecatedClients(kubeClient client.Client, namespace string) DeprecatedClients {
return &deprecatedClients{
executors: executorsclientv1.NewClient(kubeClient, namespace),
Expand Down
Loading

0 comments on commit 3b83571

Please sign in to comment.