Skip to content

Commit

Permalink
enable pipeline deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jan 9, 2024
1 parent 9c7d398 commit 0ee4861
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions controller/internal/client/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ func (c *client) ListPipelines() (*console.GetPipelines, error) {
}

func (c *client) DeletePipeline(id string) (*console.PipelineFragment, error) {
// TODO: response, err := c.consoleClient.DeletePipeline(c.ctx, id)
//if err != nil {
// return nil, err
//}
//if response == nil {
// return nil, err
//}
//
//return response.DeleteCluster, nil
return nil, nil
response, err := c.consoleClient.DeletePipeline(c.ctx, id)
if err != nil {
return nil, err
}
if response == nil {
return nil, err
}

return response.DeletePipeline, nil
}

func (c *client) IsPipelineExisting(id string) bool {
Expand Down

0 comments on commit 0ee4861

Please sign in to comment.