diff --git a/data/tekton-pipelines/windows-bios-installer-pipeline.yaml b/data/tekton-pipelines/windows-bios-installer-pipeline.yaml index 89f68aca7..239189505 100644 --- a/data/tekton-pipelines/windows-bios-installer-pipeline.yaml +++ b/data/tekton-pipelines/windows-bios-installer-pipeline.yaml @@ -44,6 +44,22 @@ spec: description: Namespace of the base DataVolume which is created. type: string default: kubevirt-os-images + - default: windows.10 + description: Name of the preference which will be used for this DV by default. + name: defaultPreferenceLabel + type: string + - default: virtualmachineclusterpreference + description: Kind of the preference which will be used for this DV by default. Possible values - virtualmachineclusterpreference, virtualmachinepreference + name: defaultPreferenceKindLabel + type: string + - default: u1.large + description: Name of the instance type which will be used for this DV by default. + name: defaultInstancetypeLabel + type: string + - default: virtualmachineclusterinstancetype + description: Kind of the instance type which will be used for this DV by default. Possible values - virtualmachineclusterinstancetype, virtualmachineinstancetype + name: defaultInstancetypeKindLabel + type: string tasks: - name: create-vm-root-disk taskRef: @@ -55,6 +71,11 @@ spec: apiVersion: cdi.kubevirt.io/v1beta1 kind: DataVolume metadata: + labels: + "instancetype.kubevirt.io/default-instancetype-kind": $(params.defaultInstancetypeKindLabel) + "instancetype.kubevirt.io/default-instancetype": $(params.defaultInstancetypeLabel) + "instancetype.kubevirt.io/default-preference-kind": $(params.defaultPreferenceKindLabel) + "instancetype.kubevirt.io/default-preference": $(params.defaultPreferenceLabel) name: $(params.baseDvName) namespace: $(params.baseDvNamespace) spec: diff --git a/data/tekton-pipelines/windows-efi-installer-pipeline.yaml b/data/tekton-pipelines/windows-efi-installer-pipeline.yaml index 88a844962..463382c77 100644 --- a/data/tekton-pipelines/windows-efi-installer-pipeline.yaml +++ b/data/tekton-pipelines/windows-efi-installer-pipeline.yaml @@ -44,6 +44,22 @@ spec: description: Name of Windows ISO datavolume name: isoDVName type: string + - default: windows.11.virtio + description: Name of the preference which will be used for this DV by default. + name: defaultPreferenceLabel + type: string + - default: virtualmachineclusterpreference + description: Kind of the preference which will be used for this DV by default. Possible values - virtualmachineclusterpreference, virtualmachinepreference + name: defaultPreferenceKindLabel + type: string + - default: u1.large + description: Name of the instance type which will be used for this DV by default. + name: defaultInstancetypeLabel + type: string + - default: virtualmachineclusterinstancetype + description: Kind of the instance type which will be used for this DV by default. Possible values - virtualmachineclusterinstancetype, virtualmachineinstancetype + name: defaultInstancetypeKindLabel + type: string tasks: - name: import-win-iso params: @@ -180,6 +196,11 @@ spec: metadata: annotations: "cdi.kubevirt.io/storage.bind.immediate.requested": "true" + labels: + "instancetype.kubevirt.io/default-instancetype-kind": $(params.defaultInstancetypeKindLabel) + "instancetype.kubevirt.io/default-instancetype": $(params.defaultInstancetypeLabel) + "instancetype.kubevirt.io/default-preference-kind": $(params.defaultPreferenceKindLabel) + "instancetype.kubevirt.io/default-preference": $(params.defaultPreferenceLabel) name: $(params.baseDvName) namespace: $(params.baseDvNamespace) spec: