Merge pull request #404 from summerwind/fix-reg-update-runner-status-err

Fix `Failed to update runner status for Registration` errors
This commit is contained in:
Yusuke Kuoka 2021-03-19 08:56:20 +09:00 committed by GitHub
commit c5fdfd63db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 17 deletions

View File

@ -121,13 +121,16 @@ func (rs *RunnerSpec) ValidateRepository() error {
// RunnerStatus defines the observed state of Runner // RunnerStatus defines the observed state of Runner
type RunnerStatus struct { type RunnerStatus struct {
// +optional
Registration RunnerStatusRegistration `json:"registration"` Registration RunnerStatusRegistration `json:"registration"`
Phase string `json:"phase"` // +optional
Reason string `json:"reason"` Phase string `json:"phase,omitempty"`
Message string `json:"message"` // +optional
Reason string `json:"reason,omitempty"`
//+optional // +optional
LastRegistrationCheckTime *metav1.Time `json:"lastRegistrationCheckTime"` Message string `json:"message,omitempty"`
// +optional
LastRegistrationCheckTime *metav1.Time `json:"lastRegistrationCheckTime,omitempty"`
} }
// RunnerStatusRegistration contains runner registration status // RunnerStatusRegistration contains runner registration status

View File

@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.10.2 version: 0.10.3
home: https://github.com/summerwind/actions-runner-controller home: https://github.com/summerwind/actions-runner-controller

View File

@ -1572,11 +1572,6 @@ spec:
- expiresAt - expiresAt
- token - token
type: object type: object
required:
- message
- phase
- reason
- registration
type: object type: object
type: object type: object
version: v1alpha1 version: v1alpha1

View File

@ -1572,11 +1572,6 @@ spec:
- expiresAt - expiresAt
- token - token
type: object type: object
required:
- message
- phase
- reason
- registration
type: object type: object
type: object type: object
version: v1alpha1 version: v1alpha1