mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
Feat: support connecting cluster via proxy url (#5875)
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
This commit is contained in:
@@ -136,6 +136,9 @@ func (clusterConfig *KubeClusterConfig) createOrUpdateClusterSecret(ctx context.
|
||||
data["tls.crt"] = clusterConfig.AuthInfo.ClientCertificateData
|
||||
data["tls.key"] = clusterConfig.AuthInfo.ClientKeyData
|
||||
}
|
||||
if clusterConfig.Cluster.ProxyURL != "" {
|
||||
data["proxy-url"] = []byte(clusterConfig.Cluster.ProxyURL)
|
||||
}
|
||||
secret := &corev1.Secret{}
|
||||
if err := cli.Get(ctx, apitypes.NamespacedName{Name: clusterConfig.ClusterName, Namespace: ClusterGatewaySecretNamespace}, secret); client.IgnoreNotFound(err) != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user