Skip to content

Commit

Permalink
fix(rdb): fix custom type in rdb instance engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jremy42 committed Aug 27, 2024
1 parent 642b368 commit 4e9c7df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/namespaces/rdb/v1/custom_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,12 @@ func autoCompleteNodeType(ctx context.Context, prefix string, request any) core.
}

func autoCompleteDatabaseEngines(ctx context.Context, prefix string, request any) core.AutocompleteSuggestions {
req := request.(*rdbSDK.CreateInstanceRequest)
type rdbCreateInstanceRequestCustom struct {
*rdbSDK.CreateInstanceRequest
InitEndpoints []*rdbEndpointSpecCustom `json:"init-endpoints"`
GeneratePassword bool
}
req := request.(rdbCreateInstanceRequestCustom)
suggestion := core.AutocompleteSuggestions(nil)
client := core.ExtractClient(ctx)
api := rdbSDK.NewAPI(client)
Expand Down

0 comments on commit 4e9c7df

Please sign in to comment.