Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
yipeng1030 committed Nov 22, 2024
1 parent bc55b45 commit 0c9eceb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/action/template/cluster_operations_template.cue
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,14 @@ content: {
ttlSecondsAfterSucceed: options.ttlSecondsAfterSucceed
force: options.force
if options.type == "Stop" {
stop: options.componentNames
stop: [ for _, cName in options.componentNames {
componentName: cName
}]
}
if options.type == "Start" {
start: options.componentNames
start: [ for _, cName in options.componentNames {
componentName: cName
}]
}
if options.type == "Upgrade" {
upgrade: #upgrade
Expand Down

0 comments on commit 0c9eceb

Please sign in to comment.