From e4f495dcd3c0ca2bf9b5113db90947898704ee9e Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Thu, 22 Apr 2021 11:00:09 +0800 Subject: [PATCH] helm app installing --- pkg/apis/rainbond/v1alpha1/helmapp_types.go | 1 + worker/controllers/helmapp/status.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pkg/apis/rainbond/v1alpha1/helmapp_types.go b/pkg/apis/rainbond/v1alpha1/helmapp_types.go index 040ce8689..8b95cdca1 100644 --- a/pkg/apis/rainbond/v1alpha1/helmapp_types.go +++ b/pkg/apis/rainbond/v1alpha1/helmapp_types.go @@ -29,6 +29,7 @@ const ( HelmAppStatusPhaseInitialing HelmAppStatusPhase = "initialing" HelmAppStatusPhaseDetecting HelmAppStatusPhase = "detecting" HelmAppStatusPhaseConfiguring HelmAppStatusPhase = "configuring" + HelmAppStatusPhaseInstalling HelmAppStatusPhase = "installing" HelmAppStatusPhaseInstalled HelmAppStatusPhase = "installed" ) diff --git a/worker/controllers/helmapp/status.go b/worker/controllers/helmapp/status.go index 7be289feb..f1fddb424 100644 --- a/worker/controllers/helmapp/status.go +++ b/worker/controllers/helmapp/status.go @@ -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