mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
feat(helm): rollback helm chart [r8s-287] (#660)
This commit is contained in:
parent
61d6ac035d
commit
c91c8a6467
13 changed files with 701 additions and 32 deletions
19
pkg/libhelm/options/rollback_options.go
Normal file
19
pkg/libhelm/options/rollback_options.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package options
|
||||
|
||||
import "time"
|
||||
|
||||
// RollbackOptions defines options for rollback.
|
||||
type RollbackOptions struct {
|
||||
// Required
|
||||
Name string
|
||||
Namespace string
|
||||
KubernetesClusterAccess *KubernetesClusterAccess
|
||||
|
||||
// Optional with defaults
|
||||
Version int // Target revision to rollback to (0 means previous revision)
|
||||
Timeout time.Duration // Default: 5 minutes
|
||||
Wait bool // Default: false
|
||||
WaitForJobs bool // Default: false
|
||||
Recreate bool // Default: false - whether to recreate pods
|
||||
Force bool // Default: false - whether to force recreation
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue