Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ludydoo committed Jun 28, 2023
1 parent 0b344af commit b839883
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions pkg/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,22 +1012,16 @@ func (r *Reconciler) getPostRenderer(ctx context.Context, obj *unstructured.Unst

func (r *Reconciler) appendInstallPostRendererOption(ctx context.Context, obj *unstructured.Unstructured, opts []helmclient.InstallOption, vals map[string]interface{}) ([]helmclient.InstallOption, error) {
postRenderer, err := r.getPostRenderer(ctx, obj, vals)
if err != nil {
return nil, err
}
if postRenderer == nil {
return opts, nil
if err != nil || postRenderer == nil {
return opts, err
}
return append(opts, helmclient.AppendInstallPostRenderer(postRenderer)), nil
}

func (r *Reconciler) appendUpgradePostRendererOption(ctx context.Context, obj *unstructured.Unstructured, opts []helmclient.UpgradeOption, vals map[string]interface{}) ([]helmclient.UpgradeOption, error) {
postRenderer, err := r.getPostRenderer(ctx, obj, vals)
if err != nil {
return nil, err
}
if postRenderer == nil {
return opts, nil
if err != nil || postRenderer == nil {
return opts, err
}
return append(opts, helmclient.AppendUpgradePostRenderer(postRenderer)), nil
}

0 comments on commit b839883

Please sign in to comment.