constants: Introduce RHEL_8 constant
Bump rhel-84 to rhel-85.
This commit is contained in:
parent
afcdb285e1
commit
b986067079
9 changed files with 34 additions and 24 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import componentTypes from '@data-driven-forms/react-form-renderer/component-types';
|
||||
import validatorTypes from '@data-driven-forms/react-form-renderer/validator-types';
|
||||
import nextStepMapper from './imageOutputStepMapper';
|
||||
import { RHEL_8 } from '../../../constants.js';
|
||||
|
||||
export const releaseValues = {
|
||||
'rhel-84': 'Red Hat Enterprise Linux (RHEL) 8',
|
||||
[RHEL_8]: 'Red Hat Enterprise Linux (RHEL) 8',
|
||||
'centos-8': 'CentOS Stream 8'
|
||||
};
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ export default {
|
|||
label: 'Release',
|
||||
name: 'release',
|
||||
simpleValue: true,
|
||||
initialValue: 'rhel-84',
|
||||
initialValue: RHEL_8,
|
||||
options: Object.entries(releaseValues).map(([ key, title ]) => ({
|
||||
label: title,
|
||||
value: key
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { RHEL_8 } from '../../../constants.js';
|
||||
|
||||
export default ({ 'target-environment': targetEnv, release } = {}, { skipAws, skipGoogle, skipAzure } = {}) => {
|
||||
if (!skipAws && targetEnv?.aws) {
|
||||
return 'aws-target-env';
|
||||
|
|
@ -11,5 +13,5 @@ export default ({ 'target-environment': targetEnv, release } = {}, { skipAws, sk
|
|||
return 'ms-azure-target-env';
|
||||
}
|
||||
|
||||
return release === 'rhel-84' ? 'registration' : 'packages';
|
||||
return release === RHEL_8 ? 'registration' : 'packages';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue