Skip to content

Commit af0447c

Browse files
committed
Ensure scripmgr client is properly created in api service
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 034804f commit af0447c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

k8s/cloud/base/api_deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ spec:
5959
configMapKeyRef:
6060
name: pl-service-config
6161
key: PL_VZMGR_SERVICE
62+
- name: PL_SCRIPTMGR_SERVICE
63+
valueFrom:
64+
configMapKeyRef:
65+
name: pl-service-config
66+
key: PL_SCRIPTMGR_SERVICE
6267
- name: PL_AUTH_SERVICE
6368
valueFrom:
6469
configMapKeyRef:

src/cloud/api/apienv/scriptmgr_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
func init() {
31-
pflag.String("scriptmgr_service", "scriptmgr-service.plc.svc.local:52000", "The profile service url (load balancer/list is ok)")
31+
pflag.String("scriptmgr_service", "scriptmgr-service.plc.svc.local:52000", "The scriptmgr service url (load balancer/list is ok)")
3232
}
3333

3434
// NewScriptMgrServiceClient creates a new scriptmgr RPC client stub.
@@ -38,7 +38,7 @@ func NewScriptMgrServiceClient() (scriptmgrpb.ScriptMgrServiceClient, error) {
3838
return nil, err
3939
}
4040

41-
authChannel, err := grpc.Dial(viper.GetString("scripts_service"), dialOpts...)
41+
authChannel, err := grpc.Dial(viper.GetString("scriptmgr_service"), dialOpts...)
4242
if err != nil {
4343
return nil, err
4444
}

0 commit comments

Comments
 (0)