From 52954020603d47f5d86eb6b21068beabd0f5e3dd Mon Sep 17 00:00:00 2001 From: rmweir Date: Sun, 8 Mar 2020 18:03:31 -0700 Subject: [PATCH 1/2] Add description field to feature status --- apis/management.cattle.io/v3/global_types.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/global_types.go b/apis/management.cattle.io/v3/global_types.go index e0fc5194..78370c34 100644 --- a/apis/management.cattle.io/v3/global_types.go +++ b/apis/management.cattle.io/v3/global_types.go @@ -27,6 +27,7 @@ type FeatureSpec struct { } type FeatureStatus struct { - Dynamic bool `json:"dynamic"` - Default bool `json:"default"` + Dynamic bool `json:"dynamic"` + Default bool `json:"default"` + Description string `json:"description"` } From 70911da429c3346680415b8cd0d98f779dfc0cd8 Mon Sep 17 00:00:00 2001 From: rmweir Date: Sun, 8 Mar 2020 18:06:05 -0700 Subject: [PATCH 2/2] go generate --- client/management/v3/zz_generated_feature_status.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/management/v3/zz_generated_feature_status.go b/client/management/v3/zz_generated_feature_status.go index 44ca220d..3d055cb9 100644 --- a/client/management/v3/zz_generated_feature_status.go +++ b/client/management/v3/zz_generated_feature_status.go @@ -1,12 +1,14 @@ package client const ( - FeatureStatusType = "featureStatus" - FeatureStatusFieldDefault = "default" - FeatureStatusFieldDynamic = "dynamic" + FeatureStatusType = "featureStatus" + FeatureStatusFieldDefault = "default" + FeatureStatusFieldDescription = "description" + FeatureStatusFieldDynamic = "dynamic" ) type FeatureStatus struct { - Default bool `json:"default,omitempty" yaml:"default,omitempty"` - Dynamic bool `json:"dynamic,omitempty" yaml:"dynamic,omitempty"` + Default bool `json:"default,omitempty" yaml:"default,omitempty"` + Description string `json:"description,omitempty" yaml:"description,omitempty"` + Dynamic bool `json:"dynamic,omitempty" yaml:"dynamic,omitempty"` }