Skip to content

Commit 9c04e31

Browse files
committed
feat: add acm cluster provider
Signed-off-by: Calum Murray <[email protected]>
1 parent 80d6c70 commit 9c04e31

File tree

2 files changed

+397
-3
lines changed

2 files changed

+397
-3
lines changed

pkg/config/config.go

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import (
77
)
88

99
const (
10-
ClusterProviderKubeConfig = "kubeconfig"
11-
ClusterProviderInCluster = "in-cluster"
12-
ClusterProviderDisabled = "disabled"
10+
ClusterProviderKubeConfig = "kubeconfig"
11+
ClusterProviderInCluster = "in-cluster"
12+
ClusterProviderDisabled = "disabled"
13+
ClusterProviderACM = "acm"
14+
ClusterProviderACMKubeConfig = "acm-kubeconfig"
1315
)
1416

1517
// StaticConfig is the configuration for the server.
@@ -61,6 +63,17 @@ type StaticConfig struct {
6163
ClusterProviderStrategy string `toml:"cluster_provider_strategy,omitempty"`
6264
// ClusterContexts is which context should be used for each cluster
6365
ClusterContexts map[string]string `toml:"cluster_contexts"`
66+
67+
// name of the context in the kubeconfig file to look for acm access credentials in. should point to the "hub" cluster
68+
AcmContextName string `toml:"acm_context_name,omitempty"`
69+
// the host for the ACM cluster proxy addon
70+
// if using the acm-kubeconfig strategy, this should be the route for the proxy
71+
// if using the acm strategy, this should be the service for the proxy
72+
AcmClusterProxyAddonHost string `toml:"acm_cluster_proxy_addon_host,omitempty"`
73+
// whether to skip verifiying the tls certs from the cluster proxy
74+
AcmClusterProxyAddonSkipTLSVerify bool `toml:"acm_cluster_proxy_addon_skip_tls_verify"`
75+
// the CA file for the cluster proxy addon
76+
AcmClusterProxyAddonCaFile string `toml:"acm_cluster_proxy_addon_ca_file"`
6477
}
6578

6679
func Default() *StaticConfig {

0 commit comments

Comments
 (0)