Skip to content

Commit

Permalink
Add Grafana annotation in force cases where no soaking is required (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Stylianos Rigas <[email protected]>
  • Loading branch information
stylianosrigas and Stylianos Rigas committed Jul 10, 2023
1 parent 0dd27bc commit 8dbba89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/supervisor/installationgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ func (s *InstallationGroupSupervisor) releaseInstallationGroup(installationGroup
logger.Infof("Finished releasing installation group %s", installationGroup.ID)
if release.Force {
logger.Info("This is a forced release. Skipping installation group soaking time...")

err = s.provisioner.AddGrafanaAnnotations(fmt.Sprintf("Release for ring %s and installation group %s is complete", ring.Name, installationGroup.ProvisionerGroupID), ring, installationGroup, release)
if err != nil {
logger.WithError(err).Error("Failed to add release Grafana Annotations")
return model.InstallationGroupReleaseFailed
}
return model.InstallationGroupStable
}
return model.InstallationGroupReleaseSoakingRequested
Expand Down

0 comments on commit 8dbba89

Please sign in to comment.