Skip to content

Commit

Permalink
Resolve @alpeb's feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Matei David <[email protected]>
  • Loading branch information
mateiidavid committed Jan 8, 2024
1 parent 9a1e046 commit 4cda12f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion policy-controller/k8s/api/src/external_workload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub struct Condition {
typ: String,
/// Status of the condition.
/// Can be True, False, Unknown
status: String,
status: ConditionStatus,
/// Last time a condition transitioned from one status to another.
last_transition_time: crate::apimachinery::pkg::apis::meta::v1::Time,
/// Last time an ExternalWorkload was probed for a condition.
Expand All @@ -86,3 +86,10 @@ pub struct Condition {
/// Human readable message that describes details about last transition.
message: String,
}

#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize, JsonSchema)]
pub enum ConditionStatus {
True,
False,
Unknown,
}

0 comments on commit 4cda12f

Please sign in to comment.