Skip to content

Commit

Permalink
fix: correctly set service state in the resource
Browse files Browse the repository at this point in the history
As 'healthy' was always set to true, some tasks started earlier than
expected, and specifically etcd cert was generated while the time sync
was happening leading to half-broken cert on RPi4.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
  • Loading branch information
smira authored and talos-bot committed Feb 24, 2021
1 parent 4e19b59 commit f24c815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/v1alpha1/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ func (r *Service) ResourceDefinition() core.ResourceDefinitionSpec {

// SetRunning changes .spec.running.
func (r *Service) SetRunning(running bool) {
r.spec.Running = true
r.spec.Running = running
}

// SetHealthy changes .spec.healthy.
func (r *Service) SetHealthy(healthy bool) {
r.spec.Healthy = true
r.spec.Healthy = healthy
}

// Running returns .spec.running.
Expand Down

0 comments on commit f24c815

Please sign in to comment.