Skip to content

Commit

Permalink
fix plugin deploy issue with workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vramk23 committed May 31, 2024
1 parent 0f8e275 commit 9bd5b3e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions capten/agent/internal/api/cluster_plugin_apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func (a *Agent) GetClusterPlugins(ctx context.Context, request *clusterpluginspb
}, nil
}

a.log.Infof("pluginConfigList: %+v", pluginConfigList)
clusterPlugins := []*clusterpluginspb.ClusterPlugin{}
for idx, pluginConfig := range pluginConfigList {
clusterPlugins[idx] = &clusterpluginspb.ClusterPlugin{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ func NewPluginActivities() (*PluginActivities, error) {

as, err := captenstore.NewStore(logger)
if err != nil {
logger.Errorf("failed to initialize plugin app store, %v", err)
return nil, err
}

k8sclient, err := k8s.NewK8SClient(logger)
if err != nil {
logger.Errorf("failed to get k8s client, %v", err)
return nil, err
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func setContext(ctx workflow.Context, timeInSeconds int, log logging.Logger) wor
}

func hanldeDeployWorkflow(ctx workflow.Context, payload json.RawMessage, log logging.Logger, pas *captenstore.Store) (*model.ResponsePayload, error) {
log.Info("Starting deploy plugin workflow")
var a *activities.PluginActivities
result := &model.ResponsePayload{}
ctx = setContext(ctx, 600, log)
Expand Down

0 comments on commit 9bd5b3e

Please sign in to comment.