From 74399792b41ea3485fc5926139f28c1944f6c981 Mon Sep 17 00:00:00 2001 From: David Mealo Date: Mon, 28 Oct 2024 13:18:32 -0400 Subject: [PATCH 1/3] Update argo-rollouts.yaml with commented version for PowerShell --- plugins/argo-rollouts.yaml | 87 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/plugins/argo-rollouts.yaml b/plugins/argo-rollouts.yaml index b6e7fec8f5..ec2beebdc5 100644 --- a/plugins/argo-rollouts.yaml +++ b/plugins/argo-rollouts.yaml @@ -49,3 +49,90 @@ plugins: args: - -c - kubectl argo rollouts restart $NAME --context $CONTEXT -n $NAMESPACE |& less + +# # Manage argo-rollouts from PowerShell +# # See https://argoproj.github.io/argo-rollouts/ +# # Get rollout details +# # Watch rollout progress +# #

(with confirmation) Promote rollout +# # (with confirmation) Restart rollout +# plugins: +# argo-rollouts-get: +# shortCut: g +# confirm: false +# description: Get details +# scopes: +# - rollouts +# command: powershell +# background: false +# args: +# - kubectl +# - argo +# - rollouts +# - get +# - rollout +# - $NAME +# - --context +# - $CONTEXT +# - -n +# - $NAMESPACE; +# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') +# argo-rollouts-watch: +# shortCut: w +# confirm: false +# description: Watch progress +# scopes: +# - rollouts +# command: powershell +# background: false +# args: +# - kubectl +# - argo +# - rollouts +# - get +# - rollout +# - $NAME +# - --context +# - $CONTEXT +# - -n +# - $NAMESPACE +# - -w; +# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') +# argo-rollouts-promote: +# shortCut: p +# confirm: true +# description: Promote +# scopes: +# - rollouts +# command: powershell +# background: false +# args: +# - kubectl +# - argo +# - rollouts +# - promote +# - $NAME +# - --context +# - $CONTEXT +# - -n +# - $NAMESPACE; +# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') +# argo-rollouts-restart: +# shortCut: r +# confirm: true +# description: Restart +# scopes: +# - rollouts +# command: bash +# background: false +# args: +# - kubectl +# - argo +# - rollouts +# - restart +# - $NAME +# - --context +# - $CONTEXT +# - -n +# - $NAMESPACE; +# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') From db44775df0a1d0d65e347478ab0ca039c82837ff Mon Sep 17 00:00:00 2001 From: David Mealo Date: Mon, 28 Oct 2024 16:09:39 -0400 Subject: [PATCH 2/3] Update argo-rollouts.yaml --- plugins/argo-rollouts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/argo-rollouts.yaml b/plugins/argo-rollouts.yaml index ec2beebdc5..aa123b11fc 100644 --- a/plugins/argo-rollouts.yaml +++ b/plugins/argo-rollouts.yaml @@ -123,7 +123,7 @@ plugins: # description: Restart # scopes: # - rollouts -# command: bash +# command: powershell # background: false # args: # - kubectl From 97bcb5c41bfee4bfd4ae74218db36c91e97a7496 Mon Sep 17 00:00:00 2001 From: David Mealo Date: Wed, 30 Oct 2024 09:57:38 -0400 Subject: [PATCH 3/3] Moving Plugin - Argo Rollouts for Powershell - to separate file --- plugins/argo-rollouts-powershell.yaml | 86 ++++++++++++++++++++++++++ plugins/argo-rollouts.yaml | 87 --------------------------- 2 files changed, 86 insertions(+), 87 deletions(-) create mode 100644 plugins/argo-rollouts-powershell.yaml diff --git a/plugins/argo-rollouts-powershell.yaml b/plugins/argo-rollouts-powershell.yaml new file mode 100644 index 0000000000..fead287285 --- /dev/null +++ b/plugins/argo-rollouts-powershell.yaml @@ -0,0 +1,86 @@ +# Manage argo-rollouts from PowerShell +# See https://argoproj.github.io/argo-rollouts/ +# Get rollout details +# Watch rollout progress +#

(with confirmation) Promote rollout +# (with confirmation) Restart rollout +plugins: + argo-rollouts-get: + shortCut: g + confirm: false + description: Get details + scopes: + - rollouts + command: powershell + background: false + args: + - kubectl + - argo + - rollouts + - get + - rollout + - $NAME + - --context + - $CONTEXT + - -n + - $NAMESPACE; + - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') + argo-rollouts-watch: + shortCut: w + confirm: false + description: Watch progress + scopes: + - rollouts + command: powershell + background: false + args: + - kubectl + - argo + - rollouts + - get + - rollout + - $NAME + - --context + - $CONTEXT + - -n + - $NAMESPACE + - -w; + - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') + argo-rollouts-promote: + shortCut: p + confirm: true + description: Promote + scopes: + - rollouts + command: powershell + background: false + args: + - kubectl + - argo + - rollouts + - promote + - $NAME + - --context + - $CONTEXT + - -n + - $NAMESPACE; + - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') + argo-rollouts-restart: + shortCut: r + confirm: true + description: Restart + scopes: + - rollouts + command: powershell + background: false + args: + - kubectl + - argo + - rollouts + - restart + - $NAME + - --context + - $CONTEXT + - -n + - $NAMESPACE; + - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') \ No newline at end of file diff --git a/plugins/argo-rollouts.yaml b/plugins/argo-rollouts.yaml index aa123b11fc..b6e7fec8f5 100644 --- a/plugins/argo-rollouts.yaml +++ b/plugins/argo-rollouts.yaml @@ -49,90 +49,3 @@ plugins: args: - -c - kubectl argo rollouts restart $NAME --context $CONTEXT -n $NAMESPACE |& less - -# # Manage argo-rollouts from PowerShell -# # See https://argoproj.github.io/argo-rollouts/ -# # Get rollout details -# # Watch rollout progress -# #

(with confirmation) Promote rollout -# # (with confirmation) Restart rollout -# plugins: -# argo-rollouts-get: -# shortCut: g -# confirm: false -# description: Get details -# scopes: -# - rollouts -# command: powershell -# background: false -# args: -# - kubectl -# - argo -# - rollouts -# - get -# - rollout -# - $NAME -# - --context -# - $CONTEXT -# - -n -# - $NAMESPACE; -# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') -# argo-rollouts-watch: -# shortCut: w -# confirm: false -# description: Watch progress -# scopes: -# - rollouts -# command: powershell -# background: false -# args: -# - kubectl -# - argo -# - rollouts -# - get -# - rollout -# - $NAME -# - --context -# - $CONTEXT -# - -n -# - $NAMESPACE -# - -w; -# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') -# argo-rollouts-promote: -# shortCut: p -# confirm: true -# description: Promote -# scopes: -# - rollouts -# command: powershell -# background: false -# args: -# - kubectl -# - argo -# - rollouts -# - promote -# - $NAME -# - --context -# - $CONTEXT -# - -n -# - $NAMESPACE; -# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown') -# argo-rollouts-restart: -# shortCut: r -# confirm: true -# description: Restart -# scopes: -# - rollouts -# command: powershell -# background: false -# args: -# - kubectl -# - argo -# - rollouts -# - restart -# - $NAME -# - --context -# - $CONTEXT -# - -n -# - $NAMESPACE; -# - $null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')