From a9b3bd3f1a75c892ab4ad4d7e62f299fae92292f Mon Sep 17 00:00:00 2001 From: zhhray Date: Tue, 19 Jan 2021 14:46:02 +0800 Subject: [PATCH] Add/status reason (#5) * add reason field to HelmRequestStatus Co-authored-by: huizhang --- pkg/apis/app/v1alpha1/types.go | 3 +++ pkg/apis/app/v1beta1/types.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkg/apis/app/v1alpha1/types.go b/pkg/apis/app/v1alpha1/types.go index 4ade314..013e4b5 100644 --- a/pkg/apis/app/v1alpha1/types.go +++ b/pkg/apis/app/v1alpha1/types.go @@ -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 diff --git a/pkg/apis/app/v1beta1/types.go b/pkg/apis/app/v1beta1/types.go index 2399ba2..9bb873c 100644 --- a/pkg/apis/app/v1beta1/types.go +++ b/pkg/apis/app/v1beta1/types.go @@ -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