Skip to content

Commit d05d2f0

Browse files
feat(baremetal): support overriding default SSH keys on rescue (#2360)
Co-authored-by: Laure-di <[email protected]>
1 parent f0149c8 commit d05d2f0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages_generated/baremetal/src/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ export const marshalRebootServerRequest = (
935935
defaults: DefaultValues,
936936
): Record<string, unknown> => ({
937937
boot_type: request.bootType,
938+
ssh_key_ids: request.sshKeyIds,
938939
})
939940

940941
export const marshalStartBMCAccessRequest = (
@@ -949,6 +950,7 @@ export const marshalStartServerRequest = (
949950
defaults: DefaultValues,
950951
): Record<string, unknown> => ({
951952
boot_type: request.bootType,
953+
ssh_key_ids: request.sshKeyIds,
952954
})
953955

954956
export const marshalUpdateIPRequest = (

packages_generated/baremetal/src/v1/types.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,10 @@ export type RebootServerRequest = {
14101410
* The type of boot.
14111411
*/
14121412
bootType?: ServerBootType
1413+
/**
1414+
* Additional SSH public key IDs to configure on rescue image.
1415+
*/
1416+
sshKeyIds?: string[]
14131417
}
14141418

14151419
export interface SetServerPrivateNetworksResponse {
@@ -1444,6 +1448,10 @@ export type StartServerRequest = {
14441448
* The type of boot.
14451449
*/
14461450
bootType?: ServerBootType
1451+
/**
1452+
* Additional SSH public key IDs to configure on rescue image.
1453+
*/
1454+
sshKeyIds?: string[]
14471455
}
14481456

14491457
export type StopBMCAccessRequest = {

0 commit comments

Comments
 (0)