Skip to content

Commit

Permalink
Merge pull request #7263 from yapei/1899056
Browse files Browse the repository at this point in the history
[release-4.6.z] Bug 1899056: Update dc strategy type and rolling params
  • Loading branch information
openshift-merge-robot committed Dec 10, 2020
2 parents 8c9626c + f5b8e5f commit 4d3ed53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/public/components/deployment-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const DeploymentConfigDetailsList = ({ dc }) => {
<DetailsItem label="Latest Version" obj={dc} path="status.latestVersion" />
<DetailsItem label="Message" obj={dc} path="status.details.message" hideEmpty />
<DetailsItem label="Update Strategy" obj={dc} path="spec.strategy.type" />
{dc.spec.strategy.type === 'RollingUpdate' && (
{dc.spec.strategy.type === 'Rolling' && (
<>
<DetailsItem
label="Timeout"
Expand Down Expand Up @@ -143,11 +143,11 @@ export const DeploymentConfigDetailsList = ({ dc }) => {
obj={dc}
path="spec.strategy.rollingParams.maxUnavailable"
>
{dc.spec.strategy.rollingUpdate.maxUnavailable ?? 1} of{' '}
{dc.spec.strategy.rollingParams.maxUnavailable ?? 1} of{' '}
{pluralize(dc.spec.replicas, 'pod')}
</DetailsItem>
<DetailsItem label="Max Surge" obj={dc} path="spec.strategy.rollingParams.maxSurge">
{dc.spec.strategy.rollingUpdate.maxSurge ?? 1} greater than{' '}
{dc.spec.strategy.rollingParams.maxSurge ?? 1} greater than{' '}
{pluralize(dc.spec.replicas, 'pod')}
</DetailsItem>
</>
Expand Down

0 comments on commit 4d3ed53

Please sign in to comment.