message: Use a list of supported templates instead of logic
diff: @@ -2,22 +2,37 @@ import * as React from 'react';
  import { Label, Tooltip } from '@patternfly/react-core';
  import { useTranslation } from 'react-i18next';
  import { TemplateKind } from '@console/internal/module/k8s';
  -import { getTemplateProvider, getTemplateSupport } from '../../selectors/vm-template/basic';
  +import { getName } from '@console/shared/src';
  +import { getTemplateProvider } from '../../selectors/vm-template/basic';
  type VMTemplateLabelProps = {
  template: TemplateKind;
  className?: string;
  };
  +// Documentation on what OS are supported (e.g. not comunity)
  +// https://access.redhat.com/articles/973163#ocpvirt
  +const supportedTemplates = [
  + 'rhel6',
  + 'rhel7',
  + 'rhel8',
  + 'windows2k12r2',
  + 'windows2k16',
  + 'windows2k19',
  + 'windows10',
  +];
  +
  export const VMTemplateCommnunityLabel: React.FC<VMTemplateLabelProps> = ({
  template,
  className,
  }) => {
  const { t } = useTranslation();
  const provider = getTemplateProvider(t, template);
  - const templateSupport = getTemplateSupport(template);
  - const isCommunity =
  - !['red hat', 'redhat'].includes(provider.toLowerCase()) && templateSupport.provider !== 'Full';
  + const templateOSName = getName(template).split('-')?.[0];
  + const isCommunity = !(
  + ['red hat', 'redhat'].includes(provider.toLowerCase()) &&
  + supportedTemplates.includes(templateOSName)
  + );
  if (!isCommunity) {
  return null;
  