Merge pull request #3694 from xyz-li/app-fix

check release resources status
This commit is contained in:
KubeSphere CI Bot
2021-04-11 13:31:15 +08:00
committed by GitHub
11 changed files with 299 additions and 137 deletions

View File

@@ -39,9 +39,9 @@ const (
HelmStatusDeleting = "deleting"
HelmStatusUpgrading = "upgrading"
HelmStatusRollbacking = "rollbacking"
HelmStatusPending = "pending"
HelmStatusSuccessful = "successful"
HelmStatusFailed = "failed"
HelmStatusCreated = "created"
HelmStatusUpgraded = "upgraded"
AttachmentTypeScreenshot = "screenshot"
AttachmentTypeIcon = "icon"
@@ -57,5 +57,7 @@ const (
UncategorizedId = "ctg-uncategorized"
AppStoreRepoId = "repo-helm"
ApplicationInstance = "app.kubesphere.io/instance"
OriginWorkspaceLabelKey = "kubesphere.io/workspace-origin"
)

View File

@@ -58,9 +58,9 @@ type HelmReleaseSpec struct {
type HelmReleaseDeployStatus struct {
// A human readable message indicating details about why the release is in this state.
Message string `json:"message,omitempty"`
// deploy state
// current state of the release
State string `json:"state"`
// deploy time
// deploy time, upgrade time or check status time
Time metav1.Time `json:"deployTime"`
}
@@ -76,7 +76,7 @@ type HelmReleaseStatus struct {
DeployStatus []HelmReleaseDeployStatus `json:"deployStatus,omitempty"`
// last update time
LastUpdate metav1.Time `json:"lastUpdate,omitempty"`
// last successful deploy time
// last deploy time or upgrade time
LastDeployed *metav1.Time `json:"lastDeployed,omitempty"`
}