Skip to content

Commit 3e4af46

Browse files
committed
refactor: move to using multi-strategy ManagerProvider
Signed-off-by: Calum Murray <[email protected]>
1 parent 1d97022 commit 3e4af46

File tree

3 files changed

+235
-215
lines changed

3 files changed

+235
-215
lines changed

pkg/config/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
const (
1010
ClusterProviderKubeConfig = "kubeconfig"
11+
ClusterProviderInCluster = "in-cluster"
1112
)
1213

1314
// StaticConfig is the configuration for the server.
@@ -55,16 +56,16 @@ type StaticConfig struct {
5556
ServerURL string `toml:"server_url,omitempty"`
5657
// ClusterProviderStrategy is how the server finds clusters.
5758
// If set to "kubeconfig", the clusters will be loaded from those in the kubeconfig.
59+
// If set to "in-cluster", the server will use the in cluster config
5860
ClusterProviderStrategy string `toml:"cluster_provider_strategy,omitempty"`
5961
// ClusterContexts is which context should be used for each cluster
6062
ClusterContexts map[string]string `toml:"cluster_contexts"`
6163
}
6264

6365
func Default() *StaticConfig {
6466
return &StaticConfig{
65-
ListOutput: "table",
66-
Toolsets: []string{"core", "config", "helm"},
67-
ClusterProviderStrategy: ClusterProviderKubeConfig,
67+
ListOutput: "table",
68+
Toolsets: []string{"core", "config", "helm"},
6869
}
6970
}
7071

pkg/kubernetes/cluster.go

Lines changed: 0 additions & 212 deletions
This file was deleted.

0 commit comments

Comments
 (0)