diff --git a/api/v1alpha1/runner_types.go b/api/v1alpha1/runner_types.go index c3fa5b27..99e1dd5e 100644 --- a/api/v1alpha1/runner_types.go +++ b/api/v1alpha1/runner_types.go @@ -121,13 +121,16 @@ func (rs *RunnerSpec) ValidateRepository() error { // RunnerStatus defines the observed state of Runner type RunnerStatus struct { + // +optional Registration RunnerStatusRegistration `json:"registration"` - Phase string `json:"phase"` - Reason string `json:"reason"` - Message string `json:"message"` - - //+optional - LastRegistrationCheckTime *metav1.Time `json:"lastRegistrationCheckTime"` + // +optional + Phase string `json:"phase,omitempty"` + // +optional + Reason string `json:"reason,omitempty"` + // +optional + Message string `json:"message,omitempty"` + // +optional + LastRegistrationCheckTime *metav1.Time `json:"lastRegistrationCheckTime,omitempty"` } // RunnerStatusRegistration contains runner registration status diff --git a/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml b/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml index 0f77c190..86d42c9c 100644 --- a/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml +++ b/charts/actions-runner-controller/crds/actions.summerwind.dev_runners.yaml @@ -1572,11 +1572,6 @@ spec: - expiresAt - token type: object - required: - - message - - phase - - reason - - registration type: object type: object version: v1alpha1 diff --git a/config/crd/bases/actions.summerwind.dev_runners.yaml b/config/crd/bases/actions.summerwind.dev_runners.yaml index 0f77c190..86d42c9c 100644 --- a/config/crd/bases/actions.summerwind.dev_runners.yaml +++ b/config/crd/bases/actions.summerwind.dev_runners.yaml @@ -1572,11 +1572,6 @@ spec: - expiresAt - token type: object - required: - - message - - phase - - reason - - registration type: object type: object version: v1alpha1