@@ -142,15 +142,15 @@ func newVirtualWorkspace(ctx context.Context, index int, servingCA *crypto.CA, h
142142 return nil , err
143143 }
144144
145- var args []string
146- args = append (args ,
145+ args := []string {
147146 fmt .Sprintf ("--kubeconfig=%s" , kubeconfigPath ),
148147 fmt .Sprintf ("--shard-external-url=https://%s:%d" , hostIP , 6443 ),
149148 fmt .Sprintf ("--cache-kubeconfig=%s" , cacheServerConfigPath ),
150149 fmt .Sprintf ("--authentication-kubeconfig=%s" , authenticationKubeconfigPath ),
151150 fmt .Sprintf ("--client-ca-file=%s" , clientCAFilePath ),
152151 fmt .Sprintf ("--tls-private-key-file=%s" , servingKeyFile ),
153152 fmt .Sprintf ("--tls-cert-file=%s" , servingCertFile ),
153+ fmt .Sprintf ("--bind-address=%s" , hostIP ),
154154 fmt .Sprintf ("--secure-port=%s" , virtualWorkspacePort (index )),
155155 "--audit-log-maxsize=1024" ,
156156 "--audit-log-mode=batch" ,
@@ -161,7 +161,7 @@ func newVirtualWorkspace(ctx context.Context, index int, servingCA *crypto.CA, h
161161 "--audit-log-batch-throttle-enable=true" ,
162162 "--audit-log-batch-throttle-qps=10" ,
163163 fmt .Sprintf ("--audit-policy-file=%s" , auditPolicyFile ),
164- )
164+ }
165165
166166 return & VirtualWorkspace {
167167 index : index ,
0 commit comments