mirror of
https://github.com/actions-runner-controller/actions-runner-controller.git
synced 2026-10-09 05:05:56 +02:00
Fix ephemeral runner set status update
This commit is contained in:
@@ -315,6 +315,7 @@ type HistogramMetric struct {
|
||||
// AutoscalingRunnerSetStatus defines the observed state of AutoscalingRunnerSet
|
||||
type AutoscalingRunnerSetStatus struct {
|
||||
// +optional
|
||||
// +kubebuilder:validation:Minimum=0
|
||||
CurrentRunners int `json:"currentRunners"`
|
||||
|
||||
// +optional
|
||||
|
||||
@@ -38,12 +38,16 @@ type EphemeralRunnerSetSpec struct {
|
||||
// EphemeralRunnerSetStatus defines the observed state of EphemeralRunnerSet
|
||||
type EphemeralRunnerSetStatus struct {
|
||||
// CurrentReplicas is the number of currently running EphemeralRunner resources being managed by this EphemeralRunnerSet.
|
||||
// +kubebuilder:validation:Minimum=0
|
||||
CurrentReplicas int `json:"currentReplicas"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Minimum=0
|
||||
PendingEphemeralRunners int `json:"pendingEphemeralRunners"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Minimum=0
|
||||
RunningEphemeralRunners int `json:"runningEphemeralRunners"`
|
||||
// +optional
|
||||
// +kubebuilder:validation:Minimum=0
|
||||
FailedEphemeralRunners int `json:"failedEphemeralRunners"`
|
||||
// +optional
|
||||
Phase EphemeralRunnerSetPhase `json:"phase"`
|
||||
|
||||
Reference in New Issue
Block a user