| Name | -
|---|
| {repo.repositoryLabel} | -
- Join the
| - | Mount point | -Type | -
- Minimum size
- |
- - |
|---|---|---|---|---|
| - |
- |
- - {/* always xfs */} - {row.fstype} - | -
- |
- - } - onClick={() => removeRow(row.id)} - data-testid="remove-mount-point" - isDisabled={row.mountpoint === '/' ? true : false} - /> - | -
{'None'}
-{data?.openscap?.profile_name}
-
- Search above to add additional
-
- packages to your image
-
- No results found -
-- Adjust your search and try again -
- > - ) : availablePackagesDisplayList.length >= 100 ? ( - <> - {availablePackagesDisplayList.some( - (pkg) => pkg.name === packagesSearchName - ) && ( -- Too many results to display -
-
- Please make the search more specific
-
- and try again
-
- No packages added -
- ) : chosenPackagesDisplayList.length === 0 ? ( -- No packages found -
- ) : ( - chosenPackagesDisplayList.map((pkg) => { - return ( -| - | Name | -Architecture | -Version | -Packages | -Status | -
|---|---|---|---|---|---|
| - handleSelect(repo.url, rowIndex, isSelecting), - isDisabled: - isFetching || repo.status !== 'Valid', - }} - /> - |
- {repoExists
- ? repo.name
- : 'Repository with the following url is no longer available:'}
- - } - iconPosition="right" - isInline - href={repo.url} - > - {repo.url} - - |
- - {repoExists ? repo.distribution_arch : '-'} - | -- {repoExists ? repo.distribution_versions : '-'} - | -- {repoExists ? repo.package_count : '-'} - | -
- |
-
Cannot fetch {repoUrl}
- {(repoIntrospections || repoFailCount) && ( - <> -{data.data?.[0].name}
} - {isSuccess && !data.data?.[0]?.name && errorLoading()} - {isFetching &&| Mount point | -File system type | -Minimum size | -
|---|---|---|
| {partition.mountpoint} | -xfs | -- {partition.size}{' '} - {partition.unit === UNIT_GIB - ? 'GiB' - : partition.unit === UNIT_MIB - ? 'MiB' - : 'KiB'} - | -
| Name | -
|---|
| {pkg.name} | -
| Name | -
|---|
|
- |
-
- Your image will be uploaded to AWS and shared with the account you - provide below. -
- ), - }, - { - component: componentTypes.PLAIN_TEXT, - name: 'plain-text-component', - label: ( -- The shared image will expire within 14 days. To permanently - access the image, copy the image, which will be shared to your account - by Red Hat, to your own AWS account. -
- ), - }, - { - component: componentTypes.RADIO, - label: 'Share method:', - name: 'aws-target-type', - initialValue: 'aws-target-type-source', - autoFocus: true, - options: [ - { - label: 'Use an account configured from Sources.', - description: - 'Use a configured source to launch environments directly from the console.', - value: 'aws-target-type-source', - 'data-testid': 'aws-radio-source', - autoFocus: true, - }, - { - label: 'Manually enter an account ID.', - value: 'aws-target-type-account-id', - 'data-testid': 'aws-radio-account-id', - className: 'pf-u-mt-sm', - }, - ], - }, - { - component: 'aws-sources-select', - name: 'aws-sources-select', - className: 'pf-u-max-width', - label: 'Source Name', - isRequired: true, - validate: [ - { - type: validatorTypes.REQUIRED, - }, - ], - condition: { - when: 'aws-target-type', - is: 'aws-target-type-source', - }, - }, - { - component: componentTypes.PLAIN_TEXT, - name: 'aws-sources-select-description', - label:- Select how to share your image. The image you create can be used to - launch instances on GCP, regardless of which method you select. -
- ), - }, - { - component: componentTypes.RADIO, - label: 'Select image sharing', - isRequired: true, - name: 'image-sharing', - initialValue: 'gcp-account', - autoFocus: true, - options: [ - { - label: 'Share image with a Google account', - 'data-testid': 'account-sharing', - autoFocus: true, - description: ( -- Your image will be uploaded to GCP and shared with the account you - provide below. - The image expires in 14 days. To keep permanent access to - your image, copy it to your GCP project. -
- ), - value: 'gcp-account', - }, - { - label: 'Share image with Red Hat Insights only', - 'data-testid': 'insights-only-sharing', - description: ( -- Your image will be uploaded to GCP and shared with Red Hat - Insights. - The image expires in 14 days. You cannot access or - recreate this image in your GCP project. -
- ), - value: 'insights', - autoFocus: true, - }, - ], - }, - { - component: 'radio-popover', - label: 'Account type', - isRequired: true, - Popover: PopoverInfo, - name: 'google-account-type', - initialValue: 'googleAccount', - options: Object.entries(googleAccType).map(([value, label]) => ({ - label: - value === 'domain' - ? 'Google Workspace domain or Cloud Identity domain' - : label, - value, - autoFocus: value === 'googleAccount' ? true : false, - })), - validate: [ - { - type: validatorTypes.REQUIRED, - }, - ], - condition: { - when: 'image-sharing', - is: 'gcp-account', - }, - }, - { - component: componentTypes.TEXT_FIELD, - name: 'google-email', - 'data-testid': 'input-google-email', - type: 'text', - label: 'Principal (e.g. e-mail address)', - condition: { - and: [ - { when: 'image-sharing', is: 'gcp-account' }, - { - or: [ - { when: 'google-account-type', is: 'googleAccount' }, - { when: 'google-account-type', is: 'serviceAccount' }, - { when: 'google-account-type', is: 'googleGroup' }, - { when: 'google-account-type', is: null }, - ], - }, - ], - }, - isRequired: true, - validate: [ - { - type: validatorTypes.REQUIRED, - }, - { - type: validatorTypes.PATTERN, - pattern: '^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}$', - message: 'Please enter a valid email address', - }, - ], - }, - { - component: componentTypes.TEXT_FIELD, - name: 'google-domain', - type: 'text', - label: 'Domain', - condition: { - and: [ - { when: 'image-sharing', is: 'gcp-account' }, - { when: 'google-account-type', is: 'domain' }, - ], - }, - isRequired: true, - validate: [ - { - type: validatorTypes.REQUIRED, - }, - ], - }, - ], -}; - -export default googleCloudStep; diff --git a/src/Components/CreateImageWizard/steps/imageName.js b/src/Components/CreateImageWizard/steps/imageName.js deleted file mode 100644 index d77b6020..00000000 --- a/src/Components/CreateImageWizard/steps/imageName.js +++ /dev/null @@ -1,75 +0,0 @@ -import React from 'react'; - -import { useFormApi } from '@data-driven-forms/react-form-renderer'; -import componentTypes from '@data-driven-forms/react-form-renderer/component-types'; -import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types'; -import { Flex, FlexItem, Text } from '@patternfly/react-core'; - -import StepTemplate from './stepTemplate'; - -import CustomButtons from '../formComponents/CustomButtons'; - -const CharacterCount = () => { - const { getState } = useFormApi(); - const description = getState().values?.['image-description']; - return- Optionally enter a name to identify your image later quickly. If you - do not provide one, the UUID will be used as the name. -
- ), - }, - { - component: componentTypes.TEXT_FIELD, - name: 'image-name', - type: 'text', - label: 'Image Name', - placeholder: 'Image Name', - helperText: - 'The image name can be 3-63 characters long. It can contain lowercase letters, digits and hyphens, has to start with a letter and cannot end with a hyphen.', - autoFocus: true, - validate: [ - { - type: validatorTypes.PATTERN, - pattern: /^[a-z][-a-z0-9]{1,61}[a-z0-9]$/, - message: - 'The image name can be 3-63 characters long. It can contain lowercase letters, digits and hyphens, has to start with a letter and cannot end with a hyphen.', - }, - ], - }, - { - component: componentTypes.TEXTAREA, - name: 'image-description', - type: 'text', - label: ( -