From ee81a7544b37e9129a86be50679b449031a50dfb Mon Sep 17 00:00:00 2001 From: Craig Jellick Date: Wed, 27 Dec 2017 13:53:50 -0700 Subject: [PATCH] add message field to all condition types --- apis/management.cattle.io/v3/authz_types.go | 2 +- apis/management.cattle.io/v3/cluster_types.go | 2 ++ apis/management.cattle.io/v3/machine_types.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/authz_types.go b/apis/management.cattle.io/v3/authz_types.go index bd04cbef..272cfb40 100644 --- a/apis/management.cattle.io/v3/authz_types.go +++ b/apis/management.cattle.io/v3/authz_types.go @@ -36,7 +36,7 @@ type ProjectCondition struct { LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` - // Human-readable, longer explanation of the last transition + // Human-readable message indicating details about last transition Message string `json:"message,omitempty"` } diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index c4b4a483..41f0c847 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -77,6 +77,8 @@ type ClusterCondition struct { LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` + // Human-readable message indicating details about last transition + Message string `json:"message,omitempty"` } type GoogleKubernetesEngineConfig struct { diff --git a/apis/management.cattle.io/v3/machine_types.go b/apis/management.cattle.io/v3/machine_types.go index 527afa10..5568e578 100644 --- a/apis/management.cattle.io/v3/machine_types.go +++ b/apis/management.cattle.io/v3/machine_types.go @@ -86,6 +86,8 @@ type MachineCondition struct { LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` + // Human-readable message indicating details about last transition + Message string `json:"message,omitempty"` } type MachineSpec struct {