feat: wait until helm charts are installed before marking a deploy as failed or completed

This ensures applications are actually up vs giving a false sense of security to users about the state of their applications.
This commit is contained in:
Jose Diaz-Gonzalez committed 2024-03-12 08:39:22 -04:00
1 parent 7c61b53cc8
commit c840fc5f9e
5 files changed
+13 -24

No files matched your search

+3 -2
View File
@@ -51,6 +51,7 @@ type ChartInput struct {
RepoURL string
RollbackOnFailure bool
Timeout time.Duration
Wait bool
Version string
Values map[string]interface{}
}
@@ -239,7 +240,7 @@ func (h *HelmAgent) InstallChart(ctx context.Context, input ChartInput) error {
client.Namespace = namespace
client.ReleaseName = input.ReleaseName
client.Timeout = input.Timeout
client.Wait = false
client.Wait = input.Wait
settings := cli.New()
if input.RepoURL != "" {
@@ -314,7 +315,7 @@ func (h *HelmAgent) UpgradeChart(ctx context.Context, input ChartInput) error {
client.MaxHistory = 10
client.Namespace = namespace
client.Timeout = input.Timeout
client.Wait = false
client.Wait = input.Wait
if input.RepoURL != "" {
client.RepoURL = input.RepoURL
}