Skip to content

Commit

Permalink
Add/status reason (#5)
Browse files Browse the repository at this point in the history
* add reason field to HelmRequestStatus
Co-authored-by: huizhang <[email protected]>
  • Loading branch information
zhhray authored Jan 19, 2021
1 parent 7fa45d3 commit a9b3bd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/app/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ type HelmRequestStatus struct {

// Verions is the real version that installed
Version string `json:"version,omitempty"`

// Reason will store the reason why the HelmRequest deploy failed
Reason string `json:"reason,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/app/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ type HelmRequestStatus struct {

// Verions is the real version that installed
Version string `json:"version,omitempty"`

// Reason will store the reason why the HelmRequest deploy failed
Reason string `json:"reason,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down

0 comments on commit a9b3bd3

Please sign in to comment.