hunk.code_window:     buildUniquenessTest(
         () => 'This environment variable is already defined.',
         'name'
       )
     );
   }
hunk.labels: keep replace keep keep keep keep
hunk.after_edit:       () => 'This environment variable is already defined',
  
hunk.file_path: app/react/kubernetes/applications/ApplicationForm/kubeEnvVarValidationSchema.ts
hunk.type: replace
file: export function getDefaultRelativePathModel(): RelativePathModel {
    return {
      SupportRelativePath: false,
      FilesystemPath: '',
      PerDeviceConfigsGroupMatchType: '',
      PerDeviceConfigsMatchType: '',
      PerDeviceConfigsPath: '',
      SupportPerDeviceConfigs: false,
    };
  }
  
  export interface RelativePathModel {
    SupportRelativePath: boolean;
    FilesystemPath: string;
    SupportPerDeviceConfigs: boolean;
    PerDeviceConfigsPath: string;
    PerDeviceConfigsMatchType: PerDevConfigsFilterType;
    PerDeviceConfigsGroupMatchType: PerDevConfigsFilterType;
  }
  
  export type PerDevConfigsFilterType = 'file' | 'dir' | '';
  
  function isPerDevConfigsFilterType(
    type: string
  ): type is PerDevConfigsFilterType {
    return ['file', 'dir'].includes(type);
  }
  
  export function getPerDevConfigsFilterType(
    type: string
  ): PerDevConfigsFilterType {
    if (isPerDevConfigsFilterType(type)) {
      return type;
    }
  
    return '';
  }
  