Add a spark-operator plugin (#2821)

mine
Jacob Salway 2024-08-16 09:10:47 +10:00 committed by GitHub
parent e7ddea63ef
commit 6096bfa0f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# See https://github.com/kubeflow/spark-operator
plugins:
toggleScheduledSparkApp:
shortCut: s
confirm: true
dangerous: true
scopes:
- scheduledsparkapp
description: Toggle suspend
command: kubectl
background: true
args:
- patch
- scheduledsparkapp
- $NAME
- -n
- $NAMESPACE
- --context
- $CONTEXT
- -p
- '{"spec": {"suspend": $!COL-SUSPEND}}'
- --type
- merge