mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-09 05:16:02 +10:00
c.Namespace
This commit is contained in:
@@ -14,13 +14,13 @@ import (
|
||||
)
|
||||
|
||||
// Exchange exchange request to local
|
||||
func (c *Connect) Exchange(options *options.DaemonOptions, namespace string, origin *v1.Deployment, clientset *kubernetes.Clientset,
|
||||
func (c *Connect) Exchange(options *options.DaemonOptions, origin *v1.Deployment, clientset *kubernetes.Clientset,
|
||||
labels map[string]string) (workload string, err error) {
|
||||
workload, podIP, podName, err := c.createExchangeShadow(origin, namespace, clientset, labels)
|
||||
workload, podIP, podName, err := c.createExchangeShadow(origin, options.Namespace, clientset, labels)
|
||||
options.RuntimeOptions.Shadow=workload
|
||||
down := int32(0)
|
||||
scaleTo(origin, namespace, clientset, &down)
|
||||
remotePortForward(c.Expose, c.Kubeconfig, c.Namespace, podName, podIP, c.Debug)
|
||||
scaleTo(origin, options.Namespace, clientset, &down)
|
||||
remotePortForward(c.Expose, c.Kubeconfig, options.Namespace, podName, podIP, c.Debug)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user