diff --git a/deploy/crd/pmem-csi.intel.com_deployments.yaml b/deploy/crd/pmem-csi.intel.com_deployments.yaml index 16f213cdde..19cd7c363b 100644 --- a/deploy/crd/pmem-csi.intel.com_deployments.yaml +++ b/deploy/crd/pmem-csi.intel.com_deployments.yaml @@ -191,6 +191,7 @@ spec: lastUpdateTime: description: Last time the condition was probed. format: date-time + nullable: true type: string reason: description: Message human readable text that explain why this @@ -217,6 +218,7 @@ spec: lastUpdated: description: LastUpdated time of the driver status format: date-time + nullable: true type: string reason: description: Reason represents the human readable text that @@ -237,6 +239,7 @@ spec: lastUpdated: description: LastUpdated time of the deployment status format: date-time + nullable: true type: string phase: description: Phase indicates the state of the deployment @@ -478,6 +481,7 @@ spec: lastUpdateTime: description: Last time the condition was probed. format: date-time + nullable: true type: string reason: description: Message human readable text that explain why this @@ -504,6 +508,7 @@ spec: lastUpdated: description: LastUpdated time of the driver status format: date-time + nullable: true type: string reason: description: Reason represents the human readable text that @@ -524,6 +529,7 @@ spec: lastUpdated: description: LastUpdated time of the deployment status format: date-time + nullable: true type: string phase: description: Phase indicates the state of the deployment diff --git a/deploy/crd/pmem-csi.intel.com_deployments_webhook.yaml b/deploy/crd/pmem-csi.intel.com_deployments_webhook.yaml index eb96c01b12..a1b07a160d 100644 --- a/deploy/crd/pmem-csi.intel.com_deployments_webhook.yaml +++ b/deploy/crd/pmem-csi.intel.com_deployments_webhook.yaml @@ -174,6 +174,7 @@ spec: lastUpdateTime: description: Last time the condition was probed. format: date-time + nullable: true type: string reason: description: Message human readable text that explain why this condition is in this state @@ -198,6 +199,7 @@ spec: lastUpdated: description: LastUpdated time of the driver status format: date-time + nullable: true type: string reason: description: Reason represents the human readable text that explains why the driver is in this state. @@ -214,6 +216,7 @@ spec: lastUpdated: description: LastUpdated time of the deployment status format: date-time + nullable: true type: string phase: description: Phase indicates the state of the deployment @@ -416,6 +419,7 @@ spec: lastUpdateTime: description: Last time the condition was probed. format: date-time + nullable: true type: string reason: description: Message human readable text that explain why this condition is in this state @@ -440,6 +444,7 @@ spec: lastUpdated: description: LastUpdated time of the driver status format: date-time + nullable: true type: string reason: description: Reason represents the human readable text that explains why the driver is in this state. @@ -456,6 +461,7 @@ spec: lastUpdated: description: LastUpdated time of the deployment status format: date-time + nullable: true type: string phase: description: Phase indicates the state of the deployment diff --git a/pkg/apis/pmemcsi/v1alpha1/deployment_types.go b/pkg/apis/pmemcsi/v1alpha1/deployment_types.go index f9c9d8718a..01113b12a5 100644 --- a/pkg/apis/pmemcsi/v1alpha1/deployment_types.go +++ b/pkg/apis/pmemcsi/v1alpha1/deployment_types.go @@ -122,10 +122,9 @@ type DeploymentCondition struct { // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // Message human readable text that explain why this condition is in this state - // +optional Reason string `json:"reason,omitempty"` // Last time the condition was probed. - // +optional + // +nullable LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` } @@ -158,6 +157,7 @@ type DriverStatus struct { // driver is in this state. Reason string `json:"reason"` // LastUpdated time of the driver status + // +nullable LastUpdated metav1.Time `json:"lastUpdated,omitempty"` } @@ -175,6 +175,7 @@ type DeploymentStatus struct { Conditions []DeploymentCondition `json:"conditions,omitempty"` Components []DriverStatus `json:"driverComponents,omitempty"` // LastUpdated time of the deployment status + // +nullable LastUpdated metav1.Time `json:"lastUpdated,omitempty"` } diff --git a/pkg/apis/pmemcsi/v1beta1/deployment_types.go b/pkg/apis/pmemcsi/v1beta1/deployment_types.go index 61112ee3db..ad783ed01d 100644 --- a/pkg/apis/pmemcsi/v1beta1/deployment_types.go +++ b/pkg/apis/pmemcsi/v1beta1/deployment_types.go @@ -126,10 +126,9 @@ type DeploymentCondition struct { // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // Message human readable text that explain why this condition is in this state - // +optional Reason string `json:"reason,omitempty"` // Last time the condition was probed. - // +optional + // +nullable LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` } @@ -162,6 +161,7 @@ type DriverStatus struct { // driver is in this state. Reason string `json:"reason"` // LastUpdated time of the driver status + // +nullable LastUpdated metav1.Time `json:"lastUpdated,omitempty"` } @@ -179,6 +179,7 @@ type DeploymentStatus struct { Conditions []DeploymentCondition `json:"conditions,omitempty"` Components []DriverStatus `json:"driverComponents,omitempty"` // LastUpdated time of the deployment status + // +nullable LastUpdated metav1.Time `json:"lastUpdated,omitempty"` }