@@ -42,6 +42,7 @@ Installations are triggered when the `mode` setting is "upgrade." They can also
|
|||||||
| wait_for_upgrade | boolean | | wait | Wait until kubernetes resources are in a ready state before marking the installation successful. |
|
| wait_for_upgrade | boolean | | wait | Wait until kubernetes resources are in a ready state before marking the installation successful. |
|
||||||
| timeout | duration | | | Timeout for any *individual* Kubernetes operation. The installation's full runtime may exceed this duration. |
|
| timeout | duration | | | Timeout for any *individual* Kubernetes operation. The installation's full runtime may exceed this duration. |
|
||||||
| force_upgrade | boolean | | force | Pass `--force-replace` to `helm upgrade`. |
|
| force_upgrade | boolean | | force | Pass `--force-replace` to `helm upgrade`. |
|
||||||
|
| force_conflicts | boolean | | foforce_conflictsrce | Pass `--force-conflicts` to `helm upgrade`. |
|
||||||
| atomic_upgrade | boolean | | | Pass `--atomic` to `helm upgrade`. |
|
| atomic_upgrade | boolean | | | Pass `--atomic` to `helm upgrade`. |
|
||||||
| cleanup_failed_upgrade | boolean | | | Pass `--cleanup-on-fail` to `helm upgrade`. |
|
| cleanup_failed_upgrade | boolean | | | Pass `--cleanup-on-fail` to `helm upgrade`. |
|
||||||
| history_max | int | | | Pass `--history-max` to `helm upgrade`. |
|
| history_max | int | | | Pass `--history-max` to `helm upgrade`. |
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ type Upgrade struct {
|
|||||||
reuseValues bool
|
reuseValues bool
|
||||||
timeout string
|
timeout string
|
||||||
force bool
|
force bool
|
||||||
|
forceConflict bool
|
||||||
atomic bool
|
atomic bool
|
||||||
cleanupOnFail bool
|
cleanupOnFail bool
|
||||||
historyMax int
|
historyMax int
|
||||||
@@ -90,6 +91,9 @@ func (u *Upgrade) Prepare() error {
|
|||||||
if u.force {
|
if u.force {
|
||||||
args = append(args, "--force-replace")
|
args = append(args, "--force-replace")
|
||||||
}
|
}
|
||||||
|
if u.forceConflict {
|
||||||
|
args = append(args, "--force-conflicts")
|
||||||
|
}
|
||||||
if u.atomic {
|
if u.atomic {
|
||||||
args = append(args, "--atomic")
|
args = append(args, "--atomic")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user