Skip to content

Commit

Permalink
hotfix: create all namespaces, even when in yolo mode (#1878)
Browse files Browse the repository at this point in the history
When deploying a yolo package, we still want the post-render logic to
create all the namespaces for us. The `break` statement we had before
was stopping before creating all of the namespaces.
  • Loading branch information
YrrepNoj authored Jul 5, 2023
1 parent 02fa96d commit c912a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/packager/helm/post-render.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ func (r *renderer) Run(renderedManifests *bytes.Buffer) (*bytes.Buffer, error) {
}
}

// If the package is marked as YOLO and the state is empty, skip the secret creation
// If the package is marked as YOLO and the state is empty, skip the secret creation for this namespace
if r.options.Cfg.Pkg.Metadata.YOLO && r.options.Cfg.State.Distro == "YOLO" {
break
continue
}

// Create the secret
Expand Down

0 comments on commit c912a4d

Please sign in to comment.