Skip to content

Commit decddaa

Browse files
committed
Update BuildPipelineSyncStages to use config in deployment logic
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
1 parent 1b79d50 commit decddaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/plugin/sdk/deployment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (s *DeploymentPluginServiceServer[Config, DeployTargetConfig]) DetermineStr
158158
return nil, status.Errorf(codes.Unimplemented, "method DetermineStrategy not implemented")
159159
}
160160
func (s *DeploymentPluginServiceServer[Config, DeployTargetConfig]) BuildPipelineSyncStages(ctx context.Context, request *deployment.BuildPipelineSyncStagesRequest) (*deployment.BuildPipelineSyncStagesResponse, error) {
161-
return buildPipelineSyncStages(ctx, s.base, nil, nil, request) // TODO: pass the real config and client
161+
return buildPipelineSyncStages(ctx, s.base, &s.config, nil, request) // TODO: pass the real client
162162
}
163163
func (s *DeploymentPluginServiceServer[Config, DeployTargetConfig]) BuildQuickSyncStages(context.Context, *deployment.BuildQuickSyncStagesRequest) (*deployment.BuildQuickSyncStagesResponse, error) {
164164
return nil, status.Errorf(codes.Unimplemented, "method BuildQuickSyncStages not implemented")
@@ -215,7 +215,7 @@ func (s *PipelineSyncPluginServiceServer[Config, DeployTargetConfig]) DetermineS
215215
return &deployment.DetermineStrategyResponse{Unsupported: true}, nil
216216
}
217217
func (s *PipelineSyncPluginServiceServer[Config, DeployTargetConfig]) BuildPipelineSyncStages(ctx context.Context, request *deployment.BuildPipelineSyncStagesRequest) (*deployment.BuildPipelineSyncStagesResponse, error) {
218-
return buildPipelineSyncStages(ctx, s.base, nil, nil, request) // TODO: pass the real config and client
218+
return buildPipelineSyncStages(ctx, s.base, &s.config, nil, request) // TODO: pass the real client
219219
}
220220
func (s *PipelineSyncPluginServiceServer[Config, DeployTargetConfig]) BuildQuickSyncStages(context.Context, *deployment.BuildQuickSyncStagesRequest) (*deployment.BuildQuickSyncStagesResponse, error) {
221221
return nil, status.Errorf(codes.Unimplemented, "method BuildQuickSyncStages not implemented")

0 commit comments

Comments
 (0)