Skip to content

Commit

Permalink
Merge pull request #70 from jtomasek/resetting-pending-user-input
Browse files Browse the repository at this point in the history
Resetting pending user input
  • Loading branch information
rawagner authored Jul 14, 2020
2 parents d58d3bc + b9a6b27 commit 1f56a15
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ definitions:
- installing
- installing-in-progress
- installing-pending-user-action
- resetting-pending-user-action
- installed
- error
- resetting
Expand Down
1 change: 1 addition & 0 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export interface Host {
| 'installing'
| 'installing-in-progress'
| 'installing-pending-user-action'
| 'resetting-pending-user-action'
| 'installed'
| 'error'
| 'resetting';
Expand Down
3 changes: 2 additions & 1 deletion src/components/clusterConfiguration/NetworkConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const NetworkConfiguration: React.FC<NetworkConfigurationProps> = ({
const baseDnsHelperText = (
<>
The base domain of the cluster. All DNS records must be sub-domains of this base and include
the cluster name. This cannot be changed after cluster installation. The full cluster address will be:{' '}
the cluster name. This cannot be changed after cluster installation. The full cluster address
will be:{' '}
<strong>
{clusterName || '[Cluster Name]'}.{baseDnsDomain || '[example.com]'}
</strong>
Expand Down
2 changes: 2 additions & 0 deletions src/components/hosts/HostStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const getStatusIcon = (status: Host['status']) => {
if (status === 'error') return <ExclamationCircleIcon color={dangerColor.value} />;
if (status === 'installed') return <CheckCircleIcon color={okColor.value} />;
if (status === 'resetting') return <InProgressIcon />;
if (status === 'resetting-pending-user-action')
return <WarningTriangleIcon color={warningColor.value} />;
return <UnknownIcon />;
};

Expand Down
7 changes: 5 additions & 2 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ export const HOST_STATUS_LABELS: { [key in Host['status']]: string } = {
disconnected: 'Disconnected',
insufficient: 'Insufficient',
disabled: 'Disabled',
installing: 'Starting Installation',
installing: 'Starting installation',
'installing-in-progress': 'Installing',
'installing-pending-user-action': 'Incorrect Boot Order',
'installing-pending-user-action': 'Incorrect boot order',
installed: 'Installed',
error: 'Error',
resetting: 'Resetting',
'resetting-pending-user-action': 'Reboot required',
};

export const CLUSTER_FIELD_LABELS: { [key in string]: string } = {
Expand Down Expand Up @@ -78,4 +79,6 @@ export const HOST_STATUS_DETAILS: { [key in Host['status']]: string } = {
installed: 'This host completed its installation successfully.',
error: 'This host failed its installation.',
resetting: 'This host is resetting the installation.',
'resetting-pending-user-action':
'Host already booted from disk during previous installation. To finish resetting the installation please boot the host into Discovery ISO.',
};

0 comments on commit 1f56a15

Please sign in to comment.