1
0
Fork 0
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:
Ali 2025-04-23 08:58:34 +12:00 committed by GitHub
parent 61d6ac035d
commit c91c8a6467
13 changed files with 701 additions and 32 deletions

View 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
}