mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 08:15:48 -04:00
helm: re-enable timeout flag (#2658)
* Honor (hidden) timeout flag for applying helm charts * Set only internally used structs to private --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
e06848c68a
commit
b3c734b804
11 changed files with 137 additions and 129 deletions
|
@ -97,8 +97,8 @@ func TestParseApplyFlags(t *testing.T) {
|
|||
"default flags": {
|
||||
flags: defaultFlags(),
|
||||
wantFlags: applyFlags{
|
||||
helmWaitMode: helm.WaitModeAtomic,
|
||||
upgradeTimeout: 5 * time.Minute,
|
||||
helmWaitMode: helm.WaitModeAtomic,
|
||||
helmTimeout: 10 * time.Minute,
|
||||
},
|
||||
},
|
||||
"skip phases": {
|
||||
|
@ -108,9 +108,9 @@ func TestParseApplyFlags(t *testing.T) {
|
|||
return flags
|
||||
}(),
|
||||
wantFlags: applyFlags{
|
||||
skipPhases: newPhases(skipHelmPhase, skipK8sPhase),
|
||||
helmWaitMode: helm.WaitModeAtomic,
|
||||
upgradeTimeout: 5 * time.Minute,
|
||||
skipPhases: newPhases(skipHelmPhase, skipK8sPhase),
|
||||
helmWaitMode: helm.WaitModeAtomic,
|
||||
helmTimeout: 10 * time.Minute,
|
||||
},
|
||||
},
|
||||
"skip helm wait": {
|
||||
|
@ -120,8 +120,8 @@ func TestParseApplyFlags(t *testing.T) {
|
|||
return flags
|
||||
}(),
|
||||
wantFlags: applyFlags{
|
||||
helmWaitMode: helm.WaitModeNone,
|
||||
upgradeTimeout: 5 * time.Minute,
|
||||
helmWaitMode: helm.WaitModeNone,
|
||||
helmTimeout: 10 * time.Minute,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue