message: Use custom template provider as provider for source too
diff: @@ -8,6 +8,7 @@ import {
  BOOT_SOURCE_AVAILABLE,
  NetworkType,
  ANNOTATION_SOURCE_PROVIDER,
  + TEMPLATE_PROVIDER_ANNOTATION,
  } from '../../constants';
  import { DataVolumeWrapper } from '../../k8s/wrapper/vm/data-volume-wrapper';
  import { VMTemplateWrapper } from '../../k8s/wrapper/vm/vm-template-wrapper';
  @@ -97,6 +98,9 @@ export const getTemplateSourceStatus: GetTemplateSourceStatus = ({
  };
  }
  + const customTemplateProvider =
  + getAnnotation(template, TEMPLATE_PROVIDER_ANNOTATION) || BOOT_SOURCE_AVAILABLE;
  +
  const vm = new VMTemplateWrapper(template).getVM();
  const networkInterface = vm.getNetworkInterfaces().find((i) => i.bootOrder === 1);
  @@ -112,7 +116,7 @@ export const getTemplateSourceStatus: GetTemplateSourceStatus = ({
  return wrapper.getType() === NetworkType.MULTUS
  ? {
  source: SOURCE_TYPE.PXE,
  - provider: BOOT_SOURCE_AVAILABLE,
  + provider: customTemplateProvider,
  isReady: true,
  isCDRom: false,
  pxe: wrapper.getMultusNetworkName(),
  @@ -150,7 +154,7 @@ export const getTemplateSourceStatus: GetTemplateSourceStatus = ({
  return supportedDVSources.includes(dataVolumeWrapper.getType())
  ? {
  source: SOURCE_TYPE.DATA_VOLUME_TEMPLATE,
  - provider: BOOT_SOURCE_AVAILABLE,
  + provider: customTemplateProvider,
  isReady: true,
  dvTemplate: dataVolumeWrapper.asResource(),
  isCDRom: isCDRom(dataVolumeWrapper.asResource(), null),
  @@ -178,7 +182,7 @@ export const getTemplateSourceStatus: GetTemplateSourceStatus = ({
  );
  return {
  source: SOURCE_TYPE.DATA_VOLUME,
  - provider: getProvider(dataVolume),
  + provider: customTemplateProvider,
  isReady: dataVolume.status?.phase === 'Succeeded',
  dataVolume,
  pvc,
  @@ -202,7 +206,7 @@ export const getTemplateSourceStatus: GetTemplateSourceStatus = ({
  }
  return {
  source: SOURCE_TYPE.PVC,
  - provider: getProvider(pvc),
  + provider: customTemplateProvider,
  isReady: true,
  pvc,
  isCDRom: isCDRom(null, pvc),
  @@ -213,7 +217,7 @@ export const getTemplateSourceStatus: GetTemplateSourceStatus = ({
  if (volumeWrapper.getType() === VolumeType.CONTAINER_DISK) {
  return {
  source: SOURCE_TYPE.CONTAINER,
  - provider: BOOT_SOURCE_AVAILABLE,
  + provider: customTemplateProvider,
  container: volumeWrapper.getContainerImage(),
  isReady: true,
  isCDRom: false,
  