@@ -96,9 +96,7 @@ const provisionTabSchema = (
9696 setData ,
9797 provisionRepositoryId ,
9898 currentRegion ,
99- // credentials,
10099 provisionEsclationDisplay ,
101- // vaultCredentials,
102100 cloudTypes ,
103101 provisionCloudType ,
104102 logOutputTypes ,
@@ -138,40 +136,13 @@ const provisionTabSchema = (
138136 validateOnMount : true ,
139137 includeEmpty : true ,
140138 } ,
141- // {
142- // component: componentTypes.SELECT,
143- // id: 'config_info.provision.credential_id',
144- // name: 'config_info.provision.credential_id',
145- // label: __('Credential'),
146- // options: transformGeneralOptions(credentials),
147- // validate: [{ type: validatorTypes.REQUIRED }],
148- // isRequired: true,
149- // onChange: (value) => setEscalationField(value, credentials, setData, 'provision'),
150- // condition: {
151- // when: 'config_info.provision.repository_id',
152- // isNotEmpty: true,
153- // },
154- // includeEmpty: true,
155- // },
156139 {
157140 component : 'conditional-checkbox' ,
158141 id : 'config_info.provision.become_method' ,
159142 name : 'config_info.provision.become_method' ,
160143 label : __ ( 'Escalate Privilege' ) ,
161144 display : provisionEsclationDisplay ,
162145 } ,
163- // {
164- // component: componentTypes.SELECT,
165- // id: 'config_info.provision.vault_credentials',
166- // name: 'config_info.provision.vault_credentials',
167- // label: __('Vault Credential'),
168- // options: transformGeneralOptions(vaultCredentials),
169- // condition: {
170- // when: 'config_info.provision.repository_id',
171- // isNotEmpty: true,
172- // },
173- // includeEmpty: true,
174- // },
175146 {
176147 component : componentTypes . SELECT ,
177148 id : 'config_info.provision.cloud_type' ,
@@ -235,13 +206,6 @@ const provisionTabSchema = (
235206 keyLabel : __ ( 'Variable' ) ,
236207 valueLabel : __ ( 'Default value' ) ,
237208 } ,
238- // {
239- // component: componentTypes.RADIO,
240- // id: 'config_info.provision.dialog_type',
241- // name: 'config_info.provision.dialog_type',
242- // label: __('Dialog'),
243- // options: [{ value: 'useExisting', label: __('Use Existing') }, { value: 'createNew', label: __('Create New') }],
244- // },
245209 {
246210 component : componentTypes . SELECT ,
247211 id : 'config_info.provision.dialog_id' ,
@@ -275,9 +239,7 @@ const retirementTabSchema = (
275239 setData ,
276240 retirementRepositoryId ,
277241 currentRegion ,
278- // credentials,
279242 retirementEsclationDisplay ,
280- // vaultCredentials,
281243 cloudTypes ,
282244 retirementCloudType ,
283245 logOutputTypes ,
@@ -321,40 +283,13 @@ const retirementTabSchema = (
321283 validate : [ { type : 'customValidatorForRetirementFields' } ] ,
322284 includeEmpty : true ,
323285 } ,
324- // {
325- // component: componentTypes.SELECT,
326- // id: 'config_info.retirement.credential_id',
327- // name: 'config_info.retirement.credential_id',
328- // label: __('Credential'),
329- // options: transformGeneralOptions(credentials),
330- // validateOnMount: true,
331- // validate: [{ type: 'customValidatorForRetirementFields' }],
332- // onChange: (value) => setEscalationField(value, credentials, setData, 'retirement'),
333- // condition: {
334- // when: 'config_info.retirement.repository_id',
335- // isNotEmpty: true,
336- // },
337- // includeEmpty: true,
338- // },
339286 {
340287 component : 'conditional-checkbox' ,
341288 id : 'config_info.retirement.become_method' ,
342289 name : 'config_info.retirement.become_method' ,
343290 label : __ ( 'Escalate Privilege' ) ,
344291 display : retirementEsclationDisplay ,
345292 } ,
346- // {
347- // component: componentTypes.SELECT,
348- // id: 'config_info.retirement.vault_credentials',
349- // name: 'config_info.retirement.vault_credentials',
350- // label: __('Vault Credential'),
351- // options: transformGeneralOptions(vaultCredentials),
352- // condition: {
353- // when: 'config_info.retirement.repository_id',
354- // isNotEmpty: true,
355- // },
356- // includeEmpty: true,
357- // },
358293 {
359294 component : componentTypes . SELECT ,
360295 id : 'config_info.retirement.cloud_type' ,
@@ -467,8 +402,6 @@ const createSchema = ({
467402 repositories,
468403 provisionRepositoryId,
469404 retirementRepositoryId,
470- // credentials,
471- // vaultCredentials,
472405 cloudTypes,
473406 dialogs,
474407 provisionCloudType,
@@ -504,9 +437,7 @@ const createSchema = ({
504437 setData ,
505438 provisionRepositoryId ,
506439 currentRegion ,
507- // credentials,
508440 provisionEsclationDisplay ,
509- // vaultCredentials,
510441 cloudTypes ,
511442 provisionCloudType ,
512443 logOutputTypes ,
@@ -520,9 +451,7 @@ const createSchema = ({
520451 setData ,
521452 retirementRepositoryId ,
522453 currentRegion ,
523- // credentials,
524454 retirementEsclationDisplay ,
525- // vaultCredentials,
526455 cloudTypes ,
527456 retirementCloudType ,
528457 logOutputTypes ,
0 commit comments