mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(kubectl): rollout restart [r8s-322] (#729)
This commit is contained in:
parent
1abdf42f99
commit
3b313b9308
8 changed files with 85 additions and 68 deletions
|
@ -12,7 +12,10 @@ func (c *Client) RolloutRestart(ctx context.Context, manifests []string) (string
|
|||
buf := new(bytes.Buffer)
|
||||
|
||||
cmd := rollout.NewCmdRollout(c.factory, c.streams)
|
||||
cmd.SetArgs(manifestFilesToArgs(manifests))
|
||||
args := []string{"restart"}
|
||||
args = append(args, resourcesToArgs(manifests)...)
|
||||
|
||||
cmd.SetArgs(args)
|
||||
cmd.SetOut(buf)
|
||||
|
||||
if err := cmd.ExecuteContext(ctx); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue