From 20ce6d089c762ad62570b42908b08c0a2507f63f Mon Sep 17 00:00:00 2001 From: Eguo Wang Date: Thu, 12 Jan 2023 20:39:09 +0800 Subject: [PATCH] Upgraded actor status definition --- charts/amphitheatre/Chart.yaml | 2 +- charts/amphitheatre/crds/actor.yaml | 40 ++++++++++++++++++++++++----- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/charts/amphitheatre/Chart.yaml b/charts/amphitheatre/Chart.yaml index 30edddd..7b3a123 100644 --- a/charts/amphitheatre/Chart.yaml +++ b/charts/amphitheatre/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.1 +version: 0.3.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/amphitheatre/crds/actor.yaml b/charts/amphitheatre/crds/actor.yaml index 5d94eb1..241fb6f 100644 --- a/charts/amphitheatre/crds/actor.yaml +++ b/charts/amphitheatre/crds/actor.yaml @@ -89,13 +89,41 @@ spec: - repo type: object status: - enum: - - Pending - - Building - - Running - - Failed nullable: true - type: string + properties: + conditions: + items: + description: Condition contains details for one aspect of the current state of this API Resource. + properties: + lastTransitionTime: + description: lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + format: date-time + type: string + message: + description: message is a human readable message indicating details about the transition. This may be an empty string. + type: string + observedGeneration: + description: observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + format: int64 + type: integer + reason: + description: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + type: string + status: + description: status of the condition, one of True, False, Unknown. + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + type: array + type: object required: - spec title: Actor