Skip to content

Commit

Permalink
Use correct namespace for site controller token requests
Browse files Browse the repository at this point in the history
  • Loading branch information
grs authored and nluaces committed Jul 30, 2021
1 parent 437822d commit 52edb2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/connector_token_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (cli *VanClient) ConnectorTokenCreate(ctx context.Context, subject string,
namespace = cli.Namespace
}
// TODO: return error message for all the paths
configmap, err := kube.GetConfigMap(types.TransportConfigMapName, cli.Namespace, cli.KubeClient)
configmap, err := kube.GetConfigMap(types.TransportConfigMapName, namespace, cli.KubeClient)
if err != nil {
return nil, false, err
}
Expand All @@ -179,7 +179,7 @@ func (cli *VanClient) ConnectorTokenCreate(ctx context.Context, subject string,
return nil, false, fmt.Errorf("Edge configuration cannot accept connections")
}
//TODO: creat const for ca
caSecret, err := cli.KubeClient.CoreV1().Secrets(cli.Namespace).Get(types.SiteCaSecret, metav1.GetOptions{})
caSecret, err := cli.KubeClient.CoreV1().Secrets(namespace).Get(types.SiteCaSecret, metav1.GetOptions{})
if err != nil {
return nil, false, err
}
Expand Down

0 comments on commit 52edb2f

Please sign in to comment.