Skip to content

Commit faa3f61

Browse files
authored
fix(cli): Don't require gateway CRDs in linkerd install
In #12917 we made the Gateway API CRDs optional in Linkerd and updated the `linkerd check` command to no longer error if these CRDs were not present. However, we missing making the corresponding change in `linkerd install`. As a result, `linkerd install` returns an error if the Gateway API CRDs are not installed on the cluster. We add the corresponding change to `linkerd install` so that it no longer returns an error if the Gateway API CRDs are not installed. Signed-off-by: Alex Leong <[email protected]>
1 parent 0002b92 commit faa3f61

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cli/cmd/install.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,14 @@ A full list of configurable values can be found at https://artifacthub.io/packag
138138

139139
if !crds {
140140
crds := bytes.Buffer{}
141-
err := renderCRDs(&crds, options, "yaml")
141+
err = renderCRDs(&crds, valuespkg.Options{
142+
// GatewayAPI CRDs are optional so don't check for them.
143+
Values: []string{
144+
"enableHttpRoutes=false",
145+
"enableTcpRoutes=false",
146+
"enableTlsRoutes=false",
147+
},
148+
}, "yaml")
142149
if err != nil {
143150
fmt.Fprintf(os.Stderr, "%q", err)
144151
os.Exit(1)

0 commit comments

Comments
 (0)