helm app installing

This commit is contained in:
GLYASAI 2021-04-22 11:00:09 +08:00
parent 790dccd84f
commit e4f495dcd3
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ const (
HelmAppStatusPhaseInitialing HelmAppStatusPhase = "initialing"
HelmAppStatusPhaseDetecting HelmAppStatusPhase = "detecting"
HelmAppStatusPhaseConfiguring HelmAppStatusPhase = "configuring"
HelmAppStatusPhaseInstalling HelmAppStatusPhase = "installing"
HelmAppStatusPhaseInstalled HelmAppStatusPhase = "installed"
)

View File

@ -48,6 +48,9 @@ func (s *Status) getPhase() v1alpha1.HelmAppStatusPhase {
phase = v1alpha1.HelmAppStatusPhaseConfiguring
}
if s.values != "" {
phase = v1alpha1.HelmAppStatusPhaseInstalling
}
if s.values == s.CurrentValues {
phase = v1alpha1.HelmAppStatusPhaseInstalled
}
return phase