Skip to content

Commit b9918c6

Browse files
author
OpenShift Bot
authored
Merge pull request #1619 from spadgett/remove-delete-dc-warning
Merged by openshift-bot
2 parents b1c04e8 + a0f0ca9 commit b9918c6

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

app/views/modals/delete-resource.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ <h1>Are you sure you want to delete the {{typeDisplayName || (kind | humanizeKin
66
'<strong>{{displayName ? displayName : resourceName}}</strong>'?</h1>
77

88
<p>
9+
<span ng-if="kind === 'DeploymentConfig'">
10+
This will delete the deployment config, all rollout history, and any running pods.
11+
</span>
12+
913
<span ng-if="kind === 'Deployment'">
1014
This will delete the deployment, all rollout history, and any running pods.
1115
</span>
@@ -42,14 +46,6 @@ <h1>Are you sure you want to delete the {{typeDisplayName || (kind | humanizeKin
4246
</p>
4347
</div>
4448

45-
<div ng-if="kind === 'DeploymentConfig'">
46-
<strong>Note:</strong> None of the deployments created by this deployment config will be deleted.
47-
48-
To delete the deployment config and all of its deployments, you can run the command
49-
<pre class="code prettyprint mar-top-md">oc delete dc {{resourceName}} -n {{projectName}}</pre>
50-
Learn more about the <a href="command-line">command line tools</a>.
51-
</div>
52-
5349
<!--
5450
If this is a deployment config or replication controller with associated HPAs, prompt to
5551
delete the HPAs as well.

dist/scripts/templates.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10487,6 +10487,9 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1048710487
"<div class=\"modal-body\">\n" +
1048810488
"<h1>Are you sure you want to delete the {{typeDisplayName || (kind | humanizeKind)}} '<strong>{{displayName ? displayName : resourceName}}</strong>'?</h1>\n" +
1048910489
"<p>\n" +
10490+
"<span ng-if=\"kind === 'DeploymentConfig'\">\n" +
10491+
"This will delete the deployment config, all rollout history, and any running pods.\n" +
10492+
"</span>\n" +
1049010493
"<span ng-if=\"kind === 'Deployment'\">\n" +
1049110494
"This will delete the deployment, all rollout history, and any running pods.\n" +
1049210495
"</span>\n" +
@@ -10508,11 +10511,6 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
1050810511
"<input ng-model=\"confirmName\" id=\"resource-to-delete\" type=\"text\" class=\"form-control input-lg\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" autofocus>\n" +
1050910512
"</p>\n" +
1051010513
"</div>\n" +
10511-
"<div ng-if=\"kind === 'DeploymentConfig'\">\n" +
10512-
"<strong>Note:</strong> None of the deployments created by this deployment config will be deleted. To delete the deployment config and all of its deployments, you can run the command\n" +
10513-
"<pre class=\"code prettyprint mar-top-md\">oc delete dc {{resourceName}} -n {{projectName}}</pre>\n" +
10514-
"Learn more about the <a href=\"command-line\">command line tools</a>.\n" +
10515-
"</div>\n" +
1051610514
"\n" +
1051710515
"<div ng-if=\"hpaList.length > 0\">\n" +
1051810516
"<p>\n" +

0 commit comments

Comments
 (0)