Skip to content

Commit c8e36ae

Browse files
scaleway-botdevtools-ci-cd
andauthored
feat(lb): add support for matchSubdomains (#1864)
Co-authored-by: devtools-ci-cd <[email protected]>
1 parent 58b4c4f commit c8e36ae

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/clients/src/api/lb/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ const unmarshalRouteMatch = (data: unknown): RouteMatch => {
583583

584584
return {
585585
hostHeader: data.host_header,
586+
matchSubdomains: data.match_subdomains,
586587
sni: data.sni,
587588
} as RouteMatch
588589
}
@@ -1186,6 +1187,7 @@ const marshalRouteMatch = (
11861187
request: RouteMatch,
11871188
defaults: DefaultValues,
11881189
): Record<string, unknown> => ({
1190+
match_subdomains: request.matchSubdomains,
11891191
...resolveOneOf([
11901192
{ param: 'sni', value: request.sni },
11911193
{ param: 'host_header', value: request.hostHeader },

packages/clients/src/api/lb/v1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ export interface RouteMatch {
601601
* One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set.
602602
*/
603603
hostHeader?: string
604+
/** If true, all subdomains will match. */
605+
matchSubdomains: boolean
604606
}
605607

606608
export interface CreateCertificateRequestCustomCertificate {

0 commit comments

Comments
 (0)