Skip to content

Commit 1fc3d52

Browse files
committed
(pre-flight check) Improve error message
The line "failed to get release state using client-only dry-run" is too jargon heavy, and meaningless for the end user. This PR replaces the error message with a more user friendly text.
1 parent 8f81c23 commit 1fc3d52

File tree

1 file changed

+1
-1
lines changed
  • internal/operator-controller/applier

1 file changed

+1
-1
lines changed

internal/operator-controller/applier/helm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func shouldSkipPreflight(ctx context.Context, preflight Preflight, ext *ocv1.Clu
9191
func (h *Helm) runPreAuthorizationChecks(ctx context.Context, ext *ocv1.ClusterExtension, chart *chart.Chart, values chartutil.Values, post postrender.PostRenderer) error {
9292
tmplRel, err := h.renderClientOnlyRelease(ctx, ext, chart, values, post)
9393
if err != nil {
94-
return fmt.Errorf("failed to get release state using client-only dry-run: %w", err)
94+
return fmt.Errorf("error rendering bundle for pre-authorization checks: %w", err)
9595
}
9696

9797
missingRules, authErr := h.PreAuthorizer.PreAuthorize(ctx, ext, strings.NewReader(tmplRel.Manifest))

0 commit comments

Comments
 (0)