From a99c26143e579113e46599fd1766bc3481c9afc1 Mon Sep 17 00:00:00 2001 From: Ondrej Ezr Date: Wed, 27 Nov 2024 14:02:30 +0100 Subject: [PATCH] api: update imagebuilder schema --- api/schema/imageBuilder.yaml | 18 ++++++++++++++++++ src/store/imageBuilderApi.ts | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/api/schema/imageBuilder.yaml b/api/schema/imageBuilder.yaml index 69467b8a..543b9420 100644 --- a/api/schema/imageBuilder.yaml +++ b/api/schema/imageBuilder.yaml @@ -1117,6 +1117,7 @@ components: - rhel-92 - rhel-93 - rhel-94 + - rhel-95 - rhel-10-nightly - rhel-10-beta - centos-9 @@ -1336,6 +1337,15 @@ components: Name of the created image. Must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens. The total length is limited to 60 characters. + hyper_v_generation: + type: string + enum: + - V1 + - V2 + default: V1 + description: | + Choose the VM Image HyperV generation, different features on Azure are available + depending on the HyperV generation. OCIUploadRequestOptions: type: object OSTree: @@ -1909,6 +1919,14 @@ components: name: type: string example: "user1" + groups: + type: array + items: + type: string + description: | + List of groups to add the user to. The 'wheel' group should be added explicitly, as the + default value is empty. + example: ['wheel'] ssh_key: type: string example: "ssh-rsa AAAAB3NzaC1" diff --git a/src/store/imageBuilderApi.ts b/src/store/imageBuilderApi.ts index 328b6030..043148b6 100644 --- a/src/store/imageBuilderApi.ts +++ b/src/store/imageBuilderApi.ts @@ -380,6 +380,7 @@ export type Distributions = | "rhel-92" | "rhel-93" | "rhel-94" + | "rhel-95" | "rhel-10-nightly" | "rhel-10-beta" | "centos-9" @@ -477,6 +478,10 @@ export type AzureUploadRequestOptions = { The total length is limited to 60 characters. */ image_name?: string; + /** Choose the VM Image HyperV generation, different features on Azure are available + depending on the HyperV generation. + */ + hyper_v_generation?: "V1" | "V2"; }; export type OciUploadRequestOptions = object; export type UploadRequest = { @@ -609,6 +614,10 @@ export type Filesystem = { }; export type User = { name: string; + /** List of groups to add the user to. The 'wheel' group should be added explicitly, as the + default value is empty. + */ + groups?: string[]; ssh_key?: string; /** Plaintext passwords are also supported, they will be hashed and stored using the SHA-512 algorithm. The password is never returned in the response.