mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-03 12:36:09 -04:00
cli: add "--skip-helm-wait" flag (#2061)
* cli: add "--skip-helm-wait" flag This flag can be used to disable the atomic and wait flags during helm install. This is useful when debugging a failing constellation init, since the user gains access to the cluster even when one of the deployments is never in a ready state.
This commit is contained in:
parent
7e83991154
commit
1ff40533f1
7 changed files with 84 additions and 19 deletions
|
@ -12,6 +12,7 @@ type Release struct {
|
|||
Chart []byte
|
||||
Values map[string]any
|
||||
ReleaseName string
|
||||
WaitMode WaitMode
|
||||
}
|
||||
|
||||
// Releases bundles all helm releases to be deployed to Constellation.
|
||||
|
@ -43,3 +44,16 @@ func MergeMaps(a, b map[string]any) map[string]any {
|
|||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// WaitMode specifies the wait mode for a helm release.
|
||||
type WaitMode string
|
||||
|
||||
const (
|
||||
// WaitModeNone specifies that the helm release should not wait for the resources to be ready.
|
||||
WaitModeNone WaitMode = ""
|
||||
// WaitModeWait specifies that the helm release should wait for the resources to be ready.
|
||||
WaitModeWait WaitMode = "wait"
|
||||
// WaitModeAtomic specifies that the helm release should
|
||||
// wait for the resources to be ready and roll back atomically on failure.
|
||||
WaitModeAtomic WaitMode = "atomic"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue