@ -379,6 +379,22 @@ func (i *Install) performInstall(c chan<- resultMessage, rel *release.Release, t
}
}
}
}
if ! i . Wait && ! i . DisableHooks {
// Check if there are any post-* hooks
hasPostHooks := false
for _ , hook := range release . Hooks {
if strings . HasPrefix ( hook . Kind , "post-" ) {
hasPostHooks = true
break
}
}
// Enable wait flag if there are post-* hooks
if hasPostHooks {
i . Wait = true
}
}
if i . Wait {
if i . Wait {
if i . WaitForJobs {
if i . WaitForJobs {
if err := i . cfg . KubeClient . WaitWithJobs ( resources , i . Timeout ) ; err != nil {
if err := i . cfg . KubeClient . WaitWithJobs ( resources , i . Timeout ) ; err != nil {
@ -400,6 +416,7 @@ func (i *Install) performInstall(c chan<- resultMessage, rel *release.Release, t
}
}
}
}
if len ( i . Description ) > 0 {
if len ( i . Description ) > 0 {
rel . SetStatus ( release . StatusDeployed , i . Description )
rel . SetStatus ( release . StatusDeployed , i . Description )
} else {
} else {