- To run the image copy the link below and follow the steps below:
-
-
-
- Go to "Compute" in Oracle Cloud and choose "
- Custom Images".
-
-
- Click on "Import image", choose "Import from an
- object storage URL".
-
-
- Choose "Import from an object storage URL" and paste
- the URL in the "Object Storage URL" field. The image
- type has to be set to QCOW2 and the launch mode should be
- paravirtualized.
-
-
-
- {isSuccess && (
-
- {options?.url || ''}
-
- )}
- {isFetching && }
- {isError && (
-
- )}
-
- }
- iconPosition="right"
- // TO DO update the link after documentation is up
- href={FILE_SYSTEM_CUSTOMIZATION_URL}
- className="pf-v5-u-pl-0"
- >
- Read more about launching OCI images
-
- >
- }
- >
-
-
- );
}
+
+ return (
+ Launch an OCI image}
+ minWidth="30rem"
+ bodyContent={
+ <>
+
+ To run the image copy the link below and follow the steps below:
+
+
+
+ Go to "Compute" in Oracle Cloud and choose " Custom
+ Images".
+
+
+ Click on "Import image", choose "Import from an
+ object storage URL".
+
+
+ Choose "Import from an object storage URL" and paste the
+ URL in the "Object Storage URL" field. The image type
+ has to be set to QCOW2 and the launch mode should be
+ paravirtualized.
+
+
+
+ {isSuccess && (
+
+ {options?.url || ''}
+
+ )}
+ {isFetching && }
+ {isError && (
+
+ )}
+
+ }
+ iconPosition="right"
+ // TO DO update the link after documentation is up
+ href={FILE_SYSTEM_CUSTOMIZATION_URL}
+ className="pf-v5-u-pl-0"
+ >
+ Read more about launching OCI images
+
+ >
+ }
+ >
+
+
+ );
};
type AwsS3InstancePropTypes = {
@@ -410,21 +408,20 @@ export const AwsS3Instance = ({
)
);
- } else {
- return (
-
- );
}
+
+ return (
+
+ );
};
type LocalInstancePropTypes = {
diff --git a/src/Components/ImagesTable/Status.tsx b/src/Components/ImagesTable/Status.tsx
index a6d25e3b..d96fb9e4 100644
--- a/src/Components/ImagesTable/Status.tsx
+++ b/src/Components/ImagesTable/Status.tsx
@@ -222,7 +222,9 @@ export const ExpiringStatus = ({
return (
);
- } else if (imageType === 'aws.s3' && status === 'success') {
+ }
+
+ if (imageType === 'aws.s3' && status === 'success') {
const text = `Expires in ${remainingHours} ${
remainingHours > 1 ? 'hours' : 'hour'
}`;
@@ -236,7 +238,9 @@ export const ExpiringStatus = ({
}
/>
);
- } else if (imageType === 'oci.objectstorage' && status === 'success') {
+ }
+
+ if (imageType === 'oci.objectstorage' && status === 'success') {
const text = `Expires in ${remainingDays} ${
remainingDays > 1 ? 'days' : 'day'
}`;
@@ -250,7 +254,9 @@ export const ExpiringStatus = ({
}
/>
);
- } else if (status === 'failure') {
+ }
+
+ if (status === 'failure') {
return (
);
- } else {
- return ;
}
+
+ return ;
};
type LocalStatusPropTypes = {