v2Wizard : Add Azure to review
This commit is contained in:
parent
ed61f17d58
commit
3118fc0112
2 changed files with 60 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
RegisterLaterList,
|
||||
RegisterNowList,
|
||||
TargetEnvAWSList,
|
||||
TargetEnvAzureList,
|
||||
TargetEnvGCPList,
|
||||
TargetEnvOciList,
|
||||
TargetEnvOtherList,
|
||||
|
|
@ -91,6 +92,7 @@ const Review = () => {
|
|||
>
|
||||
{environments.includes('aws') && <TargetEnvAWSList />}
|
||||
{environments.includes('gcp') && <TargetEnvGCPList />}
|
||||
{environments.includes('azure') && <TargetEnvAzureList />}
|
||||
{environments.includes('oci') && <TargetEnvOciList />}
|
||||
{environments.includes('vsphere') && (
|
||||
<TextContent>
|
||||
|
|
|
|||
|
|
@ -36,6 +36,11 @@ import {
|
|||
selectAwsAccountId,
|
||||
selectAwsShareMethod,
|
||||
selectAwsSource,
|
||||
selectAzureShareMethod,
|
||||
selectAzureSource,
|
||||
selectAzureResourceGroup,
|
||||
selectAzureSubscriptionId,
|
||||
selectAzureTenantId,
|
||||
selectBlueprintDescription,
|
||||
selectBlueprintName,
|
||||
selectCustomRepositories,
|
||||
|
|
@ -212,6 +217,18 @@ export const TargetEnvGCPList = () => {
|
|||
};
|
||||
|
||||
export const TargetEnvAzureList = () => {
|
||||
const { data: rawAzureSources, isSuccess: isSuccessAzureSources } =
|
||||
useGetSourceListQuery({ provider: 'azure' });
|
||||
const shareMethod = useAppSelector((state) => selectAzureShareMethod(state));
|
||||
const tenantId = useAppSelector((state) => selectAzureTenantId(state));
|
||||
const azureSource = useAppSelector((state) => selectAzureSource(state));
|
||||
const azureResourceGroup = useAppSelector((state) =>
|
||||
selectAzureResourceGroup(state)
|
||||
);
|
||||
const subscriptionId = useAppSelector((state) =>
|
||||
selectAzureSubscriptionId(state)
|
||||
);
|
||||
|
||||
return (
|
||||
<TextContent>
|
||||
<Text component={TextVariants.h3}>Microsoft Azure</Text>
|
||||
|
|
@ -222,6 +239,47 @@ export const TargetEnvAzureList = () => {
|
|||
>
|
||||
Image type
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
Red Hat hosted image
|
||||
<br />
|
||||
<ExpirationWarning />
|
||||
</TextListItem>
|
||||
{shareMethod === 'sources' && isSuccessAzureSources && (
|
||||
<>
|
||||
<TextListItem component={TextListItemVariants.dt}>
|
||||
Azure Source
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{
|
||||
rawAzureSources.data?.find(
|
||||
(source) => source.id === azureSource
|
||||
)?.name
|
||||
}
|
||||
</TextListItem>
|
||||
</>
|
||||
)}
|
||||
{shareMethod === 'manual' && (
|
||||
<>
|
||||
<TextListItem component={TextListItemVariants.dt}>
|
||||
Azure Tenant ID
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{tenantId}
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dt}>
|
||||
Subscription ID
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{subscriptionId}
|
||||
</TextListItem>
|
||||
</>
|
||||
)}
|
||||
<TextListItem component={TextListItemVariants.dt}>
|
||||
Resource group
|
||||
</TextListItem>
|
||||
<TextListItem component={TextListItemVariants.dd}>
|
||||
{azureResourceGroup}
|
||||
</TextListItem>
|
||||
</TextList>
|
||||
<br />
|
||||
</TextContent>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue