Skip to content

Commit a1d7ff1

Browse files
authored
streamline error output when gateway api is missing (#13912)
Signed-off-by: Alex Leong <[email protected]>
1 parent 7fd39be commit a1d7ff1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cli/cmd/install.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,9 @@ A full list of configurable values can be found at https://artifacthub.io/packag
158158
}
159159

160160
if crds {
161-
// The CRD chart is not configurable.
162-
// TODO(ver): Error if values have been configured?
163161
if err = installCRDs(cmd.Context(), k8sAPI, os.Stdout, options, output); err != nil {
164-
return err
162+
fmt.Fprintf(os.Stderr, "%s\n", err)
163+
os.Exit(1)
165164
}
166165

167166
fmt.Fprintln(os.Stderr, "Rendering Linkerd CRDs...")

0 commit comments

Comments
 (0)